[Solved] Internal Storage Empty - Nexus 4 Q&A, Help & Troubleshooting

My phone was taking too long to boot up yesterday after installing latest franco kernel so I have decided to format and clean flash rastapop. After everything's up and running, I tried to access my internal storage via USB on Windows 8 but when I click into the drive it was completely empty. I checked the storage space on my phone to make sure that I didn't accidentally wiped the internal storage and it showed 5.1GB out of 12.92GB. I've also used ES File Explorer to see if I can access storage directly from the phone but it showed the same thing - completely empty. Wifi sharing didn't help either. One weird thing was that I could see the files when I booted into the recovery mode. I have tried almost everything including clean flashing the rom again. I really don't want to format my internal storage. Please help. Thanks!
Found the solution: http://forum.xda-developers.com/showpost.php?p=56782014&postcount=7
Simply just type in these in adb:
adb shell
su
restorecon -FR /data/media/0

For a permanent solution flash stock boot.img again. Otherwise you face the same problem when flashing any other custom kernel again.

brownmonkey300 said:
For a permanent solution flash stock boot.img again. Otherwise you face the same problem when flashing any other custom kernel again.
Click to expand...
Click to collapse
What? Not true
Sent from my Nexus 9 using XDA Free mobile app

Related

URGENT: Factory Reset wiped sdcard

I have a rather urgent issue, in which a factory reset wiped my sdcard. First of all, is that normal? This is my first device with no external microsd, and my first time using TWRP. Before, I had been using various versions of Amon-Ra or CWM, and when I factory reset they never wiped the sd card. Next, whether it was normal or not, I need a way to recover my data. I had around 8 gigs in sdcard before it got wiped.
To give you more background info on what was going on, I had a rooted 4.1.2 16GB Nexus, and I decided that I wanted to try PA. I made a nandroid backup of course, and then proceeded to flash the rom. I followed the instructions on the PA thread, first doing a factory reset followed up by the actual flashing, then a wipe of cache/davlik. After I tried the rom out for a few minutes, I noticed that there weren't any redeeming features to make it worth the time-consuming switch from stock to PA, transferring all my data and setting up my settings once more.
I rebooted back into recovery and factory reset again, and then I went to restore and saw that there were no backups. Suspicious, I went to the install menu, and found my entire sdcard folder had been wiped out. What happened?
Edit: I'm currently still on the recovery, afraid to do anything in case I lose my data forever.
Was your boot loader already unlocked or did you unlock it right before you flashed the ROM?
littleemp said:
Was your boot loader already unlocked or did you unlock it right before you flashed the ROM?
Click to expand...
Click to collapse
Thanks for the reply, especially on Christmas, but I got around the issue myself. It had been unlocked for 2 months now.
I noticed that every time I booted into recovery, it would make a "0" folder and move the contents of my sdcard into that "0" folder. Then the 0 folder would go inside another 0 folder, and so on and so forth. It was a really strange issue because I was unable to restore my backup; TWRP could not find my /sdcard/TWRP/backup folder, because it did not exist! It was in sdcard/0/0/TWRP/backup. I used the built in file manager in TWRP, and moved the contents back into the proper folder. I could then restore, and now I'm feeling relieved.
However, two issues remain; the 0 folders are still there, and storage transfer speeds seem very slow.
Edit: I got rid of the 0 folders by moving my folders out of them and then deleting the 0 folders, but the size of my files seem to have been inflated. What took up 6 gigs before is now taking up 8.8gb. Lol wut? Also, when I hook it up to a computer it tells me that 12GB has been filled. So many discrepancies.
androidwkim said:
Edit: I got rid of the 0 folders by moving my folders out of them and then deleting the 0 folders, but the size of my files seem to have been inflated. What took up 6 gigs before is now taking up 8.8gb. Lol wut? Also, when I hook it up to a computer it tells me that 12GB has been filled. So many discrepancies.
Click to expand...
Click to collapse
I am having the same problem. I think everybody has that problem, because it's caused by jelly bean 4.2 and its new emulated storage.
The only way I have found to get arround it was to copy all files on the computer from the sdcard, then formating the sdcard in recouvery and moving everything back.
Only problem I am having right now is that I can't for the love of it copy my files. Stupid MTP filesystem is really buggy and extremly slow. I constantly crashes or gives me multiple erros. The one I am having at the moment is something about a parameter error.
Very annoying the stupid filesystem under 4.2.
Btw. I can't get the adb pull command to work either. When I tell it to copy system/storage/emulated/legacy (I believe thats where the sdcard is actually loccated, right?!) it doesn't copy a single file.
If anybody could help me I would be very greatfull.
xaboren said:
I am having the same problem. I think everybody has that problem, because it's caused by jelly bean 4.2 and its new emulated storage.
The only way I have found to get arround it was to copy all files on the computer from the sdcard, then formating the sdcard in recouvery and moving everything back.
Only problem I am having right now is that I can't for the love of it copy my files. Stupid MTP filesystem is really buggy and extremly slow. I constantly crashes or gives me multiple erros. The one I am having at the moment is something about a parameter error.
Very annoying the stupid filesystem under 4.2.
Btw. I can't get the adb pull command to work either. When I tell it to copy system/storage/emulated/legacy (I believe thats where the sdcard is actually loccated, right?!) it doesn't copy a single file.
If anybody could help me I would be very greatfull.
Click to expand...
Click to collapse
I had the same fear, emotion and discovery a week ago when trying a new Rom thanks multi users feature .
You may try to switch from MTP mode to MSC in system setting to increase the speed.
Take care of the different tools because as example JROMFlasher will format the SD card for better cleaning. (I had backup!)
I think I read that the Factory Reset from the settings menu WILL erase everything.
Formatting with ClockworkMod, saves your sdcard files.
I also recommend unlocking asap just for laughs. Even if you don't plan on rooting or Modding... unlocking will ensure your files won't be deleted if you decide to or something happens that requires it
Sent from my Nexus 7 using XDA Premium HD app

Fixing Internal Memory 0.00 B

[Not sure this is the right section, but since it requires a bit of knowledge on adb and stuff, I thought the development area would be better]
I happened to do something, somehow, which cause my Internal Memory to completely "disappear". The only way to get it back was downgrading to GB. However signal wouldn't work. I tried everything I saw on the Internet. But most people had to take it to the customer service. I didn't want that. My mobile was still working, I knew I only needed to fix something no matter what!
I realised that when this problem occurs, if you go to About Device, you'll see that your Baseband version will be XXXX. If that's not the case, just try factory reset, wipe cache, dalvik, etc... and re-flashing stock via odin. BUT if that IS the case, follow the steps below:
DO THIS ONLY ON I9070 (GALAXY S ADVANCE) DON'T TRY IT ON I9070P SINCE I'M NOT SURE IT WILL WORK AND IT MIGHT BRICK YOUR DEVICE.
1 Download http://d-h.st/W5W
2 extract it into your SD Card
3 Run adb, since you won't be able to install terminal on your mobile. However if you've got a ROM with terminal pre-installed you can use it anyways.
4 Use this command on adb: adb shell
su
dd if=/sdcard/modemfs.img.md5 of=/dev/block/mmcblk0p2
If you have this problem on a different device and found this thread, try looking for the mmcblk0p2 for your device, extract it to your SD Card and type on adb: dd if=/sdcard/mmcblk0p2 of=/sdcard/modemfs.img.md5
Then, go to step 4
That's it, folks! If nothing happened yet, reboot your mobile and both your network and memory will be working.
Hit thanks if I've helped you anyroad
Sorry but it didn't work for me.
hey buddy, thanks for the info... in my phone i have baseband name, but i dont have system storage ... i try your metod but i couldnt fix it...
can you give me a little more information how did you do? thanks and sorry my bad english....
are u sure u have root access? try using Root Explorer, google it. there is one that is really good. I used this method on JB. It should work on GB also... if nothing like reflashing stock, wiping data, cache and dalvik cache and fixing permissions worked, thats the last hope. other than that, only customer service as far as I know :sad: try to follow the steps thoroughly. ALSO, just to make sure, put the modemfs file both on the internal memory and external sd card, since it might have been changed. MIUI for example would recognize your external sd card as ur internal memory and vice-versa
gustavray said:
are u sure u have root access? try using Root Explorer, google it. there is one that is really good. I used this method on JB. It should work on GB also... if nothing like reflashing stock, wiping data, cache and dalvik cache and fixing permissions worked, thats the last hope. other than that, only customer service as far as I know :sad: try to follow the steps thoroughly. ALSO, just to make sure, put the modemfs file both on the internal memory and external sd card, since it might have been changed. MIUI for example would recognize your external sd card as ur internal memory and vice-versa
Click to expand...
Click to collapse
Yes, i have a root access. I flash JB XXLPY, then i flash kernel to have CWM, then i wipe all data, install Chuckybean ROM and i have 0 MB internal memory. After tha i've tried your fix via adb and even wondering if i can do this via odin...
NOTHING still the same 0 MB...
jjeerry said:
Yes, i have a root access. I flash JB XXLPY, then i flash kernel to have CWM, then i wipe all data, install Chuckybean ROM and i have 0 MB internal memory. After tha i've tried your fix via adb and even wondering if i can do this via odin...
NOTHING still the same 0 MB...
Click to expand...
Click to collapse
then try reflaashing via odin the stock rom with the pit file. that can be found on section on how to downgrade to GB. make sure u use the right pit file for the 8 or 16gb version. then when flashing, make sure to check the option of Re-format
gustavray said:
then try reflaashing via odin the stock rom with the pit file. that can be found on section on how to downgrade to GB. make sure u use the right pit file for the 8 or 16gb version. then when flashing, make sure to check the option of Re-format
Click to expand...
Click to collapse
Been there, done that

Need Help Please

So I was about to flash a ROM and I had too many things on storage and cleaned and wiped everything. I then went on to use Format Data, hoping that it will only delete files and not the OS too. So now it deleted the OS and I'm stuck between bootloader or recovery mode and I can't seem to find a way to copy the zip file to my internal storage. Tried adb using cmd but it's not recognized and I'll have to dowload Google's SDK. This in turn will take about 2 hours and I'd really like to fix the problem ASAP. Anything I could do please?
Thanks and much appreciated.
You could always go to recovery, Mount your sd card and copy the file that way. Or setup fast boot and flash the stock image, or even just push the rom file through adb. You have a few options.
Sent from my Nexus 4 using Tapatalk 4 Beta
eqjunkie829 said:
You could always go to recovery, Mount your sd card and copy the file that way. Or setup fast boot and flash the stock image, or even just push the rom file through adb. You have a few options.
Sent from my Nexus 4 using Tapatalk 4 Beta
Click to expand...
Click to collapse
Adb-toolkit is in the folder but cmd is not recognizing it unfortunately. And through TWRP I have no option to mount USB... usb-otg doesn't work...
Anyone please? I have no idea what to do at this point and I'm pretty much phone-less...

[Q] Can't mount internal storage TWRP

So, things have massively escalated today and my phone appears to be soft bricked. Joy. I'll run through what happened.
1. I encrypted my phone using the built in tool in Cyanogen Mod. After it rebooted, it was glitchy and I lost a load of apps, the phone really wasn't working well. Rebooted again, but no improvement.
2. I went into TWRP (2.8.x) to restore my old backup, which was on the SD card. After the initial wipe of the internal storage, the log showed
E: Can't mount storage
Click to expand...
Click to collapse
and the restore failed.
3. I reboot and phone goes straight into recovery mode as there is no OS installed (the recovery wipes the internal storage first). Internal Storage is now showing as '0 MB'. I cannot find a way of mounting this storage anymore. Have tried factory reset (doesn't work because file system isn't mounted), and rebooting a few times but no avail.
* There seem to be some options about flashing a .pit file using odin, but I do not have this file. My phone is the Note 4 SM-N910F Model. If I can do this through Odin then maybe this will resurrect the file structure and make this storage mountable?
* There may also be another option using ADB but I still don't know what commands to use.
Any help would really be appreciated as it seems there is some possibility of a fix. That being said my hopes are not that high...
I believe I may have fixed this. I would like to keep this up here in case in helps anyone in the future, I would imagine this is only useful for people who have encrypted their device. I'm not an Android expert so can't be responsible for any damage to devices or data loss etc.
It seems that the encryption must have gone wrong somewhat and this is likely to have impacted on the file system.
Although I couldn't wipe on the device, I was able in recovery to FORMAT data (not just wipe). Go to the wipe menu, then format. After this, reboot into recovery again and you should be able to mount again. It rebuilt the filesystem too.
This should be a quick fix that may help a few people with the issues with not being able to mount the file system. I hope this can help at least one person!
I managed to restore from my backup after and phone is now working. Thanks anyway!
Is there any way to set the default storage of play store apps to the sd card?

I accidentally deleted the internal storage...

I was in serious trouble.
When installing a new ROM in TWRP I accidentally deleted the internal storage !!
I can not install any ROM, because it always returns to Recovery, otherwise nothing happens.
What can I do???
You can't physicaly delete internal storage using recovery, you just did format. I don't know reason why you can't install ROM though. Maybe flash stock ROM first, using this tutorial.
tarnagy said:
I was in serious trouble.
When installing a new ROM in TWRP I accidentally deleted the internal storage !!
I can not install any ROM, because it always returns to Recovery, otherwise nothing happens.
What can I do???
Click to expand...
Click to collapse
use adb shell or run it in twrp terminal
adb shell
dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/fota
dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/misc
Thanks!!!
Hello,
Formatting internal storage is not a problem at all. Normally I do it everytime I install new ROM - format all data and cleaning all partitions (such a habit to ensure I do a clean install )
BUT...
you have to load your rom from extrnal USB stick so you need the OTG cable and make sure you have your rom and gapps (if needed) on that stick.
All you need then is to switch the phone off plug the cable with stick and launch the phone into TWRP - it will detect the USB automatically and you can access the directory. If the directory appears empty - go to mount menu and force mounting the OTG - sometimes you need to push the button twice I noticed.
Good Luck!

Categories

Resources