How to unmount an USB flash drive?

a2109a

Member
Dec 20, 2012
90
4
I connected an USB flash drive with an OTG-cable to the A2109A. The flash drive is mounted, but how do I unmount it? There should be another way than doing it in a shell.

Code:
root@android:/ # mount | grep storage                                                                                        

/dev/fuse /storage/sdcard0 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0


/dev/block/vold/179:49 /storage/sdcard1 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0


/dev/block/vold/8:1 /storage/usbdrive vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

Code:
root@android:/ # umount /storage/usbdrive

Code:
root@android:/ # mount | grep storage
                                                                                 
/dev/fuse /storage/sdcard0 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0


/dev/block/vold/179:49 /storage/sdcard1 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
 
Look in settings - storage and see if the option to unmount is there.
 
Yes there is an unmount option there, but it reboots the tablet and afterwards it is mounted again. So it is useless. It is better to turn off the tablet and remove the flash drive.

Honestly, if you aren't reading from or writing to the drive I would just remove it.
 
Last edited by a moderator:
I used the option in settings the first time I did this, but I have been just removing it since then with no problem.
 
Its very simple drag down the notification panel and click on "USB mass storage connected" under ongoing section
 
In the old days, you needed to reboot the device after connecting a peripheral, and before disconnecting it. The OS usually closes any connections to the device before shutting down, so that IMO, would be the safest way to go. Otherwise, contact the developer of your application and report the problem- it shouldn't be rebooting just from unmounting the OTG device.
 
Back
Top