yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] mo_danish:
Hey guys I'm trying to mount a usb drive I just bought, its a verbatim "store n go" 16gb usb 3.0 on my Nexus 7. I am rooted and once its mounted I see multiple sda folders ranging from sda1 to sda8. None of the 8 folders has my files in them, they are all blank. I've tried formatting the USB to FAT32 and NTFS but it still won't work.

However I am able to mount my usb card reader and it works flawlessly. Is it a possibility that USB3.0 isn't supported yet or maybe it's not getting enough voltage. Sorry if I'm just blabbering, any help would be appreciated.

Thanks.
[Android Apps and Games] grossetti:
Yep, I have also noticed this with some usbsticks.
[Android Apps and Games] flakz0r:
You rule, this is perfect. Bigxies 4.0.3 AOSP rom + franco's kernel.
[Android Apps and Games] skinote:
I can't get this to work for me on rooted 4.02 with stock kernel...does the usb drive need to be a specific file format?

---------- Post added at 12:38 AM ---------- Previous post was at 12:23 AM ----------

I'm on verizon btw, so I can't use Bigxie's 4.03
[Android Apps and Games] sn707:
Working great for me! Thank you SO much. Your root kernal and this are making my GN what I hoped it would be!
[Android Apps and Games] JohnnyTrue:
what about supporting NTFS?
[Android Apps and Games] jameslfc5:
You are an absolute genius!

Thank you!
[Android Apps and Games] jameslfc5:
Couldn't agree more with that!
[Android Apps and Games] flyingcowofdoom:
Works great for me! Fantastic work!

--FCOD
[Android Apps and Games] Zlatty:
This is pretty sweet! Thanks on this! :cool:
[Android Apps and Games] mrBira:
I can confirm it works on Revo HD 2.1.2.

Love this - love you - thanks CF!
[Android Apps and Games] MFD00M:
Oh snap, very cool thanks!!
[Android Apps and Games] HTC_GLOW:
Hello can not get the usb hosting to work can anyone think why this will not work on my current setup?

Mike 1986 - Revolution HD 2.1.2 GSM android 4.0.2

StickMount v1.1

TRIXES Samsung Galaxy USB host cable

http://www.amazon.co.uk/gp/product/B005OJ01EM

Many thanks :)
[Android Apps and Games] flyingcowofdoom:
By the way, this is the cable I'm using: http://www.amazon.com/gp/product/B005FUNYSA/ref=oh_o02_s00_i00_details

--FCOD
[Android Apps and Games] champers:
I get similar problems as reported by someone earlier in the thread. Rooted 4.0.2, stock rom, stock kernel, using Motorola's OTG cable from the Xoom and my USB drives won't light up or activate your app to request superuser permissions.
[Android Apps and Games] Chainfire:
I don't know what to tell you guys other then "if the USB sticks aren't lighting up, it's not a StickMount problem".

EDIT: interestingly, somebody has just posted the following comment on my DSLR Controller app, which also uses USB host:

Rooted Galaxy Nexus	I was originally disappointed upon getting my Galaxy Nexus, as I couldn't get it to work correctly using the Motorola Xoom OTG cable. I saw that people were getting it to work on the nexus, so I tried a different $3 cable I got off eBay, and it works great. Live view to the Nexus screen is beautiful. Should be a fun app!

This implies the Xoom OTG cable may not be compatible with the Galaxy Nexus... which is weird. It's also not the first time I've read similar comments, tbh.
[Android Apps and Games] TechZombie:
I have some weird problems with StickMount 1.1 ... First of all it doesn't work for me ...

I first tried it with Modaco Custom Rom ... Version pre7 ... with this version I was able to mount the usb stick via 'mount' command from commandline.

So I was able to mount the usb-stick to /sdcard/whatever ... this works ...

But this wasn't very handy, so I decided to use StickMount because of automouont feature.

First problem: It seems that StickMount and the Modaco customisations aren't good friend, so I decided to switch to PaulW21781's ICL53F Deodexed Rooted Rom, with full wipe.

Now it started to be weird. When I started StickMount the root-permission didn't appear - some time - after I closed StickMount the Superuser popup shows ... a little late ... I accepted SU for future use.

I started StickMount again and clicked the mount button. 'mounted devices': none' . I replugged the usb-stick. Automount message comes up, I agreed, StickMount said it searchs for something and disappeared. Nothing was mounted . I rebooted the GN, same procedure, same result. I read the path for mounting is /sdcard/usbStorage/{device} ... under Modaco it was sda ... so I created the path /sdcard/usbStorage/sda and mounted again with StickMount. Now it showd mounted device /sdcard/usbStorage/sda ... success ... well ... not ... the directory was empty ... after unmount the directory was gone. Seems that StickMount creates and deletes the mount directories.

Has anyone an idea what to do?

Another Rom?

Thanks for help!

Björn ...
[Android Apps and Games] kecinzer:
Thank you for great up.

But I have issues with NTFS. When I plug NTFS flas, it will mount it, but I don't see anythink on it.
[Android Apps and Games] Chainfire:
Currently only works with FAT sticks
[Android Apps and Games] kecinzer:
Ok, thank you for fast reply.

I see it now. I tried to reformat stick to exFAT and then FAT32 and only last worked.

Do you plannig add other FS too?

I tried another application called "USB Mass Storage Watcher OTG" and it works with NTFS, but quiet drain my battery :)
[Android Apps and Games] qwerp_:
hi there.

i have got a new USB-OTG cable now.

it works with usb mouse and keyboard.

when i plug it in, stick mount detects it as well.

but i seems to have issue mounting it. any ideas?

thank you.

---------- Post added at 03:41 PM ---------- Previous post was at 03:22 PM ----------

i tried running the mount command manually

"mount -t fat /dev/block/sda /mnt/sdcard/usbStorage"

it returned

mount:No such file or directory

any ideas?
[Android Apps and Games] jkoljo:
I used "mount -t vfat /dev/block/sda1 /mnt/sdcard/usbStorage" before I started using StickMount, so try that. The issue in your command was the "sda", new devices appear as "sda1", "sda2" and so on.
[Android Apps and Games] Accorat:
Not working under 4.2 anymore - mounted folder is blank :(
[Android Apps and Games] winamp26:
Hi

Why I can't mount usb joypad with this app?
[Android Apps and Games] Milamber33:
USB input devices like game controllers should just work. This app is only for making Android mount USB storage devices.
[Android Apps and Games] likebutta:
Seems to be the case here too. I installed NTFS Mounter for the NTFS driver as before but now it just keeps mounting as blank.
[Android Apps and Games] mhanis:
Waiting for Chainfire to update that :D
[Android Apps and Games] Chainfire:
Android 4.2 has per-process mount separation ... this complicates things. Not sure if/when I'll be able to fix that.
[Android Apps and Games] PAGOT:
I sure hope it wont to come to the "if" :D. We trust in you!

EDIT CF, if you could edit your description on Google Play so ppl don't down rate you :D (if you didn't do it already ofc)
[Android Apps and Games] chronicle:
Aghhh! I've just spent 30 minutes scratching my head trying to get Stickmount to work with the N7 & JB - Nada. This explains thing!

I really hope you find a way around this, it's the only reason I need root access and it was a vital 'feature' on the N7.

Good luck!
[Android Apps and Games] housepabldroid:
we hope in Chainfire..!
[Android Apps and Games] segv11:
A rootless root?

With this, and perhaps some other SELinux stuff coming down the pipe, it seems that (stock) Android may leave us with a rootless root: UID 0, but still not able to pwn the device.

That's a pain in the butt, and one that I hope custom ROMs will disable. Or perhaps this can be disabled in stock ROMs by tweaking a props file? This won't just be a problem for stickmount, but also for things like "adb remount" that will be unable to make their read/write view of /system be visible to other processes/applications.

Any idea what granularity Android is using for creating the mount namespaces: are the namespaces being split on every fork(), or only when a new APK is launched, or what?
[Android Apps and Games] c_future:
BTW - has anybody rooted the nexus 7 with 4.2 aufter the OTA update? is there already a way?
[Android Apps and Games] PAGOT:
Huh? What way? Just like any other android on Nexus before?

Why would you think that there changed something?

Rooted in 2 seconds...
[Android Apps and Games] spinosa:
How is this not evil? Thought Google's corporate motto was to do no evil. What details are known about this? Is it something we need to raise a real stink about?
[Android Apps and Games] Chainfire:
This is actually a good thing security wise. That it poses a (hopefully solvable) problem for StickMount isn't relevant to that ...
[Android Apps and Games] housepabldroid:
hello chainfire, maybe I've do ​​a discovery.

in practice, it is true that stickmount with jb 4.2, can not read the usb devices, but it is not true that he can not write about it ...

I have copied / moved files from the nexus7 to the "usbstorage" folder that creates the app and it works.

and what's even more is that it remains intererssante written even if I unplug and re-connects the usb stick ..!

and what is interesting is that the files I moved, they remain in the folder usbstorage even after a reboot or disconnect the usb stick..

i hope this can help you to fix it..;)

edit: trouble is that the computer does not see the files moved to the usbstick..

and sorry about my english..
[Android Apps and Games] spinosa:
Actually what bothers me most it the change in expected behavior. For 15 years we have plugged usbkeys into computers and just accessed them. The security is/was physical. Now google wants to make using them a pita on android and that bugs me... It really gets my goat that they impose this limitation on boxes with just 8g or 16g of memory. Now if there is a way to tell the OS its okay for this list of apps access device y I'd be okay with it (not happy though). I'd be happy if they just prevented anything on the usbkey from being executed without being explicitly moved to the interal storage.
[Android Apps and Games] atwerwer:
That's because the folder usbstorage is your local folder...
[Android Apps and Games] brianedgar:
Until this is fixed I am using Nexus Media Importer It’s working OK.
[Android Apps and Games] mhanis:
Yes, can use nexus media importer but it is paid version right?
[Android Apps and Games] DirgeExtinction:
So if I have videos on my USB flash drive, I can use the Nexus Media Importer to watch them via an OTG cable? Won't it run into the same problems as StickMount?
[Android Apps and Games] Milamber33:
I gather Stickmount basically scripts the Linux 'mount' command, whereas I gather Nexus Media Importer uses its own method to load the files. It may not be susceptible to the same issues.
[Android Apps and Games] kar10s:
Huh! It does support writing to that device now? or displaing "unknown extension" files? or does allows openning the files directly without temp copy of it? REALLY? maybe I should check it again, because last time I tested it, it was not able to do any of this, and I (and I believe everyone here) need all of it. That is why are we here and not in NMI thread, right?

Oh, and yes, you should pay for it...

Yes, that should work, but to my experience (I do not know why) some files (mainly PDF, but it happened to me for at least one video file, as far as I can remember) can not be streamed directly from the USB and needs to be copied to nexus (at least as temporary copy) before opening :(
[Android Apps and Games] gmmurphy:
Whos a big fan. Of chainfire¿ Let us rally. It seems he is pissed because of some 1 star ratings on google play. We know stick mount Is borked because of 4.2. Screw the haters.give him some time.
[Android Apps and Games] zip1212:
i am just waiting patiently. i finally got the otg cable from china in and now cant experience the joy :/ hopefully it gets sorted.
[Android Apps and Games] Chainfire:
New security measures in 4.2 are what break StickMount (actually this is a good thing), but it requires some ugly hacks to get around I'm afraid. I'm still looking at what way is the least ugly and most reliable to fix this. It'll be a while, also because I have other apps with higher priority to update with full 4.2 compatibility (like SuperSU).
[Android Apps and Games] PAGOT:
Maybe just wishful thinking. But wouldn't it be possible to contact Google to fix, allow, get involved?

But love the way you are now talking. Is more like "when" as opposed to "if" before.
[Android Apps and Games] Chainfire:
Google knows how to fix this. Google deliberately leaves out this stuff because there's no proper API interface to handle it. Some manufactures aren't as stuck up as Google and implement this themselves, which is really really easy for an OEM.

What bugs me about fixing this is that I need to break out of the application's context, so this probably requires modifying the boot sequence (hijack something that runs at boot on a Linux level) which is something I really don't want to do ...
[Android Apps and Games] Accorat:
Damn, looks like I have to go back to 4.1.2 after all - Google Swype is quite nice, but no USB OTG is a deal breaker in the long run, especially on my 8GB N7 (hello Bard's Tale HD).

Thank you for your efforts and good luck!
[Android Apps and Games] m3talm0rph:
thank you for your job chainfire, i'll hope you will keep us updated!

i'll keep reading this thread to (hopefully) get good news!
[Android Apps and Games] jmdearras:
I am thankful for your work, too. I would support this if it became a paid app to cover the issues 4.2 caused. Would a daemon, started at boot, work as a proxy to mount at the base level?

Jim
[Android Apps and Games] segv11:
Linux has such a daemon, started at boot, called vold.

The problem is that the new Linux kernel supports separate mount namespaces, and Android is taking advantage of this to prevent apps from interfering with each other. Even if vold mounted the USB stick, the mount that it made would not be visible to running apps. Now that source code for 4.2 has dropped, we could read it and figure out at what points Android forks new mount namespaces. I'm sure Chainfire is already doing this, and trying to figure out an ugly hack to work around this.

Perhaps use FUSE as a proxy?

Sent from my Nexus 10.
[Android Apps and Games] nick789uk:
Big thanks

Hi chainfire just wanted to say a big thanks for all your hard work i do use stickmount and it is a brilliant app, but as you are aware it does not work in 4.2, hope to see a solution soon but will wait for it just again thanks for your hard work.

Nick
[Android Apps and Games] Accorat:
I'd also be willing to shell out some €€€. Hell, no app enhances the N7 as drastically as Stickmount IMO. Not only can you connect external drives but it also creates the possibility to run apps from there (something NMI doesn't if I'm correct).
[Android Apps and Games] jmdearras:
interesting discussion on mount namespaces http://www.ibm.com/developerworks/linux/library/l-mount-namespaces/index.html
[Android Apps and Games] liquidguru:
Thanks!!

Works like a charm on my Xoom with the rooted stock 4.1.2 ROM.

Installed and picks up my USB Stick and my Card Reader instantly and with no problems. Can access all files. Really fantastic!! :good:
[Android Apps and Games] hairyman:
You'll have to excuse the basic question but would I correct in thinking that NMI only still works as the file manager and mount software are the same app therefore it can see the mount it has created? Or is it more convoluted?

Just curious as a user with no Linux skills

Thanks for all the work on the app :)
[Android Apps and Games] kar10s:
Well, I am not realy sure that I understand your english correctly, but, NMI does NOT mount the USB in a standard way (or, well, in fact, it does, but for itself only, so that is why it still works). It reads from it, at allows copying (reading) from it (no way to write anything to it), it can stream the audio/video, so this can be opened directly, it can do "temporal copy" for files that can not be streamed. And also It provides this functionality ONLY for files it knows. So no way to read/copy "any" files this way (unless you rename them to *.doc or something).

Did that answered your question?
[Android Apps and Games] Chainfire:
Well, I think I fixed it. Will probably update tomorrow. Time for sleep now :)
[Android Apps and Games] jmdearras:
:laugh::victory::):laugh::):victory::victory::victory:
[Android Apps and Games] Shimakaze:
Thanks, Chainfire! You're awesome.
[Android Apps and Games] n7of9:
best news since my N4 was delivered :good:
[Android Apps and Games] Craxx:
+1

Craxx;)

Send from my Galaxy Nexus with Tapatalk :)
[Android Apps and Games] AlexGraves:
That is the BEST news ... ever! :D

Make it a paid app, please ... I would gladly pay for it, after experiencing several days without any access to my USB flash drive ...

Kudos to you, Chainfire ... :thumbup::thumbup::thumbup:

Sent from my Nexus 7
[Android Apps and Games] Chainfire:
I have uploaded v2.00 of StickMount, as well as StickMount Pro (:eek:) to Google Play.

It usually takes about two hours for it to show up on devices ... in the meantime, see the first two posts, as a lot has changed :)
[Android Apps and Games] Jay Aristide:
You rock. I missed my psx games :)
[Android Apps and Games] Chainfire:
It seems both StickMount as well as StickMount Pro are now updating :) Hurrah!
[Android Apps and Games] Elnareen:
It seems that Stickmount 2.0 does not work on my Nexus 7 with a stock rooted Android 4.2

(I only get an empty directory /sdcard/usbStorage/sda1 and a line in mount output, just as before) :(

I tried to reboot the tablet, uninstall/reinstall the applicationand list content using

both ES File Explorer and ls as user and even to buy the Pro version to no avail...

Did I miss something?
[Android Apps and Games] $$$quale$$$:
I get an empty directory. On my Nexus 10 with Stock ROM.
[Android Apps and Games] gelhack:
A few failures here too

I am also running a rooted stock Android 4.2 N7 (8GB) and so far 2 of 6 attempts to mount a 32GB USB stick have only come up with

an empty folder. The other 4 worked just fine. Thanks for the update!

And I have a question;

Due to the limited memory space on the 8GB N7 and a few "field guide" apps that have 500mb worth of data each, I

would like to be able to "link" their data directory into my USB stick. Prior to 4.2 I was able to:

mount -o bind /storage/sdcard0/usbStorage/sdX1/data_directory_on_usb_stick /storage/sdcard0/Android/data/data_directory_on_tablet

Of course now all I get is an empty directory when I try to view my mount with any file explorer. Any one know of a way around this?
[Android Apps and Games] jmdearras:
Works great on my unlocked, rooted, N7 stock 4.2.0. Only issue I found is using a hub, if you plug the hub in with 2 usb drives, it mounts them both, but the directory is empty. Need to plug in hub, then add drives one at a time. No big deal!

Thanks!

Jim
[Android Apps and Games] chrone:
Thanks dude, you're the man! :D

Sent from my Galaxy Nexus
[Android Apps and Games] r.albu:
this is big news! now i'll finally update my GN to JB 4.2.

cheers!
[Android Apps and Games] u2funker:
well done!

Just saw, that update is available.Installed and now it works again in 4.2 .Great Job!

Have invested in the pro Version. This beer is for u ;)
[Android Apps and Games] corkiejp:
Thanks for the update! Can confirm working on the nexus 7 with 4.2! Paid for the pro versio !
[Android Apps and Games] Accorat:
Working in 4.2, thanks, buddy! Bought the Pro License, you've earned that big time :)

Anyhoo, can anyone confirm that Directory Bind is working again with the updated Stickmount? Tried firing up Bard's Tale again but it prompted the data download :'( It worked in 4.1.2. Does Directory Bind also need a 4.2 fix?

EDIT: Also tested with Dead Trigger, also not working. Sunova.. I know it's not related to Stickmount, but if anyone could help me out here, that'd be great!
[Android Apps and Games] gelhack:
Another 4.2 problem

Besides the occasional empty folder issue after a mount, I have had the mounted file system automagically change to read only

in between edit sessions using SManager Console and the vi editor. I was playing around with some shell scripts, making an

edit, then saving the file and testing the changes. After making 2 or 3 edits, the next time I tried to save the file vi told me it was on a read only file system.
[Android Apps and Games] My 1st Android:
Chainfire, thanks, it works on my rooted Nexus 7 JB 4.2..

(Allthough I do indeed have to first plugin the USB to go cable, and THEN the USB stick)

But.... can you tell us how it is done?

There is another - for me very useful app - out there, https://play.google.com/store/apps/details?id=com.nemesis2.luksmanager&hl=nl , which also does a mounting thing: it mounts an encrypted partition.

But as the previous version of StickMount did, the mounted partition was/is not visible outside its own process.

If you could share how it was done, there is another very nice app out there that could take advantage of it...

Kind regards,

Roel
[Android Apps and Games] Craxx:
Works great on 4.2 fnv003 with anarkia 444.bgm kernel. Thx chainfire:)

Craxx;)

Send from my Galaxy Nexus with Tapatalk :)
[Android Apps and Games] gelhack:
Reviewing the Directory Bind forum thread, it looks like it uses the busybox mount command with the bind option:

mount -o bind <external_directory> <internal_directory>

I have been trying to get this to work with a simple shell script and although my shell can see the appropriate files in the the internal_directory after the mount, all other apps see an empty directory. Hopefully we can get some insight into exactly how Stickmount was fixed!
[Android Apps and Games] corkiejp:
TIP: clearing the app cache from the old version helps to get new version working properly.
[Android Apps and Games] Elnareen:
After more tries, I have the "often it works, sometimes not" behaviour on my N7 (16GB) as well.

In my lastest test run I got an empty directory using Stickmount "automatic mount on insertion" the first time

and cannot reproduce it afterward after five/six unpluging/pluging cycle with clean unmounting.

The storage mountpoint just goes though the Linux part names sda1, sdb1, sdc1...
[Android Apps and Games] brianedgar:
empty folder

:crying: not working, got pro.
[Android Apps and Games] JimmyFL:
Not working... (= mount an empty sdx1 directory)

Deleted app cache, reinstalled, removed, deleted Dalvik & cache, reinstalled.

Using 64gb ntfs stick that worked without problems in 4.1.2 with StickMount v1.5, device is N7 16gb (september 2012)

Root + busybox installed

Any idea?
[Android Apps and Games] gelhack:
After a forced stop / clear cache / clear data, I have been able to do 28 mounts in a row with no failures. BTW, on try 27 my memory stick mounted as sdaa1 then sdab1 on try 28! :thumbup:
[Android Apps and Games] AlexGraves:
Similar symptom on my Nex7. Sometimes it mounts and sometimes it doesn't.

And when the flashdisk does mount, apparently not all apps are aware of it. ES File Explorer and Quickpic immediately able to find the flashdisk, but Adobe Reader and Dice Player cannot.

I have checked the Media Scan trigger option to no avail.

But for a start, this is already a good progress ... :D

Hopefully it can be fixed further ...

Bought the pro to appreciate your hard work in solving this problem. :D

Kudos, Chainfire ...

Sent from my Nexus 7
[Android Apps and Games] brianedgar:
Hi got this working by following your procedure but then after unmounted it will show empty folder again until I unplug it several times then sometimes it works?
[Android Apps and Games] rubenyai:
Works!, with a clear data.

Enviado desde mi Nexus 7 usando Tapatalk 2
[Android Apps and Games] gelhack:
After more testing I'm finding that the mounts are only partially successful. I was only checking with Astro file browser. The first time I opened antTek after a stickmount it didn't see the folder. The next time I did a mount antTek saw it. Is it possible that only apps running at the time of the mount are the only ones that see it?