[Q] OTG Problem? - Nexus 5 Q&A, Help & Troubleshooting

Hi guys! Just got a new USB OTG cable and also got stickmount PRO, and i connected my flash drive to my phone and stickmount detected it and i clicked mount and after i was done i clicked unmount and the flash drive got unmounted and so did my sdcard partition and it wouldn't be mounted unless i reboot my device, i've heard of this problem before but never found a solution. Also i'm running the latest version of slimkat and franco kernel, If there's a rom and, or kernel that supports OTG could you point it out for me please cuz i don't want to use stickmount because of this problem. I also tried usb OTG helper and the app crashes when i mount. Please help me and i'm sorry for asking a noob question.

Chaos kernel supports otg. I haven't tried it though.

Chaos is a CAF kernel so you'd have to use an old version on slim.
I use elementalx on slim which also automounts otg via the storage menu.
I still use stickmount too though because elementalx hasn't exported external storage in the correct way yet so can't use foldermount. If you simply want to browse though, elementalx is fine.
I've never had this problem with stickmount. I've never used franco though
Sent from my Nexus 5 using Tapatalk

rootSU said:
Chaos is a CAF kernel so you'd have to use an old version on slim.
I use elementalx on slim which also automounts otg via the storage menu.
I still use stickmount too though because elementalx hasn't exported external storage in the correct way yet so can't use foldermount. If you simply want to browse though, elementalx is fine.
I've never had this problem with stickmount. I've never used franco though
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Thanks! I'm gonna flash elementalx and report back, also would you mind telling me what rom you're running just in case it didn't work for me.

gotenks22 said:
Thanks! I'm gonna flash elementalx and report back, also would you mind telling me what rom you're running just in case it didn't work for me.
Click to expand...
Click to collapse
Ha ha. Already mentioned it in the 2nd line of my first post
Have another look
Sent from my Nexus 5 using Tapatalk

rootSU said:
Ha ha. Already mentioned it in the 2nd line of my first post
Have another look
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
LOL I didn't see that. also i flashed elementalx and i'm still getting the same problem:crying:, i unmount and then a popup shows saying that youtube crashed and when i go to es file explorer it's the same problem. Is there another kernel which isn't CAF that natively supports usb otg?

You're unmounting via storage menu and not using stickmount?
No.point looking at kernels. This isn't a kernel problem. This is a you problem. By you, I.don't mean you yourself. Rather, I mean there is a problem with your config. Usbotg works fine with latest slim and elementalx without issue. Must be an app or something.
Sent from my Nexus 5 using Tapatalk

rootSU said:
You're unmounting via storage menu and not using stickmount?
No.point looking at kernels. This isn't a kernel problem. This is a you problem. By you, I.don't mean you yourself. Rather, I mean there is a problem with your config. Usbotg works fine with latest slim and elementalx without issue. Must be an app or something.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Thanks for telling me bout elementalx unmounting and mounting via storage menu works now, but the problem is still there with stickmount, it seems like it's stickmount's problem. You also mentioned that elementalx had a problem with external storage does that mean that i can't use apps like GLtoSD so that i can put my game data in my flash drive?

I only use stickmount because of a setting that's missing that prevents foldermount mounting folders from /sdcard to USB. You don't need to use it simply to browse.
No idea why stickmount causes this problem for you. Works fine for me.
No idea what gltosd is. You'll have to test it yourself
Sent from my Nexus 5 using Tapatalk

rootSU said:
I only use stickmount because of a setting that's missing that prevents foldermount mounting folders from /sdcard to USB. You don't need to use it simply to browse.
No idea why stickmount causes this problem for you. Works fine for me.
No idea what gltosd is. You'll have to test it yourself
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
GL to SD does the same thing as foldermount except it's a more user-friendly interface made for games

Probably wont work then without stickmount
Sent from my Nexus 5 using Tapatalk

rootSU said:
I only use stickmount because of a setting that's missing that prevents foldermount mounting folders from /sdcard to USB. You don't need to use it simply to browse.
No idea why stickmount causes this problem for you. Works fine for me.
No idea what gltosd is. You'll have to test it yourself
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Just found out that the main problem was my explorer (after i unmount with stickmount es file explorer tells me sdcard not found but other explorers show it normally) it wasn't the kernel's problem nor stickmount's. Godammit i feel so stupid *facepalm*. Anyways thanks for helping me, also elementalx is amazing, really good battery life and performance.

Yep good kernel
Sent from my Nexus 5 using Tapatalk

Related

[DEV] Native usb storage otg

Made some progress with USB storage without the use of an app. Setup so far is really simple. Add a line to /system/etc/vold.fstab that looks like this:
dev_mount usbdrive /mnt/usbdrive auto /devices/platform/tegra-ehci.0
Still need work on getting the external storage managed by the system.
WARNING:
This is just a first step and with no way to unmount using Android's storage manager you may corrupt your external storage.
calmfury said:
Made some progress with USB storage without the use of an app. Setup so far is really simple. Add a line to /system/etc/vold.fstab that looks like this:
dev_mount usbdrive /mnt/usbdrive auto /devices/platform/tegra-ehci.0
Still need work out how to unmount. hope this helps someone.
Click to expand...
Click to collapse
Does that mean I can back up and restore stuff via otg as if it were my external sd card?
Sent from my Nexus 7 using XDA Premium HD app
mrnovanova said:
Does that mean I can back up and restore stuff via otg as if it were my external sd card?
Sent from my Nexus 7 using XDA Premium HD app
Click to expand...
Click to collapse
u can with the new twrp
Sent from my Galaxy Nexus using xda premium
smirkis said:
u can with the new twrp
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
NOOOO! I Seriously! And you tell me this now. Thanks I'll give it a whirl.
Sent from my Nexus 7 using XDA Premium HD app
Wow I JUST got my OTG yesterday. Fantastic timing.
what this means... hopefully
As it stands now, adding this line will cause your N7 to automount a usb drive to /usbdrive. You will see "preparing usb storage" in the notification bar and your file explorer of choice will see the data in /usbdrive. Unmounting is an issue at this point. I hope to fix that in a few days when I get the time.
https://play.google.com/store/apps/details?id=eu.chainfire.stickmount
I believe this works on the N7 I am waiting on my cable to test. I realize you want to do it without a app but the syntax should be close.
Sent from my Galaxy Nexus using Tapatalk 2
calmfury said:
Made some progress with USB storage without the use of an app. Setup so far is really simple. Add a line to /system/etc/vold.fstab that looks like this:
dev_mount usbdrive /mnt/usbdrive auto /devices/platform/tegra-ehci.0
Still need work out how to unmount. hope this helps someone.
Click to expand...
Click to collapse
Correct me if I'm wrong but I believe that CM10 already has USB Storage OTG built into it with the last few nightlies.
djkinetic said:
Correct me if I'm wrong but I believe that CM10 already has USB Storage OTG built into it with the last few nightlies.
Click to expand...
Click to collapse
Yes it does from what I know
Sent from my Galaxy Nexus using Tapatalk 2
a day late and a dollar...
Haven't been following the cm10 builds. Still gonna push forward for the exercise.
People who don't run CM10, can use this method. Would be cool if unmount is done.
Guys, quick question as I'm receiving my N7 tonight, the usb stick format can be ntfs? Or only fat32? Thanks
EDIT: saw from other thread, ntfs seems ok as well. i already got the tab and will start unlock and root.
Tapatalked from my HOX
Versatile1 said:
https://play.google.com/store/apps/details?id=eu.chainfire.stickmount
I believe this works on the N7 I am waiting on my cable to test. I realize you want to do it without a app but the syntax should be close.
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
Just wanted to confirm that stickmount works well with the N7.
I have it installed and I've used it on two different usb drives.
A 32GB PNY USB2.0 Flash Drive Stick
And an 8GB uSD card inserted into an elago II USB Reader.
Both worked without any issues.
However, I'm still intrigued by a method to get usb mass storage support natively w/o an app
That does it...I give in! I gotta try the twrp recovery. Feel like I just decided to cheat on my girlfriend.
Sent from my Nexus 7 using xda premium
I will be following your progress.
calmfury said:
As it stands now, adding this line will cause your N7 to automount a usb drive to /usbdrive. You will see "preparing usb storage" in the notification bar and your file explorer of choice will see the data in /usbdrive. Unmounting is an issue at this point. I hope to fix that in a few days when I get the time.
Click to expand...
Click to collapse
But stickmount already does that and it unmounts it as well.
Sent from my Nexus 7 using XDA Premium HD app
Can someone point me to an otg cable thats on a uk site pleae?
Sent from my Nexus 7 using Tapatalk 2
leelaa said:
Can someone point me to an otg cable thats on a uk site pleae?
Sent from my Nexus 7 using Tapatalk 2
Click to expand...
Click to collapse
I saw a post about it somewhere around here. Referenced Amazon.uk, the title was USB otg that work and ones that don't I believe. Google can probably get it. If I wasn't using the app I would hook you up.
Sent from my Nexus 7 using xda premium
calmfury said:
Made some progress with USB storage without the use of an app. Setup so far is really simple. Add a line to /system/etc/vold.fstab that looks like this:
dev_mount usbdrive /mnt/usbdrive auto /devices/platform/tegra-ehci.0
Still need work on getting the external storage managed by the system.
WARNING:
This is just a first step and with no way to unmount using Android's storage manager you may corrupt your external storage.
Click to expand...
Click to collapse
Can I ask, does this support NTFS r/w? or r/o.
Everything I've tried, aside from USB OTG Helper--including a CM10 kang rom that claimed to support ntfs OTG--will only mount r/o.
Including the command $ mount -t ntfs /dev/block/sda1 /usbdisk. I guess it's the ntfs driver or something? but it will only mount r/o. Even $ mount -o remount,rw /dev/block/sda1 /usbdisk does not work, it still is ro.
leelaa said:
Can someone point me to an otg cable thats on a uk site pleae?
Sent from my Nexus 7 using Tapatalk 2
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1812609
Sent from my Nexus 7 using xda premium

[Q] What's a file explorer that can r/w to OTG USB?

I have the meenova micro SD OTG reader and the only way i can access files from through my phone is from TWRP when i flash roms and such. I want to be able to move files back and forth from my phone using the Meenova but i've only seen peopl;e suggest nexus importer but it doesn't really work for me that well, I'm using root explorer right now and it doesn't let me access my usb otg. Basically i want a file explorer that let's me use the meenova to move files and not have to boot into twrp to have to do it and i dont want to have to pay a fortune for an app that will let me do this.
Hi,
Take a look for these apps: https://play.google.com/store/search?q=stickmount&c=apps&hl=fr.
Apps like Stickmount have a free version, you can test... After that I use Root Explorer without any issue.
viking37 said:
Hi,
Take a look for these apps: https://play.google.com/store/search?q=stickmount&c=apps&hl=fr.
Apps like Stickmount have a free version, you can test... After that I use Root Explorer without any issue.
Click to expand...
Click to collapse
Thanks ! Some great results came out
Sent from my Nexus 5 using Tapatalk
zolo185 said:
Thanks ! Some great results came out
Click to expand...
Click to collapse
Re,
Yes , for my usage I use Stickmount (the free version). Once the USB is mounted I can move, copy, delete the files. With Root Explorer the path is /sdcard/usbStorage/sda1.
Depends what you want to do. Apps like stickmount are ok if you just want to read/write data on the card through a file explorer. However since these apps dont mount correctly (mount in sdcard for non-root users), they're useless if you want to move game data onto usb otg. Fir that you need it mounting in /storage so custom kernel like chaos is what you'd need
Sent from my Nexus 5 using Tapatalk
rootSU said:
Depends what you want to do. Apps like stickmount are ok if you just want to read/write data on the card through a file explorer. However since these apps dont mount correctly (mount in sdcard for non-root users), they're useless if you want to move game data onto usb otg. Fir that you need it mounting in /storage so custom kernel like chaos is what you'd need
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
How can I tell if its mounting to storage or not. I'm on purity using stock purity kernel.
Sent from my Nexus 5 using Tapatalk
zolo185 said:
How can I tell if its mounting to storage or not. I'm on purity using stock purity kernel.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Im sorry, I don't understand the question. Does purity say it automounts USB otg in its list of features? Most roms / kernels do not offer this.
I only know 1 kernel and 1 rom that does. Chaos kernel and Mahdi rom. This doesn't mean more don't do it but I don't know the features if every rom or kernel.
Browse to /storage on the root of your device to see what's there
Sent from my Nexus 5 using Tapatalk
rootSU said:
Im sorry, I don't understand the question. Does purity say it automounts USB otg in its list of features? Most roms / kernels do not offer this.
I only know 1 kernel and 1 rom that does. Chaos kernel and Mahdi rom. This doesn't mean more don't do it but I don't know the features if every rom or kernel.
Browse to /storage on the root of your device to see what's there
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Sorry, and it does not mention it in the ROM features and I don't have the USB otg with me at the moment I'm in school. But here is what it shows me now.
*note* the SDA 1 is what I just added to see if it would mount there later on as vicking said above.
View attachment 2542308
Sent from my Nexus 5 using Tapatalk
The attachment doesn't work.
If you use stickmount, it will mount to /storage/sdcard0/usbStorage/sda1
Chaos kernel mounts to /storage/USBdisk
You don't create anything yourself. It creates as and when required
Sent from my Nexus 5 using Tapatalk

[Q] Which custom kernel works with StickMount?

Hi there,
I had tried few different kernel and non of them givies me the OTG mount through stickmount. The StickMount just said it was mounted at /storage/usbStorage/sda1, but when use the file manager to check, the folder wasn't appeared. I'm sure the USB thumbdrive works and the cable as well as in TWRP, I could mount it and even make backup there too.
Anyone could shine some good advice for me?
Current setup:
ROM: Cataclyms
Kernel: n3oHammer_AOSP_V20_cpuquiet
Other testing setup:
ROM: OMNI nightly
Kernel: n3oHammer_AOSP_V20_cpuquiet and some other kernels too.
Thanks.
Ah.. in fact it works as it mounted on the sdcard/usbStorage instead. I searched in wrong folder instead. Thanks for your time.
Stickmount doesnt need any particular kernel
Its NOT mounted in /storage/usbStorage. Its /sdcard/usbStorage
Sent from my Nexus 5 using Tapatalk

OTG Flashdisk stability issues

Sup, guys!
I'm running stock with the latest franco Kernel (r48) and trying to use a USB OTG flashdisk to play music with Poweramp.
Usually when I plug in the USB, Stickmount recognizes it and mounts an emulated partition on my sdcard.
It happens to work for a few seconds to a few hours, I really can't tell when it will work but usually after a few tries it stays stable for a while, so isn't that bad.
Today I tried to copy some pictures from my phone to the USB and I couldn't copy a single file.
Anyone else have trouble doing this?
Thanks!
danmit said:
Sup, guys!
I'm running stock with the latest franco Kernel (r48) and trying to use a USB OTG flashdisk to play music with Poweramp.
Usually when I plug in the USB, Stickmount recognizes it and mounts an emulated partition on my sdcard.
It happens to work for a few seconds to a few hours, I really can't tell when it will work but usually after a few tries it stays stable for a while, so isn't that bad.
Today I tried to copy some pictures from my phone to the USB and I couldn't copy a single file.
Anyone else have trouble doing this?
Thanks!
Click to expand...
Click to collapse
Try a kernel with otg automount
Enviado do meu Nexus 5 através de Tapatalk
Yes I always had issues with stickmount. I had to forceclose or reboot. I agree that Rom or kernel with automount is the way forward
Sent from my Nexus 5 using Tapatalk

[Q] ES File Explorer permission denied when copying to OTG flash drive

I've been getting this error whenever I try to copy anything onto a flash drive:
"EACCES (Permission denied)"
It used to work just fine before, so I don't know why it isn't working now.
The flash drive is EXFAT formatted. Phone is rooted, running ElementalX with EXFAT support ticked and Stickmount Pro. Reading any file still works.
Any ideas as to what happened?
keepcalmrollon said:
I've been getting this error whenever I try to copy anything onto a flash drive:
"EACCES (Permission denied)"
It used to work just fine before, so I don't know why it isn't working now.
The flash drive is EXFAT formatted. Phone is rooted, running ElementalX with EXFAT support ticked and Stickmount Pro. Reading any file still works.
Any ideas as to what happened?
Click to expand...
Click to collapse
What location are you browsing to to get to the flash drive? Is it the latest elemental?
rootSU said:
What location are you browsing to to get to the flash drive? Is it the latest elemental?
Click to expand...
Click to collapse
sdcard/usbstorage/sda1
Yes, I'm using Elemental 0.40
Does stickmount support exfat?
Sent from my Nexus 5 using Tapatalk
rootSU said:
Does stickmount support exfat?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
I believe so, as long as the kernel does as well. I know I've been able to write to this drive before, just haven't done so in a while.
no idea.
keepcalmrollon said:
I believe so, as long as the kernel does as well. I know I've been able to write to this drive before, just haven't done so in a while.
Click to expand...
Click to collapse
Anyone any ideas? I am having the same problem, exact same scenario using rooted stock on nexus 5. :crying:
My solution to NEXUS 5 can write to OTG USB pendrive
Ok, that's that I did, and it worked ( 4 or moure hours testing various things)
I used a Corsair Voyager GO 64 gb with NTFS filesystem.
My Nexus 5 is rooted.
I installed Chainfire "StickMount". So we can mount out USB pendrive to /sdcard/ubsStorage/sda1 No need to be PRO app.
I installed Paragon "paragon NTFS&HFS". Open it, and will ask to fix SELinux policies to Permisive. So Root Explorer can see now /Data/Media/ClockWorkmod/backup
I installed Jrummy Apps inc. "Root Explorer". I will copy, for example /Data/Media/ClockWorkmod/backup to /sdcard/ubsStorage/sda1 whithout any problems.
Don't forget to unmount USB drive before disconnecting it, go to StickMount and choose unmount
ES FILE EXPLORER WILL SAY "No space" "Error" or similar
Worked for me!
I'm happy with my investigation. I used Root Explorer in the past, and now it's useful again.
Sorry about my english, not perfect.
ENJOY!

Categories

Resources