Skip to content

Instantly share code, notes, and snippets.

@koumaza
Last active December 9, 2020 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koumaza/d1573118dd044fb4c7a0d05ae62f7082 to your computer and use it in GitHub Desktop.
Save koumaza/d1573118dd044fb4c7a0d05ae62f7082 to your computer and use it in GitHub Desktop.
Manual Mount USB in Custom Recovery

1. Mount Data

2. Run this

2-A. Check which block device it is

# Please do not connect yet
ls /dev/block > /sdcard/mmcr-be
# Please connect USB device
ls /dev/block > /sdcard/mmcr-af
# Compare
diff /sdcard/mmcr-*

When you run diff, there is a line that starts with -, so keep an eye on it.

Do you have multiple partitions? Then try doing this.

fdisk -l /dev/block/YOURDEVICE(without number)

2-B. Mount the device

mkdir /sdcard/mntUSB
mount /dev/block/YOURDEVICE /sdcard/mntUSB

Hooray!

In the case of TWRP, the USB device of multiple partition cannot be mounted automatically, so I wrote it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment