I've got a Moto G with 4.4.2 and, as stock OTG functionality is broken in the latest android version, I need a way to mount my mini USB card reader (meenova) to /sdcard folder.
From what I've found on the internet I have to use this shell (I'm trying to use it with tasker):
"mount -o rw /dev/block/sdb /storage/emulated/0" or "mount -o rw -t vfat /dev/block/sdb /storage/emulated/0" Neither of them worked for me
/deb/block/sdb is the location of my sd when plugged in and /storage/emulated/0 is the phone internal memory (or at least I think so, I've also tried using just /sdcard but no luck either)
I was able to mount the sd card using Stickmount app from Chainfire but it mounts it to /sdcard/usbStorage/sda and I need it to be just /sdcard (plus if I manage to do that with tasker I don't need another app installed).
What can I do? Thanks.
/storage/emulated/0
most likely is already used. Tryls -l /storage/emulated/0
(or use a file manager) to check for yourself. You cannot mount another device to the same place, you need an "mpty directory" to mount it to./data/local/tmp
is world writeable...?mount
to work, the mount point needs to exist and be a directory. The directory doesn't need to be empty, but if it's not, the existing contents will be hidden once the mount completes. So you need to domkdir -p /sdcard
to create the mount point (the-p
prevents an error if it already exists), then domount /dev/block/sdb /sdcard
to mount the SD card. You may need to use/dev/block/sdb1
instead. Both themkdir
andmount
commands need to run as root.