CM13-based ROMs - cannot access my USB drive - Nexus 5 Q&A, Help & Troubleshooting

Hello, I've been looking for a new ROM to switch to but I've come across a serious problem.
From what I've noticed, CM 13 now mounts the USB drive in /mnt/media_rw/<uuid>. That's fine but I can access this folder only in CM File Manager. In any other app this folder is either not visible (eg. Root Browser) or it's visible as a file (Titanium Backup). I cannot use StickMount either, it just closes after trying to mount the drive and it keeps saying that "the service is busy". I've been trying several tricks with modifying permissions.xml, changing permissions and owners but after three hours of trying to get it to work, I gave up.
This seems to be happening not only on CM 13 but on any other ROM that's based on it (checked with Bliss). Logcat is here: http://pastebin.com/VRduYA1z
Is this a problem related to CM 13 or is there something wrong with my drive? Now I'm running on Chroma and with StickMount my drive works perfectly fine.

I think it has something to do with Marshmallow in general. Marshmallow introduced the feature of using a USB drive as internal storage or something like that. I think it may have changed the external storage location too. I don't know the details but I have had issues with emulators not being able to see my game ROMs on a USB stick as well. I've been wanting to store ROMs on my USB stick and play them on my Nexus Player with emulators but I'm having the same issue of not being able to navigate to them. I haven't figured out any fix for this.

Related

USB Drive Mode

I am not sure if this problem is related to the G-Tab or Cyanogenmod in general.
I have the 10" VS Gtab running CM 6.1-B4. I have an extra 16 GB MicroSD installed as well. Trying to mount on Win7 Home Premium 32Bit.
Obviously I wanted to be able to see my tablet's storage space in Windows and copy files to and from it, but when I plugged the Tablet in after installing CM 6.1-B4, I couldn't see the Tab's storage space on Windows.
I should NOTE here that I am only trying to see my additional 16GB MicroSD here
Tried USB Debug On and Off. Tried to turn USB copying on and off via the status windows at the top of the CM screen, nothing.
Then I was looking through Winamp for Android's settings and found the USB Auto Mount. Voila, I now have my 16 GB MicroSD available in Windows 7. I may not have been the first to stumble across this, I don't know for sure. Everything I've searched for as a solution just simply told me that CM6.1-B4's USB Drive mode was broken and was on their to-do list to fix in the next stable release for the GTablet. So naturally I was very excited when I stumbled across this "fix" and thought I should share it with the community.
Love XDA and this entire community.
RogueAngel2k
"Caution, I void warranties."
I have Winamp set to mount the sd2 card but my win 7 (64bit) machine is still not seeing the card. This is making me a little nuts. I tried putting the card into the machine and transferring the music directly onto the card but when I re-inserted the card into the Gtab it doesn't show any music, it doesn't seem to find anything, just tells me that it is scanning - to infinity, doesn't ever seem to stop scanning and never finds anything.
I'm about to give it another try and see if I can come up with something that works. If I do I'll post it here.
R
usb
Try reformatting the card... after copying your music over, check the "hidden" attribute isn't set. Will be waiting your reply

[Q] Mounting multiple usb drives via hub

So, I have a USB hub and a couple flash drives. Everything "works" fine. I say it like that because the hub functions fine, and the first drive you plug in mounts to /usbdrive just fine. The issue is with the second. When you plug in the second drive, Android sees it in /dev/block as sdb1, and using the Terminal app I can manually mount the drive and use it.
Ideally though, it'd be nice if there was a way for Android to see the second drive and automatically (dis)mount it to something like /mnt/sdcard/external. Is this something that can be configured in the system?
What about the way Android detects and mounts an initial flash drive currently? Does anyone have any knowledge of how that's working currently? Perhaps that could just be duplicated to work with a second one?
This might help.
http://forum.xda-developers.com/showthread.php?t=952456
I'm not sure that's quite right. From what I'm seeing, that tool is designed to let you mount existing media on your device in a way that makes it available to a PC. I'm just wanting the tablet to mount a second USB drive so that it's available on the device itself.

[Q] Re: Samsung Galaxy S2 (l9100) Car USB internal mount

Hi all, I've been waiting and searching around seeing if I was able to find any kind of fix or something for some time now but it's beginning to get to me far too much.
My problem is when I had the HTC Aria I used to have the audio stored on my phone and plug it into my car's USB connection and the headunit would search the device and find all audio to play through the headunit which I was then able to use my controls on the steering wheel. After some time I bought the Samsung Galaxy S2 (l9100) and to my excitement received the whopping 16GB internal storage as a bonus, so I filled that. And heres where my problem comes in, I cant seem to make my headunit search the internal storage and play all that music, It will only search the SD card (external).
Now from reading all over the internet I've been led to believe by any posts that relate somewhat to this that it wont be possible for this to work, what frustrates me though is that it is possible. I've rooted and flashed various custom ROM's to my device (VillianROM first, Cyanogenmod Nightlies second and now MIUI yesterday). I have successfully had the headunit read my internal (newer and more songs) upon connection twice that I can recall now, I think the first time was after first connection to the car after the cyanogenmod flash and today when I first connected it again. Which led me to believe that it was working and then was just applying a new theme on my phone while hanging at a friends then was taking another friend home and plugged it in and back to only reading from my SD card (external - old crap music) and can't figure out why it has worked twice if it is not possible.
The reason why I am determined to figure this out is due to 16 GB internal storage and only 1 GB external storage and I wish to use my phone to its full potential.
While I'm at it, I guess I should mention my other problem which adds to my determination to get the USB connection working with my car. The USB connection is a much clearer & louder playback (Higher quality) then the AUX (current alternative) and to be safer while driving by using my steering controls.
But since flashing to Cyanogenmod and MIUI (cannot recall whether I had this problem on VillainROM) I've noticed the volume in headset mode (when I have something plugged into the headphone jack - ie, AUX, etc) and I begin turning up the volume from quietest to loudest it get notably louder each press until halfway or a press before halfway and then does not become any louder, which I also think may be making the audio less clear and loud when connected via AUX to my car.
Thanks in advance to anyone whom contributes.
I am usually stubborn enough to sort problems out myself, but for the first time I am asking for help on a community forum.
Anyone have any idea what I'm talking about?
If you need to know anything else don't hesitate to ask.
CM7 volume is a known issues or least it was last time I checked.
Try turning on/off usb debugging is my best guess.
Done that, today at some point it randomly read my internal storage and right now I'm constantly reconnecting it with no success.
The frustration continues as it is obviously possible but appears to have a mind of its own.
With my little knowledge when it comes to android and their platform, is it possible it could be there mount priority of the storage or the internal having something stored on it such as an app that could be in use by the phone which could be preventing the drive from being read?
what the hell... I have the exact OPPOSITE problem.
With my headunit its been only mounting the internal storage, but most of my music I put them in the external since I got a 32gb card!
Could it be mounting the smaller sized storage first? =P
-EDIT-
Actually it should be easier to do it the way you want it to (i.e mount internal only)
just unmount the sd card via the android settings -> storage -> unmount
and once it is unmounted, connect the usb to the car.
The catch is of course if you wanna use the external again you have to manually mount it via the settings.
more info but no real help
I have seen a very similar problem and I feel like I can reproduce it.
I've got a 2010 Hyundai Tucson - it has a USB/aux port in the dash console and can accept anything that can be mounted as flash media, flash drives, ipods, etc can all play back music using the Nav display to browse and playback files from the device.
The stereo plays back music perfectly through both my wife's old and new phones. An original MyTouch 3g and a MyTouch 4g. She's had no problem mounting and reading the files from her internal storage. She can playback music on her phone, the car even remembers her place and resumes where she stopped a song.
I, on the other hand, cannot easily get the car to playback files from my older or newer phone. I started with the original android, the HTC Dream/TMobile G1 then later upgraded to a Samsung Galaxy S 3g/TMob Vibrant. What's the difference? I've run modded android OS on my phones and my wife has not. I had been running CM5 and later CM6 on the G1/Dream until I retired it. Lately I've been using a MIUI mod, Lithium 360, on the Vibrant.
When I plug in to the USB on the car, the phone gives me the mount prompt and the car begins searching for files. Eventually both fail to make any progress.
I've tried many fixes including turning on/off USB debugging, I've tried wiping Dalvik cache, Wiping regular cache, I believe I even did a factory reset, flash zip, full re-install on a road trip just to see if I could get the car to read my files. What I did discover is that the problem is simply not hardware related. I could boot to recovery and use clockwork to mount USB storage. Files were seen instantly and played back fine. However, this doesn't do me any good as I can't really use the device for anything else (safety first ) and not to mention that there's no way I want to run the phone with the screen on for hours. I know there are simple workarounds here. But carrying an aux/patch cable is an extra hassle, and since my phone can hold enough data for my average means, I often don't remember to bring a flash drive with me everywhere. Besides, the USB cable in the dash does double duty, charging while giving access to files.
To be fair, I've only used CM based mods (according to wikipedia, MIUI is somewhat based on Cyanogen) on my phone and have not tried out any other android software. I don't know if that's a connection or not, but it's the only lead I have right now. There's got to be something different about the USB settings in the OS itself compared to stock Android. Is there an apk file one could flash and test somehow?
---------- Post added at 04:56 AM ---------- Previous post was at 04:49 AM ----------
http://forum.xda-developers.com/showthread.php?t=617333&highlight=car+stereo
This thread is above seems to be describing the same problem. This however appears to be an aftermarket stereo.
[Q] After mounting it *immediately* dismounts
Connecting to a Samsung TV (USB debugging ON and clicked on USB Storage until it turns from green to orange) and then browsing USB (Menu => USB device) it mounts the USB ("Android 11GB" which is presumably the internal SD) and then dismounts within a second and restarts initializing. An ordinary USB stick (single file system) does mount.
Is this because the Galaxy S2 mounts two file systems at a time and the TV cannot handle this. Is there an app which only mounts ONE filesystem on the Galaxy ?

Phone seen as CD drive after JB updated

I apologize if this has been already addressed but I`m gonna ask anyway.
After switching to ViperOneS 2.0.0 JB, every time I plug my phone in, it`s seen as CD drive not SD. This happens on both: laptop and desktop.
Is there a workaround for this ?
Thanks in advance.
It does this because Sense 4+ supposedly uses MTP (a different protocol other than the traditional storage mount) to transfer files. Unfortunately, there seems to be no way to get the regular transfer protocol back. I tried apps on the Play Store and got no luck.
I personally dislike MTP with a burning passion. It's much slower and less stable in my opinion. HTC started using it because its supposed to get rid of corrupting errors and allows you to read contents on the storage while it is mounted (IE: play music whilst connected to PC). I hope they stop using it soon in an update (hopefully Sense 5?) but until then or until someone can ditch MTP with a mod, you have to either live with it, flash AOSP, or mount in TWRP if you absolutely have to. I personally am able to live with it (force to use iSyncr over wifi b/c it doesn't work with MTP) and just hope it gets changed. Hope this helped.
Thanks a lot, CSP.

Nexus 5 charges slowly, no more MTP/PTP/USB tethering post 6.0.1

Hi all, I noticed that in Marshmallow Google moved the options for MTP/PTP into developer options, which is kind of odd. One explanation I saw online is that it's because of adoptable storage making it not possible to access the SD card files over USB and and on the phone, which makes no sense because a) that's why we switched to MTP in the first place and b) Nexuses don't have SD card slots. But OK, fine, they moved the setting for some reason, probably just a mistake making it into the release build. But now after flashing stock 6.0.1 and rooting via SuperSU, USB connectivity to a PC does not work at all, no adb, no MTP, nothing. Tested on two different laptops, Linux and Windows. Even charging is slower (it literally says "charging slowly" on the lock screen) and I can't access files or use USB tethering. Has anyone else experienced this, and does anyone know of a fix?
Posting here because while I no longer use ROMs, I feel like people here tend to know about random issues like this more.
Thanks!

Categories

Resources