[Q] Is there a shortcut to unmount a USB OTG device? - One (M7) Q&A, Help & Troubleshooting

Hi!
I just got my USB OTG cable and it works great. Is there an easier way to unmount the USB storage? Do I have to go into settings>storage every time to unmount the USB device safely?
Thanks!

You can install stickmount free app or donate version. Will put a mount/unmount in the notification bar.

gunnyman said:
You can install stickmount free app or donate version. Will put a mount/unmount in the notification bar.
Click to expand...
Click to collapse
Thanks!
I installed stickmount but it doesn't seem to work. After I unmount the USB drive from StickMount, it's still visible in "settings>storage" and I have to unmount from there again. Am I missing some thing here?
I am rooted on ElementalX kernel.

I'm sorry. I thought it would work.
Try otg helper https://play.google.com/store/apps/details?id=net.shajul.usbotg

I'm using Paragon NTFS but it also doesn't seem to be working as You would like. It kind of unmounts but after connecting some other device, Settings>Storage shows stats of previous one. So I need to unmount and mount again. But it's still a low price for possibility of connecting NTFS devices.

I may be wrong, but I'm of the opinion that the HTC One actually mounts the USB/OTG itself and the other programs attempt to re-mount it to another location (which thy know about) hence, when you unmount it, you only unmount 'their mount' .. the 'HTC mount' is still in place ... hehce the One still thinks that it's mounted ... which it is.
It shouldn't be beyond the kind of devs we have on here to produce a notification for a USB/OTC (click to unmount/mount) once it's detected ad present.

Bump
I would very much like this as well and after a couple of weeks of searching, with detours, side tracks, and no solutions I've finally decided to post about it. The best solution would have been if hTC or Google (?) had included a shortcut to unmount from the settings, so that the user could create a shortcut on the home screen or in their favourite widget (I'm quite liking multicon and widgetsoid, between the two I can open or toggle almost anything from the home screen); as it is it's not even possible to shortcut to the storage page.
The hunt for a solution took me first to the apps store, to find a bunch of root only apps; so naive me (this is my first android phone, indeed my first smart phone) I googled and followed the root instructions from cnet. And it seems I've probably lost all hope of ever returning to stock, PLUS the htcdev bootloader unlocking process actually deleted the stock calculator and flashlight. Silly me, I thought "factory reset" meant what it sounds like, e.g. a factory reset; oh well, I prefer to cross my fingers and ignore warranties anyway :silly:. Then I found out that those apps weren't useful anyway because the stock automount still happens and you actually have to unmount the stock mount point in order to mount with any of them (e.g. stickmount). Stickmount was the closest I got, if I recall correctly nothing else I tried would even mount - I probably didn't try that many, I cottoned on pretty quick that the automount wasn't going to let me go this route anyway. At this point I got side tracked and started playing with other root required apps, but my ham fisted stock + root thing acted funny, with many random root apps I installed to play with unexpectedly restarting the phone. Then I found XDA and I've been lurking, though probably not doing as much reading as I should: thousands upon thousands of pages are a tad intimidating. Now I've got ARHD 71.1, with the toolbox & exposed & XSBM more or less tweaked to my liking and everything running smooth. Stickmount gets closer now: it can mount as well as the system. I started thinking about custom kernels, ntfs support, etc; but with no clear info searching whether kernel ntfs support would even automount, and it still doesn't get me what I want so I think I've had enough poking the system files for now. I just tried 'su' then 'umount /storage/usb/', it appears to unmount but I still get 'USB storage unexpectedly removed' when I unplug, and I can't find a way to create a shortcut without the window persisting (android terminal emulator). Also tried scripter, no idea if it can create shortcuts and it couldn't even run the scripts it created so I uninstalled it pretty quickly.
It comes down to: can I get a shortcut to dismount the stock OTG or can I disable the stock mount to properly use an alternative instead of doubling up? And (looking at you hTC and Google, NOT the XDA community which I greatly appreciate), if not why not? This thing is basically a computer so why is android so limited out of the box?
(Sorry for the long noobish ramble, hopefully I got across what I've tried and why it doesn't work. I'm too tired to reread it again. Perhaps at least this has cautionary tale value?)

Found the widgetsoids command option which works silently, unfortuneately it also fails silently too leaving usb mounted if there's any file operations. Maybe there's a more complicated command I could use then 'umount /mnt/usb/'? I have zero idea where to start, but at this point I want to make an app that can hook into the native process and either send it commands or disable it. I don't suppose there's a newbie guide to figuring out what service is responsible for something and then hacking it?

i tried stickmount on a rooted huawei GR5
it works perfect thank you

Related

[Q] captivate wireless tethering help needed for the technology illiterate

I got a captivate about a month ago, I am pretty much illiterate when it comes to techno speak. I was able to root my phone, have super user icon and downloaded "astro" for management which I learned from her. All I want is to wireless tether my device so myself and roommates can use with our pc's. When I download the wireless app it shows up in astro, but doesn't ask for permission, it simply says for security reasons it blocks apps not from the market. Can someone patiently and slowly walk me thru the process. Keeping in mind that a lot of the computer speak I don't understand.
You need to enable sideloading. I never did it but I know there's a thread about it in development. Before I flashed to froyo I used this to sideload apps: http://www.androidcentral.com/sideload-android-apps-all-you-want-sideload-wonder-machine
Follow the instructions on that page to install the app.
Sent from my Captivate
Sounds good, I'll try. Keep in mind I'm a simpleton how user friendly is this?
p1p3l1n3r205 said:
Sounds good, I'll try. Keep in mind I'm a simpleton how user friendly is this?
Click to expand...
Click to collapse
Very. Just make sure usb debugging is enabled, copy the apk to your desktop, browse to the file, and install.
Sent from my Captivate
This is where my problems come in, with my lack of knowledge I don't know how to connect and move the files from my pc to my phone. I know how to turn off the usb debugging and plug in, but am lost after that. Pleas don't think me a total idiot, just need a complete walk thru. To be honest, I have no honest idea how I got as far as I did. I downloaded the 1 click lag fix from the market to root the phone, so I got lucky to find that instead of going thru the pc process. Is there any very simple step by step walk thru? Be patient with me, atleast I'm trying right.
Also what about loading directly to the phone?
To mount the phone to the pc (I'm not sure what you have your usb connection set to but when plugging it in if it gives you an option choose mass storage), pull down the notification bar and select mount.
You'll get one or two removable drives (two if you have an external sd card), select the internal one (should have a DCIM folder) navigate to the download folder, copy the apk you downloaded to your desktop, and then pull down the notification bar again and dismount the phone.
Launch the sideload wonder machine, browse, navigate to desktop, select the apk, install.
Note: You'll need the drivers installed and that can be found in the development forum.
Sent from my Captivate
I am at work now but am going to try as soon as I get home. Thank you for your help, its very much appreciated.
Look at the captivate wiki, it has like four methods for side loading.
And dump astro, buy root explorer.
From a phone

USB ADB or file mgr & sd to install apps?

Can someone make a recommendation? I basically want to sideload some apk's & pictures, videos & books. I was using Calibre for sideloading non B&N books with Win Explorer for wallpaper. I was partially successful at getting USB ADB working, got driver working, but realized that Windows now does not see the NC as a mass storage device & Calibre will not ID it. Am I better off just putting apk's on the sd card & installing via Astro file mgr? Any insight on this subject is appreciated.
Thanks,
kev
I had that issue until I realized that
Sent from my LogicPD Zoom2 using XDA App
I had that issue until I realized my nook was not awake. Once I woke it up ut worked like a charm.
Sent from my NookColor using XDA App
bugeyed1 said:
Can someone make a recommendation? I basically want to sideload some apk's & pictures, videos & books. I was using Calibre for sideloading non B&N books with Win Explorer for wallpaper. I was partially successful at getting USB ADB working, got driver working, but realized that Windows now does not see the NC as a mass storage device & Calibre will not ID it. Am I better off just putting apk's on the sd card & installing via Astro file mgr? Any insight on this subject is appreciated.
Click to expand...
Click to collapse
For me... Got my NC for Christmas ! I followed the BN instructions to download and update my NC to 1.0.1. I then followed the instructions for using Auto-Nooter and then these for setting up the USB drivers in Windows:
http://forum.xda-developers.com/showthread.php?t=882751
And it works for all cases. I can use ADB, Windows sees it as a mass storage device and Calibre connects to it. Something could be wrong with your USB setup. Try checking out the thread I used.
OK, as long as Win. still sees it as before & Calibre still works, I will try to get ADB working over USB. Right now Windows "computer" doesn't see it, but it shows in Device Mgr as Android Phone/Android ADB interface. The NC is ON & displaying the USB mode screen. Since explorer doesn't see it, I can't eject it. As I said, I will back up & try the ADB setup again. If anyone knows what I did wrong, please speak up. I will be working on this this afternoon. Should I remove the ADB driver & start from the beginning?
Thanks,
Kev
Update: Got it working. At least it reported the serial number when I ran "adb devices". I can now see the NC in explorer & device mgr shows the device. I now need to learn to use these new adb tools. Any helpful instructions I can read?
Thanks,
kev
If using my computer and I find an apk. I want to install, I use dropbox. I then open dropbox on the NC download the apk and install it.
Also the Wireless ADB app works well too.
I honestly have no clue why so many people are mucking around with ADB and command lines. If people like doing things the hard way, fine, install apps via ADB, but there are much simpler ways to do things.
Yes, there are a handful of things that need to be done by ADB, but installing standard apps is not one of them.
EDIT: Reworded for clarity of target.
RoboRay said:
I honestly have no clue why so many people are mucking around with ADB and command lines. If you like doing things the hard way, fine, install your apps via ADB, but there are much simpler ways to do things.
Yes, there are a handful of things that need to be done by ADB, but installing standard apps is not one of them.
Click to expand...
Click to collapse
Well, I did ask for recommendations in the OP! Care to make one?
Cheers,
kev
Oh, certainly, what I meant was a file manager is great for it, as it's the other method you mentioned. Dropbox is by far the easiest way I've found to move things from your PC to your Android device, too.
My comment about people "doing things the hard way" wasn't specifically directed at you, either, although upon looking back it does seem to come off that way. I'll fix it. Anyway, what I meant was that everywhere I go I see people posting very long sets of commands for people to type in to ADB or the Terminal so that they can accomplish things that are easily done with the push of a button or two in the appropriate app. And then I see lots of people responding with "It didn't work" which usually means they typed something wrong.
The command line is wonderful because it's so powerful and precise, but that doesn't mean it should be used for every simple task.
I find that the majority of things that I need to do can be done with Root Explorer.

Multi Mount SD-Card Lite

This app allows you to mount sdcard2 through usb. Thought I would share. I remember some discussion about whether to mount internal or external sd card by default, with this you can mount internal by default and then just switch between the two relatively quickly.
http://www.appbrain.com/app/multi-mount-sd-card-lite/com.rafoid.multimountsdcard.widget.free
pyrofool said:
This app allows you to mount sdcard2 through usb. Thought I would share. I remember some discussion about whether to mount internal or external sd card by default, with this you can mount internal by default and then just switch between the two relatively quickly.
http://www.appbrain.com/app/multi-mount-sd-card-lite/com.rafoid.multimountsdcard.widget.free
Click to expand...
Click to collapse
Just a quick note:
CyanogenMOD 7.0.3 Stable will mount BOTH Internal and External SD Cards upon connecting and activating USB.
No third party apps needed.
fail... do not tell me to remove adblocker. Put out a lite version or time demo but do not tell me what to do with my android.
If it worked, I was going to buy it. But since you like to freeze my tablet for 30sec, bye bye. I hate advertising, but have a loose enough wallet to buy anything i use.
sorry.
drx69 said:
fail... do not tell me to remove adblocker. Put out a lite version or time demo but do not tell me what to do with my android.
If it worked, I was going to buy it. But since you like to freeze my tablet for 30sec, bye bye. I hate advertising, but have a loose enough wallet to buy anything i use.
sorry.
Click to expand...
Click to collapse
Don't apologize for having standards. I agree wholeheartedly with you.
Half of the apps I try are so obnoxious with their ads that I uninstall and add them to a list of apps I won't buy.
A full version with full functionality that times out after 30 days or so (giving you a chance to REALLY try it out) does not seem like too much to ask.
I don't get what happened. I tried it and l don't see any ads. There are a few features disabled in the free one.
Sent from my ADR6300 using XDA Premium App
I've been using automount - seems to work fine for my usage (USB memory sticks)
I have a very strange problem:
I cannot add the widget to my home screens!
I tried lite version and full version.
Every time I go to the personalize - widget list and click to multi mount sd-card I get the app open instead of adding it to home screen.
Days before it worked correct but since some days ...

Mounting Tab as Mass Storage on Windows

I picked up my tab this morning and have had a hell of a time mounting it as USB storage to transfer movies and pics ect... but I figured it out so I thought I'd share with the XDA community simply because there really isnt anything out there that I could find on Google.
1. download USB drivers from samsung: http://www.samsung.com/us/mobile/ga...eration+-+10.1+Tab_Galaxy+Tab_galaxy+tab+10.1
2. install drivers
3. reboot pc
4. turn off usb debugging... VERY IMPORTANT AS IT IS ENABLED BY DEFAULT
5. plug in via usb
6. enjoy!!
If it works for you please hit the "thanks" button
Worked like a charm for me bro. . Thanks!
jhild352 said:
4. turn off usb debugging... VERY IMPORTANT AS IT IS ENABLED BY DEFAULT
Click to expand...
Click to collapse
worked for me. USB debugging. Who would have thought?
Freaking TouchWiz... With stock android you can use debugging AND mass storage mode. STOP IT SAMSUNG!
Still didnt work for me. Found issue with hardware error from windwos :/. This is such a pain.
ObsidianX said:
Freaking TouchWiz... With stock android you can use debugging AND mass storage mode. STOP IT SAMSUNG!
Click to expand...
Click to collapse
hate to break it to you big guy, there is no touchwiz loaded on the 10.1 yet
not sure why this is such an issue getting this thing connected to the PC
Works to transfer "recognized" files extensions. However things like .mkv or .mpg make windows explorer crash. When I transferred an avi file it wanted to convert it. Seriously, WTF samsung? I loved your stuff but this is a bit much. I should be able to treat it like an SD card.
hobbiteer said:
Works to transfer "recognized" files extensions. However things like .mkv or .mpg make windows explorer crash. When I transferred an avi file it wanted to convert it. Seriously, WTF samsung? I loved your stuff but this is a bit much. I should be able to treat it like an SD card.
Click to expand...
Click to collapse
Been having the same problem. Transferring .wmv or .mov files makes my pc crash. Although I was able to plug it into a different pc and it was automatically recognized as USB and worked fine. I wonder if it has anything to do with my galaxy s drivers.
It works, but not as a removable storage device. It sees it as a portable device, which isn't as good.
This is pretty useless.. it's treated like Apple treats their devices... as some kind of media device and not just a regular drive.
Looks like a large oversight on Samsung's side.. can be easily fixed, luckily.
What are you lot talking about?
You do, unfortunately, need latest version of kies installed, USB debugging switched off, plug the thing in and is recognised as a removable drive... you don't need to use kies but is just active in the background and displayed on screen of tab...
All files transfer no problem including .mkv .AVI etc. If your explorer crashes it is a problem with explorer... sometimes caused by other software that is integrated into explorer contextual menus...ie if you have a bootcamp Mac with macdrive installed the explorer pane ( tree listing) will always crash explorer if you try to copy and paste from there... you have to do it from the large pane on right...
Hope this helps
Forgot to say if you're having driver problems the latest is here
http://www.samsung.com/us/support/downloads/GT-P7510UWVXAB
Install drivers from executable file downloaded from above...
When you connect your tab Best way to ensure satisfactory installation is to ignore " found new hardware blah blah, search for drivers blah blah" go to device manager find the non installed Samsung, right click and select update drivers, browse... the above installed drivers are in program files, Samsung, usb drivers... select USB drivers folder, validate et voila
Hi jhild352!
Honeycomb tablet cannot be mounted as mass storage, for the simple reason there is no more real sdcard formated in Fat32.
/dev/block/mmcblk0p4 /system ext4 ro,relatime,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p5 /cache ext4 rw,nosuid,nodev,noatime,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p8 /data ext4 rw,nosuid,nodev,noatime,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p1 /efs ext4 rw,nosuid,nodev,noatime,barrier=1,data=ordered 0 0
/dev/fuse /mnt/sdcard fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
Everything is in Ext4, and sdcard is "emulated" via fuse.
That's why Honeycomb tablets use MTP instead, which I agree sucks.
Wonder if anyone's figured out a way to get this ****er mounted in Mac.
Sorry for the potty mouth, I'm just annoyed @ Samsung, haha.
hehe
Yes this is true... my bad for wording it the wrong way. I simply ment that you could plug it into a PC and transfer pics/movies/song ect
Sent from my Gingerblured Atrix using XDA Premium App
Kies works well for music, photos, and movies, but how would I go about putting a book on it without using dropbox? Why couldn't they just make it to where we could mount it as a drive like with an sdcard?! Samsung, you make everything overly difficult!
jhild352 said:
I picked up my tab this morning and have had a hell of a time mounting it as USB storage to transfer movies and pics ect... but I figured it out so I thought I'd share with the XDA community simply because there really isnt anything out there that I could find on Google.
1. download USB drivers from samsung: http://www.samsung.com/us/mobile/ga...eration+-+10.1+Tab_Galaxy+Tab_galaxy+tab+10.1
2. install drivers
3. reboot pc
4. turn off usb debugging... VERY IMPORTANT AS IT IS ENABLED BY DEFAULT
5. plug in via usb
6. enjoy!!
If it works for you please hit the "thanks" button
Click to expand...
Click to collapse
Excatly the same way that it works on the Xoom, funny that has been such a big issue. (ok on the xoom it works also with the debugging on)
On the upside, the new ext4-based arrangement gives Honeycomb a unified internal storage, which is really great. Avoids the whole business of contention, and mounting internal storage that the device may be using for other things. Allows proper permissions to be applied. I don't particularly have an issue with MTP either, for media transfers. Obviously this isn't an issue with cloud-based ways of getting media onto the device, which is the way things are heading.
But I think this is why having an SD card slot is still valuable, and Sammy made a mistake not putting one in the Gtab10.1 - using SD card you can just pop some movies onto your tablet from your PC, or have multiple SD cards at the ready - same for having a blank SD at the ready for updates. It's a far better arrangement than mounting internal storage, IMHO.
I know its not really the solution to the issue but an obvious workaround would be wifi file explorer? I think I remember even using adhock and then using the PC browser to upload and download the files. Not ideal but atleast enables quick updates of media and such.
If its only got ext4 its never going to mount in dozzz no later the drivers/programs ect. I had a hell of a time trying to get some media of a popcornhour a-100.. long story short ended up just ftp'ing everything off. Hey what about andftp too?
Or a live Linux distro might do the trick.. lol six to one on any time savings but could work??
AFTERTHOUGHT: Hmm I'm wondering if android commander would cope? I'm sure I've used it on a ext4 ROM and pushed stuff into the system partition. Or is that trickery on its part? I'd have a crack... but I'm on my p1000 for a little longer... :-(
Also perhaps; http://forum.xda-developers.com/showthread.php?t=952456
thanks, now we just need a fix for mac!

[q] sd-ext s2e

Hello all. I have problem with my sd-ext. What i mean. It happend with 2 different ROMs. Yesterday with CM9 and today with Apocalypse. All works ok till i use S2E. I checked in S2E option Mount as ext4, reboot, checked move apps to sd-ext and all gone. No have them and system looks like after reinstal - fresh. Inn app manager apps are but only as browser.dolphin.firefox.opera... or com.sygic.aura. But they are invisible in drawer. What i am doing wrong. How to move safetly to sd-ext without that problems. Help!
try darktremors app2sd
But i want to know what heppend... It is S2E fault or sd-ext sth wrong?
Wojtys said:
But i want to know what heppend... It is S2E fault or sd-ext sth wrong?
Click to expand...
Click to collapse
I tried S2E today, and it did not work. Looks like undocumented rubbish to me.
I tried moving only the Dalvik cache, but after I activated that function and rebooted, all the settings but the last were greyed out, so I could not even undo what the piece of garbage had done.
Another point is that it has a setting allowing you to choose between ext3 and ext4. This is stupid, because the normal user cannot possibly know what to choose there. He cannot know whether his ext partition is ext3 or ext4, because the most common recovery, Clockworkmod, has no such choice in its SD card partitioning function. If the program itself cannot find out, how can the user? It is not even clear what the setting actually does.
So we keep wading through the idiot swamp, until somebody writes a usable program and documents it properly, if a really good program needs documentation at all.
My general advice is, look carefully at a program. Check its settings. Check its documentation for quality and completeness. As soon as you spot the first sign of madhouse style, drop it like a hot potato and look for something better. There are too many garbage programs around these days to waste our time with.
If you cannot find any that fulfills the minimal requirements for decent software, give up on the apps-to-ext idea. Buy a phone with more internal memory, if you have money to spare, or delete the programs you can do without.
The minimal requirement for an apps-to-sd program would be that it can cleanly move installed programs to the ext partition and back. Since you may have installed too many programs to move them all back, I would think that the program should help you to uninstall enough programs to make the rest fit, if you have to move them back.
hgmichna said:
I tried S2E today, and it did not work. Looks like undocumented rubbish to me.
I tried moving only the Dalvik cache, but after I activated that function and rebooted, all the settings but the last were greyed out, so I could not even undo what the piece of garbage had done.
Another point is that it has a setting allowing you to choose between ext3 and ext4. This is stupid, because the normal user cannot possibly know what to choose there. He cannot know whether his ext partition is ext3 or ext4, because the most common recovery, Clockworkmod, has no such choice in its SD card partitioning function. If the program itself cannot find out, how can the user? It is not even clear what the setting actually does.
So we keep wading through the idiot swamp, until somebody writes a usable program and documents it properly, if a really good program needs documentation at all.
My general advice is, look carefully at a program. Check its settings. Check its documentation for quality and completeness. As soon as you spot the first sign of madhouse style, drop it like a hot potato and look for something better. There are too many garbage programs around these days to waste our time with.
If you cannot find any that fulfills the minimal requirements for decent software, give up on the apps-to-ext idea. Buy a phone with more internal memory, if you have money to spare, or delete the programs you can do without.
The minimal requirement for an apps-to-sd program would be that it can cleanly move installed programs to the ext partition and back. Since you may have installed too many programs to move them all back, I would think that the program should help you to uninstall enough programs to make the rest fit, if you have to move them back.
Click to expand...
Click to collapse
Undocumented rubbish? What? The app or ur brain? You cant just call an app like that just because you cant make it work. Alot of users have been using it without problems.
Sent from my GT-S5830 using xda premium
Shadow xD said:
Undocumented rubbish? What? The app or ur brain? You cant just call an app like that just because you cant make it work. Alot of users have been using it without problems.
Click to expand...
Click to collapse
What exactly do you mean by, "make it work"?
S2e moves all non System apps to SD-ext. So, it will move itself to SD-ext aftwr reboot. This means the SD-ext won't be mounted at boot, and non System apps won't be accessible after boot (even if their shorcuts are there).
Simple solution for this problem; make s2e a system app before running it, and use some common sense before flaming a great app.
How to make it a System app? Move s2e to System/app and give rw, r, r permissions.

Categories

Resources