Disappearing files and space on Lollipop - found them. - Nexus 5 General

I just got done performing my first TWRP backup after upgrading my Nexus 5 to Lollipop LRX21O via OTA. While the phone was still in recovery, its internal storage appeared on my computer, so I copied the backup to my computer and copied back several directories that I cleared from the phone to make room for the backup. After rebooting the phone, I found no sign of the directories I copied back, or of the backup, but the phone's internal storage was nearly full. No sign of the 5GB of free space that was there before I tried to copy things back to the phone.
I booted back into recovery. The recopied directories were there. I deleted them all and rebooted into recovery, and my free space was back. Rebooted Android and the free space was there too. I was able to copy my 5GB of files back to the phone, where everything is now fine.
Apparently some incompatibility between Lollipop and TWRP makes files written by TWRP inaccessible to Android. My phone is not encrypted, so that's not the problem. This was also never a problem with KitKat - I did a nand backup just before the L upgrade and everything was visible everywhere. If you've done TWRP backups on a Lollipop N5 and found them missing after rebooting, or copied files to your phone in recovery mode and found them missing, you're not crazy. Boot back to your recovery partition and look for your files again.

Since 4.2, that's normal for backups taken in recovery, ClockworkMod Recovery is the same.
You can get to the backups in Android via ADB, they're in mnt/shell/emulated

Odd, I saw no change between 4.1 and 4.2, and I've had no trouble copying files to and from the phone using either Android or recovery (TWRP or CWM) till now. I'll compare the storage between the two and see if I've missed something.

Related

[Q] Clockwork recovery sees different files than are actually on SD

Hi folks,
I am having a weird problem on my A855. When I boot into CWM recovery, I cant see the contents of my SD card. I see something totally different, something that looks like files from an old SD card. I've formatted the SD card and copied only the ZIPs that i want to use to update. When I boot to clockwork recovery I dont see them but some phantom files!
Strangely, if use the partitions menu and mount USB while in recovery, I see the correct files. Or, also while in recovery, if I adb shell, mount sdcard, list files, I also see what's actually on there.
I've already wiped boot, system, data, cache, reflashed CWM, but it still sees those old files. I've never seen this before and I've updated 6 or so different phones to Cyanogenmod.
I was able to adb push update.zip to /data/ and recovery --update_package=DATA:ROM.zip to get CM on the phone but it's a less than optimal solution.
On a related note, on my Sensation, when trying to update via ROM Manager I get a "file not found" error upon booting to recovery but at least there I can see the SD files and manually update.
Any info would be appreciated.

Files in storage disappears after a rom install. 21GB used and I can't find it.

I decided to flash the Android Revolution 4.2.2 ROM after waiting diligently for an OTA. I made nandroid backup, wiped my data and flashed the ROM as usual. As expected all app and app data were gone, but all the files, music and picture were as well. The twist is that they are still there somewhere within the file system. In my storage info it shows that I have 20GB of unknown files on my device but they are no where to be found. I checked:
/sdcard/
/mnt/sdcard/
/storage/emulated/0/
/storage/emulated/legacy/
/storage/sdcard0/
and they all showed the same default clean install files(weird). Is there a way to mount some partition I don't know about to recover my files? Is this a problem with HTC's weird sdcard emulation? Is there even a way to completely delete everything on internal storage?
tevinwade said:
I decided to flash the Android Revolution 4.2.2 ROM after waiting diligently for an OTA. I made nandroid backup, wiped my data and flashed the ROM as usual. As expected all app and app data were gone, but all the files, music and picture were as well. The twist is that they are still there somewhere within the file system. In my storage info it shows that I have 20GB of unknown files on my device but they are no where to be found. I checked:
/sdcard/
/mnt/sdcard/
/storage/emulated/0/
/storage/emulated/legacy/
/storage/sdcard0/
and they all showed the same default clean install files(weird). Is there a way to mount some partition I don't know about to recover my files? Is this a problem with HTC's weird sdcard emulation? Is there even a way to completely delete everything on internal storage?
Click to expand...
Click to collapse
As stated on mikes page it was highly recommended to format your sd before installation of 4.2.2... Because android 4.2.2 handles files differently from 4.1. Not HTC s doing I believe(correct if wrong)
tevinwade said:
I decided to flash the Android Revolution 4.2.2 ROM after waiting diligently for an OTA. I made nandroid backup, wiped my data and flashed the ROM as usual. As expected all app and app data were gone, but all the files, music and picture were as well. The twist is that they are still there somewhere within the file system. In my storage info it shows that I have 20GB of unknown files on my device but they are no where to be found. I checked:
/sdcard/
/mnt/sdcard/
/storage/emulated/0/
/storage/emulated/legacy/
/storage/sdcard0/
and they all showed the same default clean install files(weird). Is there a way to mount some partition I don't know about to recover my files? Is this a problem with HTC's weird sdcard emulation? Is there even a way to completely delete everything on internal storage?
Click to expand...
Click to collapse
Try data/media/
If it's not there then download DiskUsage and see if it helps you find it. https://play.google.com/store/apps/details?id=com.google.android.diskusage
Sent from my HTC One using xda premium
BEFORE RUNNING THE ADB METHOD IN THIS WEBSITE, MAKE SURE YOU ARE IN RECOVERY AND MAKE SURE THAT ADB IS WORKING. DO NOT RUN THESE COMMANDS MORE THAN ONCE OR YOU WILL WIPE YOUR ENTIRE SDCARD. BACK UP ALL YOUR DATA AND MAKE SURE THAT YOU HAVE ALL YOUR CRITICAL DATA OFF THE PHONE OR YOU WILL REGRET IT WHEN YOU WIPE OUT PRECIOUS MEMORIES AND DATA.
http://trickdroid.org/trickdroid-6-0-android-4-2-2-and-your-sd-card/
Use the ADB method. it will move everything.
I case anyone has the same problem. It was in data/media as redbull123 stated. It appears as if Astro File Manager doesn't display the files in the folder while ES File Explorer does.

[Q] Formatted everything, don't know where to start

I had some huge problem with my Nexus One and I wanted to start over completely, so I stupidly went to CWM recovery and hit format boot, cache, data, sdcard, system, and sd-ext. For some reason I didn't realize this would make my phone unusable and make it have no OS. So now when I turn on the phone it goes straight to the fastboot menu, so I can only access the fastboot, bootloader, and CWM recovery.
I've tried formatting my microSD card and putting a stock PASSIMG.zip file (located at http://forum.xda-developers.com/showthread.php?t=1312540) on my microSD card but the bootloader doesn't detect the PASSIMG.zip file.
Can anyone give any guidance on what I can do now?
Thanks
FIXED. This seems to happen to me so often-- things suddenly working after I already make a thread about my problems. But I discovered that the microSD card was corrupt so that's why it never actually had the PASSIMG.zip file on it. Everything is back to normal, and I restored factory settings :good:

Internal sdcard messed up.

Hi.
I have an issue with my internal sdcard. I have a big folder called "0" that has about 4GB of data in it. I think it is from a previous OS I had installed because there are folders in there for apps that are not on my phone atm. I cannot delete it with Windows 7 so I tried to wipe all my partitions in TWRP and when it got to "internal storage" my phone reset and booted into android.
How can I fix this?
I fixed it. I used Liveroy's guide to nuke my phone back to 4.4.4. using fastboot.

Soft bricked phone after trying to restore backup after LineageOS flash

I flashed the lineageOS 17 roms that is available and it worked but then i realized that gapps was not complete so i went into TWRP to restore my old Backup of ColorOS 6.1 (A.08 version), also it had magisk installed, but it then would show the first boot logo then restart and go into the recovery. I then tried formating everything except internal storage and also factory wipe and now my backup is gone and everything else on my phone. I can still boot into recovery and such but now it wont even ask me for the decryption password. File manager in TWRP shows 3 folders in the internal storage (in sdcard 0, obb and TWRP).
Any help? i dont wont to break things even more.
Edit: I just noticed that in the 0 folder in sdcard there is 65 gb of folders and files. Im assuming that are my old files but they are encrypted. Any way to undo that?
I guess you have to install a rom and set everything up from scratch. You lost all your files when you formated data, including backups, etc.
If you want to update or change your recovery, now it's the time - since there's no rom or files to lost.
johnnyjoe said:
I guess you have to install a rom and set everything up from scratch. You lost all your files when you formated data, including backups, etc.
If you want to update or change your recovery, now it's the time - since there's no rom or files to lost.
Click to expand...
Click to collapse
I didnt format the internal storage only data and i edited the post saying that i think i found all the data but still encrypted. Im guessing TWRP wont automatically decrypt it.
For anyone with a similar problem. I reinstalled LineageOS and it decrypted all the files.

Categories

Resources