Stickmount works fine as far as it goes. The catch is that I haven't found a way to *unmount* drives with it. When I press "unmount", it just pops up the box showing mounted drives. To make things worse, If I unplug the drive, the next time I plug it in, stickmount generates a new mount point (sda, sdb, sdc, etc).
USB Hub Controller from the market lets me mount and unmount drives, plus I can specify the mount point, but it wont automount.
Any ideas for either app?
I usually just look in the notification area where it says "tap here to unmount" or something similar.
Sent from my Nexus 7 using xda premium
tjupille said:
Stickmount works fine as far as it goes. The catch is that I haven't found a way to *unmount* drives with it. When I press "unmount", it just pops up the box showing mounted drives. To make things worse, If I unplug the drive, the next time I plug it in, stickmount generates a new mount point (sda, sdb, sdc, etc).
USB Hub Controller from the market lets me mount and unmount drives, plus I can specify the mount point, but it wont automount.
Any ideas for either app?
Click to expand...
Click to collapse
unmounting with stickmount works fine for me... do you have a single device plugged in, or multiples devices through a hub>?
Mine did this. Use your file explorer and navigate to your mount point. More than likely there is a file keeping it listed. I deleted the file (happened to be xbmc apk) and it unmounted fine.
Sent from my Nexus 7 using xda app-developers app
I was have the same problem, but couldn't determine if there were any open files. I had been using an older 1 gig Lexar drive, first formatted to FAT32, then tried EXT4, then back to FAT32. In all cases, it would mount automatically, and I could browse, copy & open files on it. However, as above, unmounting only brought up the box telling me the existing mounts. After waiting several minutes, I removed the flash drive from the OTG cable, but never got an error message, though the sda1 directory was still there.
Getting nowhere with this, with the Lexar drive not connected, I deleted the usbStorage/sda1 directory (no error messages), then connected a different flash drive, a ~3 year old HP 8 gig model. Surprise - it works correctly. I tried it 4 times or so, and no problems.
Don't know what's going on there, but I'm leery now of putting the Lexar back on, considering all the problems I came across.
I'll try some different flash drives this evening.
Questions go in the Q&A section
I had the same problem. I resolved it by making sure that my file explorer (ES File Explorer) and the Gallery app were closed. Just like Windows, a USB drive can't be unmounted safely if an application is still accessing that drive. In my case I used ES File Explorer to navigate to the contents of the USB drive, and I used the Gallery app to view photos I had stored on the drive. Therefore, I had to make sure that both of those apps were closed. Some apps have a true "exit" option, but not all do. I make a habit of either hitting the back button repeatedly, rather than the home button. Some apps have an exit option in their menus. You may need to go to the Apps Manager in the Android Settings and force close running apps that may have been accessing files from the USB drive. I took the extra precaution of force closing the cached apps (not running), that had been used to view the contents of the USB drive. After doing that, clicking on the stickmount item in the notification bar successfully unmounted the drive. When I plugged the drive back in, it retained the same mount point, and I was easily able to unmount.
GrillMouster said:
I had the same problem. I resolved it by making sure that my file explorer (ES File Explorer) and the Gallery app were closed. Just like Windows, a USB drive can't be unmounted safely if an application is still accessing that drive. In my case I used ES File Explorer to navigate to the contents of the USB drive, and I used the Gallery app to view photos I had stored on the drive. Therefore, I had to make sure that both of those apps were closed. Some apps have a true "exit" option, but not all do. I make a habit of either hitting the back button repeatedly, rather than the home button. Some apps have an exit option in their menus. You may need to go to the Apps Manager in the Android Settings and force close running apps that may have been accessing files from the USB drive. I took the extra precaution of force closing the cached apps (not running), that had been used to view the contents of the USB drive. After doing that, clicking on the stickmount item in the notification bar successfully unmounted the drive. When I plugged the drive back in, it retained the same mount point, and I was easily able to unmount.
Click to expand...
Click to collapse
+1 for this solution. I was running into the same issue intermittently, and discovered that by fully quitting ES File Explorer (Menu > More > Exit), the drive would unmount properly. I can't speak for the closing of other apps since I generally just use usb drives for copying things to and from my N7, but I'd imagine GrillMouster is right and that anything that is using files from the usb drive needs to be closed before it can be properly unmounted.
Edit: Also, I discovered that once the drive is properly unmounted, the various folders that are created (sda1, sdb1, etc.) are removed and the next time you mount a drive it will once again be on sda1. At least that's how it worked out for me.
Will no unmount even closing the apps
I have a Nexus 7 with Stickmount 1.5. It works fine except that it does not unmount the USB drive when I tap the unmount option (or even removing the drive altogether). I have tried closing the applications I used while the drive was mounted (ES File Explorer and MX Player), but it still will not unmount. I had to resort to rebooting the device for it to forget about the mount. Is there a background app I have forgotten to kill? Maybe Stickmount needs an "Unmount, damn it!" option to unmount the drives regardless of what apps have locks on files in the drive.
Thanks for your help.
FD
My solution...for now
Frederick Davies said:
I have a Nexus 7 with Stickmount 1.5. It works fine except that it does not unmount the USB drive when I tap the unmount option (or even removing the drive altogether). I have tried closing the applications I used while the drive was mounted (ES File Explorer and MX Player), but it still will not unmount. I had to resort to rebooting the device for it to forget about the mount. Is there a background app I have forgotten to kill? Maybe Stickmount needs an "Unmount, damn it!" option to unmount the drives regardless of what apps have locks on files in the drive.
Thanks for your help.
FD
Click to expand...
Click to collapse
I'm running Stickmount V1.5 on my Nexus 7 (PA2.17/EliteKernel). The only way I found to truly unmount my flash drive was to first click "unmount" in the Stickmount notification and then go to settings > Storage and wait for it to generate the results and you should see an option to unmount USB storage right there... click on it, press "ok" in the pop-up and it will freeze for a few secs and then give you a toast notification (or drawer notification not sure) that says you just unmounted USB... at that point you can unplug your USB drive and you will get no "unexpected removal" message and everything should be fine :good:
nexace said:
I'm running Stickmount V1.5 on my Nexus 7 (PA2.17/EliteKernel). The only way I found to truly unmount my flash drive was to first click "unmount" in the Stickmount notification and then go to settings > Storage and wait for it to generate the results and you should see an option to unmount USB storage right there... click on it, press "ok" in the pop-up and it will freeze for a few secs and then give you a toast notification (or drawer notification not sure) that says you just unmounted USB... at that point you can unplug your USB drive and you will get no "unexpected removal" message and everything should be fine :good:
Click to expand...
Click to collapse
I am afraid that that did not work on my Nexus 7.
FD
GrillMouster said:
I had the same problem. I resolved it by making sure that my file explorer (ES File Explorer) and the Gallery app were closed. Just like Windows, a USB drive can't be unmounted safely if an application is still accessing that drive. In my case I used ES File Explorer to navigate to the contents of the USB drive, and I used the Gallery app to view photos I had stored on the drive. Therefore, I had to make sure that both of those apps were closed. Some apps have a true "exit" option, but not all do. I make a habit of either hitting the back button repeatedly, rather than the home button. Some apps have an exit option in their menus. You may need to go to the Apps Manager in the Android Settings and force close running apps that may have been accessing files from the USB drive. I took the extra precaution of force closing the cached apps (not running), that had been used to view the contents of the USB drive. After doing that, clicking on the stickmount item in the notification bar successfully unmounted the drive. When I plugged the drive back in, it retained the same mount point, and I was easily able to unmount.
Click to expand...
Click to collapse
Thanks
This solution worked for me
Curious!
1) When I mount the USB drive and browse through it with ES File Explorer (rooted), no matter what I do afterwards (kill the ES File Explorer application and all the apps I used to access the files), I cannot unmount the drive unless I reboot the tablet.
2) But if I browse with Dual File Manager (not rooted), I can unmount even while browsing the drive.
3) And if I open the files in the drive directly with mVideoPlayer or MX Player, I can also unmount afterwards even without having to kill the apps.
4) But if I open the files in mVideoPlayer or MX Player through Dual File Manager, it requires a reboot again.
I think that there are some apps whose locks stop the Stickmount unmount (ES Player Explorer), while others don't (Dual File Manager, mVideoPlayer, MX Player); but if you open one app (video player) through another (file manager), it always stops the unmount.
I do not know what the above means, but I hope it provides info for the developers to know what is going on.
FD
Frederick Davies said:
Curious!
1) When I mount the USB drive and browse through it with ES File Explorer (rooted), no matter what I do afterwards (kill the ES File Explorer application and all the apps I used to access the files), I cannot unmount the drive unless I reboot the tablet.
2) But if I browse with Dual File Manager (not rooted), I can unmount even while browsing the drive.
3) And if I open the files in the drive directly with mVideoPlayer or MX Player, I can also unmount afterwards even without having to kill the apps.
4) But if I open the files in mVideoPlayer or MX Player through Dual File Manager, it requires a reboot again.
I think that there are some apps whose locks stop the Stickmount unmount (ES Player Explorer), while others don't (Dual File Manager, mVideoPlayer, MX Player); but if you open one app (video player) through another (file manager), it always stops the unmount.
I do not know what the above means, but I hope it provides info for the developers to know what is going on.
FD
Click to expand...
Click to collapse
If you would like to see what app has what file open on your USB disk, use lsof in ADB/terminal. needs root. First, what is the USB mount? type in
Code:
mount
and look for your device. If there are too many entries, you can try this instead:
Code:
df -h|grep G
when you have the mountpoint, perhaps it is /storage/sdcard0/usbdisk/, the key is usbdisk. Now you are ready to search the open files:
Code:
su
lsof | grep usbdisk
now, I don't have a USB drive mounted, but I opened a .avi in MX video, and searched for '.avi,' this is what it will look like:
Code:
com.mxtec 23194 u0_a141 80 ??? ??? ??? ??? /storage/sdcard0/Matt/video.avi
so here you can see com.mxtec has opened video.avi, and the PID is 23194.
If that file was on the usb disk, it would keep it from being umounted, so to get rid of it:
Code:
su
kill 23194
I had an issue that's been nagging me and the above info kinda resolved it but not really. Had created a folder on my usb drive using stick mount. After renaming the folder, etc.. Still for a couple of weks even after ejecting the drive... the folder still showed up.. Killed various apps, etc nothing listed showing usbStorage... So while I was doing my usual cleaning through recovery mode with cahces, etc. I hooked it up to my netbook and got into adb and navigated to where my offending folder was and deleted the folder that way. Once booted back into the system, folder wasn't there anymore.
hi all !!!
tjupille said:
Stickmount works fine as far as it goes. The catch is that I haven't found a way to *unmount* drives with it. When I press "unmount", it just pops up the box showing mounted drives. To make things worse, If I unplug the drive, the next time I plug it in, stickmount generates a new mount point (sda, sdb, sdc, etc).
USB Hub Controller from the market lets me mount and unmount drives, plus I can specify the mount point, but it wont automount.
Any ideas for either app?
Click to expand...
Click to collapse
stickmount has no unmount in my nexus 7 !!
please help me !! Y^Y
I think an earlier version had an unmount option if you touched the Stickmount notification icon. But I don't have that option anymore. I just make sure I'm not writing to external storage and unplug.
I removed the flash drive and then mount it still is. But then I was hit by unmount. (I'm using version 2.20 Pro).
Sent from my Nexus 7 using xda premium
Anyone use USB OTG helper? For me it works better than stickmount.
Sent from XDA app
gc84245 said:
Anyone use USB OTG helper? For me it works better than stickmount.
Sent from XDA app
Click to expand...
Click to collapse
Yes I've had the most success with OTG helper.
Swiped from my Nexus 10 using xda-developers app
Hi guys,
I'm getting tired of not being able to transfer files from my Nexus 7 [rooted] to a USB flash drive. I have Nexus Media Importer software installed, but it will only allow me to transfer files from the FlashDrive to the Tablet but not the other way...it's just plain dumb.
I usually download stuff via torrent to my Tablet and then distribute it to my friends, but when the files are over 4gb, bluetooth is way to slow and forget about the PC option, I don't have any PC to use...so don't tell me to transfer to a PC and then to the flash drive...
Any ideas?
EDIT: Also tried Stick Mount y USB Host Controller :/ NO LUCK!
Perhaps dumb questions, but since you didn't mention these details, everybody who reads your post is forced to guess.
1) Did you check the mount points (in each case) to see whether they were read-write (rw) or read-only (ro) ?
2) Should we assume that the USB stick only has a single partition, and that it is formatted in a FAT32 fashion? Or something else? What device/OS did you use to format the USB key to begin with?
If you are using any file system excepting FATx, the kernel you are using is also important - and you also failed to mention that.
BTW, I have successfully written large-ish files TO a FAT32 USB key on a OTG cable mounted via StickMount with a lightly-rooted stock N7 (essentially a stock ROM and stock kernel). "Large-ish" in this case is about 2.5 GB. (FAT filesystems are not capable of writing individual files larger than 4GB)
cheers
bftb0 said:
Perhaps dumb questions, but since you didn't mention these details, everybody who reads your post is forced to guess.
1) Did you check the mount points (in each case) to see whether they were read-write (rw) or read-only (ro) ?
2) Should we assume that the USB stick only has a single partition, and that it is formatted in a FAT32 fashion? Or something else? What device/OS did you use to format the USB key to begin with?
If you are using any file system excepting FATx, the kernel you are using is also important - and you also failed to mention that.
BTW, I have successfully written large-ish files TO a FAT32 USB key on a OTG cable mounted via StickMount with a lightly-rooted stock N7 (essentially a stock ROM and stock kernel). "Large-ish" in this case is about 2.5 GB. (FAT filesystems are not capable of writing individual files larger than 4GB)
cheers
Click to expand...
Click to collapse
No dumb questions at all, I just started this thread really quick because I am at work and can't be 'on the internet' for too long.
1) I just checked and Nexus Media Importer says 'read only', I haven't seen that :/ (that's dumb)
2) The owner of the USB Stick tells me he formatted it with Windows 7 but never changed the format, it's FAT32 since he bought it. The file I attempt to transfer is 4.1Gb...
About the kernel and ROM, both stock and ROOTED.
The owner of the USB Stick tells me that he recently used it to boot Win7 and install it on a friend's PC and maybe that's why it is on 'read only'. I've checked for the usual 'lock' switch but it doesn't have one...so that must be why. Don't you think?
Also, I could never use StickMount..it just times out attempting to mount :/
EDIT: One more thing, I downloaded 'USB Host Controller' (http://forum.xda-developers.com/showthread.php?t=1468531). I attempted to mount at /mnt/sdext and many other points but none of them worked...I'm using ES file explorer to look for the mount point but it doesn't exist.
Nanopane said:
1) I just checked and Nexus Media Importer says 'read only', I haven't seen that :/ (that's dumb)
Click to expand...
Click to collapse
Well, the name of the app includes the word "importer". That seems to imply only one direction, but I've never used the app so I don't know.
Nanopane said:
2) The file I attempt to transfer is 4.1Gb...
Click to expand...
Click to collapse
No matter how you mount a FAT32 filesystem, you will not be able to write a file to it which is greater than 4,294,967,295 bytes in length (2^32 - 1).
Apparently there is something called "exFAT" that is intended for large flash devices, but it seems to be not ready for prime time with Android yet. (Search titles here on XDA for "exFAT"). Also, the Wikipedia page for exFAT says that it is patent-encumbered. That's a deal-breaker for Android I suspect.
Nanopane said:
The owner of the USB Stick tells me that he recently used it to boot Win7 and install it on a friend's PC and maybe that's why it is on 'read only'.
Click to expand...
Click to collapse
Hard to say. Re-format it in windows and try again.
Thanks a lot Mr!
I'm gonna use some other app just to try to get it done, with a 'smaller' file. And regarding the USB Stick, let's just leave that behind...I can mount NTFS systems and give my friend the files in a Ext-HDD
Luckily there is always another option
[Q] External USB drives (HDD/SSD) and mounting
How does the SATV decide what directory it will mount an external USB drive to?
/mnt/media_rw/usbdrive
/mnt/media_rw/usbdrive2
/mnt/media_rw/usbdrive3
I keep noticing mine will change from one to another each time I reboot. This is really messing with Foldermount. Does it matter what other devices are plugged in? How can I force it to a certain one? I am rooted so if this can be done from terminal, I assume it's *NIX like, I'm all ears
thanks
Mine is mounting the same every time. Make sure you are connecting to the usb port every time obviously.
I personally use stickmount to mount inside the sdcard directly.
In my situation I have a SSD in an external USB 3.0 chassis that is always plugged in, same port. I just allow the OS itself to perform the mounting and have never had an issue where it didn't mount, it just intermittently changes the mount location it is using.
The big problem here is when it switches it screws up any app that previously had the drive noted at the last known mount folder. Foldermount being the main app but others like emulators lose the last folder used too.
Is the mounting process on an Android device similar to Linux? Will I find some config file that I can edit to force the mount location every time? Although I'm not sure why it changes sometimes, not all the time, on restarts of the device. For now I've been trying to not restart unless really, really needed.
I also use the same setup minus the fact that I use stickmount also. The system will still do what you are discribing, but it will also mount within the SD card in the same place every time for me.