ICS Usbstorage trouble - Galaxy S II Q&A, Help & Troubleshooting

Hi All
Has anyone else had problems accessing usbStorage since upgrading to ICS? Under Gingerbread i was happily able to connect the phone to a PC and drop music/video files into the usbStorage folder to carry around with me (I currently have no MicroSD card). I could access these from the phone with no problems.
Since upgrading to ICS, anything i drop into the folder on the PC dosen't show up within the phone (folder is blank) yet it still reports the space as decreased.
Any ideas anyone?
Thanks
Andrew

Upon using Astro to look at the usbStorage folder it appears to have the permissions "dr-" whereas all the others on the internal memory have "drw". Does anyone know if this has been locked down in ICS? I've wiped the storage area but still no joy.

I'm not 100% sure what you're asking.
Is there any particular reason for putting files in the /usbStorage folder?
The drive that this folder is located on is your Internal SD, meaning you can put files anywhere on there and they'll be visible in file explorers, and when you connect to your computer you can see the whole of the Internal SD, so there's no real reason to put stuff in that folder if it's causing issues.
I'm not quite sure why it exists in the first place to be honest, I assume it's a relic of a previous bind to another location (like a shortcut, in the same way as external_sd is a shortcut to the micro SD card in some ROMs).
If there's no particular reason for using that specific folder, I'd advise just creating your own home folder on the Internal SD, that's what I've done.
EDIT: When you put stuff in there on the PC, but then it doesn't show up on the phone even though the available space has decreased, does it still appear when you connect back to the PC and look in that folder?
It sounds like it might be an active bind to another directory which is currently empty. I think that when you connect to a PC, folders that are acting as binds/shortcuts don't act as such in terms of how the PC sees them. So basically, when you put something in there on the PC it actually puts it in the /usbStorage folder, but when you navigate there on your phone, it sends you to where the bind/shortcut leads, meaning you can't actually look at what's inside the folder.
I'm likely to be corrected by someone who understands binds better than me, or who knows what the /usbStorage folder is actually for, this is just me guessing based on the things I've learned about binds over the past few days.

The usbStorage folder is only for use with USB OTG devices. Stop sticking stuff in it if you're not using USB OTG.

oinkylicious said:
The usbStorage folder is only for use with USB OTG devices. Stop sticking stuff in it if you're not using USB OTG.
Click to expand...
Click to collapse
Ha, I was right, enter the more knowledgeable amongst this forum's users. Thanks for setting me straight.
Out of interest, is this folder working as a bind, or does USB OTG work in its own, slightly different way?
@OP: I'd still suggest just creating your own home folder on the root of the Internal SD. This way you can name it whatever you want, and I've filled mine with a bunch of useful subfolders for separating music/video/docs etc. like your home folder on a PC. Many file managers will let you create a shortcut to it on your home screen or set it as the default location when you open the file manager. This means you can avoid trudging through the often crowded root of your internal SD (since so many apps seem to dump their crap there, many without good reason) in day to day use.

Thanks guys, I believe I got everything confused right from the beginning.
When I first had my phone I saw the folder /external_sd/ for a microSD and then incorrectly assumed /usb_storage/ was for the internal 16GB, so used it to store stuff. I could access over MTP when plugged in and could files from within the phone.
Since ICS /usbStorage/ now appears to function differently and acts as a mount point for when the phone is set to USB mass storage mode (Settings > More > USB utilities > USB mass storage). Any space claimed by files dropped in via the PC is not available to the phone.
Does that sound right?

I too have had this problem since I've upgraded to ICS , I use to be able to plug my Garmin GPS device via OTG cable and browse and update files.
Now with ICS installed , the phone doesn't seem to enable USB storage or mount my device.
I see a bunch of error messages in the log related to USB
Code:
E/DataRouter( 1832): DrReadUsbStatus returns false USB is offline
E/DataRouter( 1832): DrReadUsbStatus returns false USB is offline
E/DataRouter( 1832): DrReadUsbStatus returns false USB is offline
E/DataRouter( 1832): DrReadUsbStatus returns false USB is offline
note it used to mount as /mnt/sdcard/usbStorage/sda/

Related

[Q] USB seems to link to mystery area on tablet

When I hook my tablet up to the PC via USB, I get a drive letter in Windows. When I open that drive, there are files in there- however, I can't find where these files are on the tablet when I look there. There are folders in the PC view like Android, data, DCIM, Download, kindle, LOST.DIR, media, and .android_Secure and .HuffPost. However, these are not folders on my SD card (which would be /sdcard2) or my internal /SDcard folder. I've tried hunting and pecking through the tablet file structure and doing searches on the files in the folders, but I can't find where the location I see on the PC is on the tablet.
Any help? Big thanks in advance. I successfully rooted the tablet using the TNT_Lite ROM, and haven't noticed any other problems.
debug mode....
I've found the same...sort of. Sometime I get that it is in debug mode and I can't access file, and other times it does mount fine and I can access the files.
It's not that. When USB Debugging is on, I can't see the tablet in Windows.
Just to ask while waiting for a better answer- when everyone here connects their G tablet via USB to their PC, what area do they connect to?
Not sure if this is any different from Vegan's setup but I'm assuming it isn't.
The files and folders you listed when you connect your tablet to your pc via usb are in the "/sdcard" directory. On vegan tab at least, it is set up so that your internal memory (the 16 gb or whatever it is that is built into the tablet) is accessed through the folder /sdcard. What you may be confusing this with is either the /sdcard2, which would be an external microsd card, or the root ("/") directory of your tablet.
All of You,
Here is a link to a post I did that should help you:
http://forum.xda-developers.com/showthread.php?t=1010943
Read this and post back if you have more questions.
Rev

Some Files Not Showing When Connected To PC

I am having an issue with files not showing up on my PC, that are in root explorer. I search the directory on my PC and and it doesn't come up.
By default, GS2 connects in MTP mode which only shows/transfers media files (videos and pictures). You will need to connect as Mass Storage mode in order to show everything. Go to Settings->Wireless and networking->USB->Enabled USB Mass Storage before you connect the USB. Then you connec the USB and hit the button screen to enable the storage. This way, the phone storage will show up as a external drive.
foxbat121 said:
By default, GS2 connects in MTP mode which only shows/transfers media files (videos and pictures). You will need to connect as Mass Storage mode in order to show everything. Go to Settings->Wireless and networking->USB->Enabled USB Mass Storage before you connect the USB. Then you connec the USB and hit the button screen to enable the storage. This way, the phone storage will show up as a external drive.
Click to expand...
Click to collapse
Thanks I was able to view the files on the PC, I just can't see all the files. I am trying to access the directory. data/data/com.com.2us.HB3D to replace a comlib.dat file. I see this directory in root explorer, but on the PC I can only see /data/datacom.com.2us.HB3D and not any other files.
HTC Chris said:
Thanks I was able to view the files on the PC, I just can't see all the files. I am trying to access the directory. data/data/com.com.2us.HB3D to replace a comlib.dat file. I see this directory in root explorer, but on the PC I can only see /data/datacom.com.2us.HB3D and not any other files.
Click to expand...
Click to collapse
maybe I'm wrong but I didnt think you can see all your files on sdcard due to security reasons. Only files that are in the "sdcard" folder, or whatever its named now
nyydynasty said:
maybe I'm wrong but I didnt think you can see all your files on sdcard due to security reasons. Only files that are in the "sdcard" folder, or whatever its named now
Click to expand...
Click to collapse
Figured it out just now, a while ago when clicking SD card in root explorer, it would come up with "SD card not mounted". So what fox told me earlier did work! I transferred the file I needed to "USB Storage", then went to "SD Card" in root explorer and pasted the file over.
i guess i was wrong. glad to see you got it working, though.

usbStorage once again

Welcome
Yes, i have read about usbStorage weirdness. But still i hope to find solution to my problem.
1. I saved some files (photos) to the root of internal memory (/data/some_folder/)
2. While my phone was connected by USB to the PC, I moved these files from /data/some_folder/ to /mnt/sdcard/usbStorage (as I expected, that this will work like regular folder. Now i know, it does not).
3. moved files disappeared from /data/some_folder/ and also does not exists in /mnt/sdcard/usbStorage
What can i do about it?
a) if I want to undelete from /data/some_folder/ - programs for undelete does not recover from main memory of phone, specially from root.
b) if i try to undelete from usbStorage - no file is found.
c) i tried to connect to mobile a pendrive by OTG cable - no files are shown in usbStorage
I searched everywhere, but could not find a solution.
This is why i am asking here for help, as this forum probably gathers the best specialists.
Try to present a post better than the effort youve tried.You talk about "moving" files,then want to "undelete" them.
If I was you Id search each partition for photo files(jpeg or whatever).
Sent from my GT-I9100
theunderling said:
Try to present a post better than the effort youve tried.You talk about "moving" files,then want to "undelete" them.
If I was you Id search each partition for photo files(jpeg or whatever).
Sent from my GT-I9100
Click to expand...
Click to collapse
I moved the files to usbStorage folder, because I expected them to be moved. Only after that I noticed weirdness of this folder. Moving operation, as you may know, contains from 2 parts: copying to new location and deleting from old. Since none was copied to new location (or at least I cannot see it) and in the same time all was deleted from old location, I was thinking to solve te problem by undeleting from old location.
Of course I have searched an entire memory for those files, but none found.
krzysio.mobile said:
Welcome
Yes, i have read about usbStorage weirdness. But still i hope to find solution to my problem.
1. I saved some files (photos) to the root of internal memory (/data/some_folder/)
2. While my phone was connected by USB to the PC, I moved these files from /data/some_folder/ to /mnt/sdcard/usbStorage (as I expected, that this will work like regular folder. Now i know, it does not).
3. moved files disappeared from /data/some_folder/ and also does not exists in /mnt/sdcard/usbStorage
What can i do about it?
a) if I want to undelete from /data/some_folder/ - programs for undelete does not recover from main memory of phone, specially from root.
b) if i try to undelete from usbStorage - no file is found.
c) i tried to connect to mobile a pendrive by OTG cable - no files are shown in usbStorage
I searched everywhere, but could not find a solution.
This is why i am asking here for help, as this forum probably gathers the best specialists.
Click to expand...
Click to collapse
I do not really understand where (i.e. in which memory) you lost your files. However if this memory is accessible when you connect your phone by USB to a PC, then you could try PhotoRec to recover the photos.
fxrb said:
I do not really understand where (i.e. in which memory) you lost your files. However if this memory is accessible when you connect your phone by USB to a PC, then you could try PhotoRec to recover the photos.
Click to expand...
Click to collapse
The folder lies in a root of main memory. The path is /data/some_folder/. It can be accessed by for example Total Commander or ES Explorer (on android, not on PC).

[Q] cm7 cannot save to internal sd

Hello. I.ve checked the first 40 pages of the forum and have seen this posted before but with no answers. I.m running cm7 on a 16gb NT, and for the most part, everything is good. However, I want to use my internal space to save things to, like pictures from the internet, etc. Whenever I try now, a message says I Don.t have an external SD card installed, which I Don.t, but I have almost 8 gigs of internal space I.d like to use. Also the media player installed with cm7 says no SD card installed. Surely there must be a way to use the internal space and have the apps detect it as an SD card?
There is a way, I haven't tried myself, that involves swapping internal with external memory, by tweaking build.prop and vold.fstab files. This makes the internal memory external, though the label remains as the original.
And you don't have 8gb internal memory (unless you reparationed it) but 1gb only.
when i go to storage in settings, it says i have 5.5G of internal storage and 7.45G of additional storage under /mnt/media. i haven't repartitioned anything myself, but this was a pre-owned nook, so maybe the original owner did. also, i do have the "internal storage" box checked in cyanogen settings... Any ideas? Or do you have more info on the file editing?
pournstarr said:
...
Or do you have more info on the file editing?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2068595
^^ link above is the method but for cm10 where storage is mounted as storage 0 and 1, in cm7 its emmc and SD card (or something like that)
So does anyone have the exact commands to use for cm7 in the fstab? Also, will I be adding these lines or replacing ones already there?
Does anyone have an answer for this? Its hard to believe all the NT owners out there are contented letting all that space go to waste...
Well, I'm not letting any space go to waste!. I put lots of stuff in my internal storage. Either I put it there when transferring from PC, or I transfer files between sd-card and internal.
But that's beside the point.
Check over in the Nook Color section and maybe you can find useful info there. I know it was discussed and solved for CM7 on the Color. Shouldn't be too different for the Tablet. One would think... and possibly be terribly wrong...
( I don't think there is a huge interest in CM7 for the NT any more.)
Has this issue been addressed in cm10? Does the nook recognize the extra internal space as a place to save stuff to from the internet and read files from like with media players? Sorry for being meticulous about this, but I bricked my other NT messing around trying to access this space (I unmounted and formatted it and believe I wiped my internal partitions) and don't want to mess up this one as well. Thanks for any help...
There doesn't seem to be an easy fix for this in CM10. However much I would appreciate having it done I don't think it's worth taking risks messing with things I don't understand, so I pop in an sd-card to keep the apps that want it happy. (Those of you that have more of a clue might think differently though.)
Things I want to stay on the Nook I put internally like I said in my previous post. Pictures, some books, soma PDF magazines, a couple of film clips... All in my internal "MyFiles" folder.
And how do you open those files, with a file explorer or with actual programs? Because like I said right now, even if I did have music stored in that internal space, the media player is telling me there is no sd card inserted and therefore won't even search for any music files.
I open from a file explorer and it asks me what I want to use and if to set to default the first time.
Edit: And also (I had to go check this to be sure I wasn't remembering wrong), once opened with Gallery the app seems to "remember" that there are albums in eMMc as well and they show up wvwn with sd removed. This is in CM10, mind you, if it acts differently in CM7 I wouldn't know.
More edit: I now checked on the kids' Nook Color running CM7, and both QuickPic and MX Player allow you through settings to decide where it looks for media. I still prefer going through a file explorer though.
and now we come to another issue... i cannot for the life of me get my computer to recognize my nook properly. i was going to add the files from my computer and then locate them with a file explorer, but when i connect it, either through the regular cm7 interface or through CWM, the computer cannot access the internal drives. it sees the nook, because 2 more drives open up, but i don't think i have the correct drivers, because it doesn't show up in ADB either. when i do adb devices, it comes up blank. the driver now lists the nook as Android ADB interface, don't know if thats correct or not, but doesn anyone have the proper windows 7, 64 bit drivers for this? nothing i've tried can gain access to those drives, or having the nook come up in adb...
Is this the first time you try to transfer files from PC to Nook? Has it been working before? Just to know if something has suddenly gone wrong .
You should get a prompt at the Nook telling you to enable USB storage or something like that. You probably need to go to settings and enable USB debugging or somethig similar as well.
Edit: I have never ever used ADB, so I have no clue how to fix things there!! I just use regular Windows File Explorer.
pournstarr said:
and now we come to another issue... i cannot for the life of me get my computer to recognize my nook properly. i was going to add the files from my computer and then locate them with a file explorer, but when i connect it, either through the regular cm7 interface or through CWM, the computer cannot access the internal drives. it sees the nook, because 2 more drives open up, but i don't think i have the correct drivers, because it doesn't show up in ADB either. when i do adb devices, it comes up blank. the driver now lists the nook as Android ADB interface, don't know if thats correct or not, but doesn anyone have the proper windows 7, 64 bit drivers for this? nothing i've tried can gain access to those drives, or having the nook come up in adb...
Click to expand...
Click to collapse
Are you running cm7 alpha? I think there was this problem in that but was fixed in beta
yes this is my first time trying to transfer files from the PC to the Nook, I installed cm7 as soon as I got it (which was this xmas). I don't have my computer on right now, but I'm 99% sure when I unzipped the release it said beta. Team-B version. nothing ever pops up on the Nook or the computer screen when I plug it in, I can only see the drives that get added to my computer, but can't access them.
After plugging to PC via USB you should get prompt on tablets notification bar. Did you get that?
Sent from my ST21a
This is from the Nook Color section, but it shouldn't be too different for the Tablet. Post 2
http://forum.xda-developers.com/showthread.php?t=1760487
ok i see the notification on the bar and it says usb debugging connected. when i click on it, it brings me to the settings mentioned in that other thread that asawi linked, but the android debugging mode is already checked. i followed that other thread and it turns out that guys cable was bad, so i tried the other cable i had that came with my other NT and still no luck. i doubt both cables i got could be bad... any other ideas?
Edit: ok queer. i restarted the nook while the cable was plugged in, and then i did get the usb storage connection option. however, after i hit connect, i don't see the drives in my computer. so i updated the driver automatically, and it went from android phone back to usb composite device. then i the drives popped up in my computer, but i still can't connect to them. i tried adb throughout all these options and i didn't get the NT to show up in the devices list at all.
You don't get the " turn on USB Storage"? There's usually 2 notifications when connecting. The setting you mention and the "turn on USB storage"

Internal Memory and USB transfer

So I guess flashing with CM 10.2 does not alter the built-in folder structure of the NT. I show two categories of "internal storage": about 11.6 GB of "available" space (some of which seems to be taken up by apps and cache) and a second category of a miserly 1 GB. [oh yeah, turns out the "8 GB NT" I got from ebay was actually a 16 GB model. Go figure]
Question: can I rename the "B&N downloads" folder and delete subfolders without messing anything up? If so, can I store files in there (videos, music, epubs, etc.). I'm guessing that the "My Files" folder is actually on the 1 GB partition. Is this correct? Can I likewise customize those folders?
And USB.... As far as I can tell, only MTP works with my Win 8.1 system--and not well. I cannot see any files, just "internal memory" (the 1 GB part). Dragging and dropping gives a "can't copy because the device has stopped" or similar, but the file does seem to transfer. You just can't see it on the computer. Using the "Send to" shell command gives a similar result. If I change the USB setting to "mass storage" and turn on USB debugging, I get the little system tray icon for a connected USB device on my PC, but the Nook is not listed there and nothing shows up in the explorer file directory.
So....is this as good as it gets for transferring via USB? I can always pop out the SD card (who thought up that compartment behind the half-ring ), put it in my PC, copy the files and then put the card back in the Nook and use File Manager to move things around. Ugh.
Is there a better way? Maybe the WiFi Transfer app (I use that on my Nook ST).
When that happens to me a reboot of the tablet usually fixes it. Alternately CM 11 / 4.4.2 ROMs usually eliminate that issue entirely.
Also, if you search the nook tablet forums, there is a way to repartition the device so you have 1Gb internal and the 11.6Gb for installing apps, files, etc. I did that to my nook tablet couple years ago and it's worked swimmingly.
Merrell
Sent from my Nexus 7 using Tapatalk 4

Categories

Resources