[Q] TWRP backup just erased everything in my /sdcard folder - Nexus 4 Q&A, Help & Troubleshooting

I'm running stock/unrooted with my bootloader unlocked.
I wanted to try out the PA beta with the PIE navigation so I used adb fastboot to boot into TWRP 2.3.3.3 (not flashed, booted the image directly. I have no custom recovery flashed) to make a nandroid backup. This is the second one I've made with this method but this one went tits up. It reported success and I rebooted. All of my apps are in place and everything seems to be in order other than that my /sdcard folder was completely wiped. All my of pictures and everything. The only folders it contains are the ones the OS and apps are creating as they need them. I also have the /TWRP folder but it only contains .twrps and .version.
I get the same results from ES File Explorer. I went back in TWRP to use the built-in root file explorer to see if it was a permissions issue but it is not. The recovery file explorer shows the same results. The only folders under /sdcard are newly created by Android or by my apps.
Anyone have any idea what happened here and how I can prevent it from happening again?
EDIT: Oddly enough I just noticed if I go back into the TWRP backup screen it's reporting about 2GB less free space (approx backup size) than it did when I made the backup that apparently broke everything. I can't seem to find any backup actually stored though. The Restore option doesn't list any backups available to restore.
EDIT2: I found the backup. It is in /data/media/TWRP. /data/media/0 has the contents of the newly created /sdcard folder but none of my old data is anywhere to be found. Did TWRP writing this folder break my /sdcard folder somehow?

Related

RESOLVED - [Q] Where are the CWM Touch recovery files stored?

I have rooted and installed CWM Touch 6.x and have done a backup. I have also successfully restored from that backup so I know it is working, however........
I want to store the recovery data files Off-Device but when I review the contents of the "sdcard" I can see the boot and recovery .img files of a decent size but system, cache and data are not there, just tiny files with an extension of DUP and each with a filesize of little over 500k so definately not the actual data files.
Where are these actual files stored? I have root access and also checked mnt/sdcard0 but again I cant see them....
HELP
RESOLVED, I have seen the blob folder and read up on how CWM touch does differential backups now.

[Q] Titanium Backup doesn't recognise backup

Was on rooted 4.3 with PA3.99, backed up all apps and data using Titanium. Not sure which folder, but when I copied the /sdcard folder to my computer the backup folder was in /storage/emulated/legacy and it was full of .properties files. Now I'm rooted (using SuperSU) on 4.4.2 (stock ROM) and have put the folder in /sdcard but Titanium won't recognise it. I've tried changing the backup location to /storage/emulated/legacy, 'Force system BusyBox', fixing permissions in TWRP, and lots of other stuff I've found online that fixed it for others, but nothing works. If I create a new backup of an app, it recognises that fine, but if I change the name of the 4.3 backup file to the new one, it shows up as a valid file but restoring doesn't seem to do anything.

[Q] /Storage Folder Empty?

Hi,
I've recently rooted my I9505 using Philz Touch recovery method, and I adjusted the platform.xml file to allow Titanium Backup to write direct to external SD. After rebooting, I get several "Unfortunately, xxx has stopped" for several apps. When I connect the phone via MTP the Card and Phone storage spaces both show remaining space, but are both empty, and if I open ES File Explorer and look in the /storage folder it's completely empty, which I assume is causing the problems with the apps as they can't find their stored files.
I've tried putting a backup copy of platform.xml back in /etc/permissions while in recovery, checked permissions on that file are set to 644, and even reflashed the same stock ROM back on the phone using Odin, but the errors continue.
Is there a way I can fix this without doing a wipe data/factory reset? I can get adb access as root in recovery if needed.
Thanks in advance!
B
Done a bit more testing this evening and if I do a factory reset and reflash to stock then everything works as normal. I then reflashed Philz Touch and did a custom nandroid restore of /data only, and the problem returned (the nandroid backup was taken after the issue started).
So the issue points to something in the /data rather than something in /system or elsewhere, if that helps anyone to diagnose?

TWRP write protect issue

I flashed my i9500 with TWRP 2.8.1.0 using Odin and it wrote an undeletable backup onto my internal memory. To get rid of that, I backed up the "BACKUPS" folder and formatted the internal storage only for it now to cause the entire internal storage to be write protected to my android apps. I can copy and delete stuff to it through PC but my apps wont work, those that require to download pics and videos or make backups to the internal storage, web browsers can't download anything to the internal storage yet I now have over 7GB free space.
It's clear TWRP is write protecting the internal storage selectively (first it wrote protected the storage to both the phone and pc, now to the phone only). How should I sort this problem out?
I have also just tried using root explorer to change permissions to the internal storage but it doesn't work. It's failing. Titanium backup shows its own backup folder is unwrittable. It cannot be changed by Root explorer
I just tried fixing permissions in twrp but to no avail. I uninstalled Clean master only to try and re-install it and it won't install now, it gives a failed install error. Kingsoft office continually shows "stopped working" and fails to work completely. All this started with flashing Twrp. I can't view pics in whats app or send them, neither can I edit documents. Any help to rid of this issue will be gladly appreciated.
People please please avoid twrp at all costs!, i have now lost all my data and apps are all failing. I deerly deerly regret why i ever flashed twrp recover in the first place!
I seem to have solved the issue after a very grueling experience.
TWRP has its flaws and it is quite notable here. Here is how I have gotten around the issue:-
Immediately after I installed TWRP I made a system backup of the entire phone as of its state at the time.
I copied it to my pc and tried to delete the backup that TWRP had made. It was completely write protected, nothing could delete it.
I then decided to use TWRP to format my internal storage after backing it up. Then restore the data back which I did successfully.
Little did I know what had happened. TWRP had assigned the internal storage attributes that even Root explorer (paid) could not undo.
The internal storage had become unusable to the system and user apps.
Slowly my apps began to collapse one after the other failing. From frustration I tried to salvage the data the apps held at the time so that I can factory reset and restore but Titanium backup could not access its own folder. That's where all the frustration begun.
I later flashed CWM and accidentally formatted all my data instead of the data partition.. this was now hell.
One last try which was about 5 hours later I returned TWRP recovery, wiped the data partition and got hold of my prior backup with TWRP, restored it and am 9 hrs back from total loss of data. So the internal storage now has its initial attributes prior to the predicament.
Am actually back exactly to where all this mayhem began when I decided to delete the "BACKUPS" folder and there was absolutely nothing else that was wrong, which now I will attempt to delete hoping that I won't experience deja vu.
This is a problem worth reporting to TWRP developers and I don't know how
TWRP recovery Fix Permissions
I couldn't delete back ups from the internal storage at all. I couldn't even copy saved back ups from my pc to my Note 3. I went into TWRP recovery, under Advanced select Fix Permissions
Now I can delete folders in the TWRP main folder with a ES file explorer or on my PC via usb cable.
Never had any problems like this with TWRP on my S4+. For me the backups taken and its folders can be handled just fine, copied, deleted, moved etc. Must be som compatibility issue with your setup.

How do I restore a backuped (to PC) Nandroid after formatting my Nexus?

I had two, fairly recent, Nandroid backups on my phone that I copied to my computer.. Over the weekend I "jacked up" my phone and ended up having to format it, which means I lost everything... I wasn't worried because I had those 2 Nandroids, so I did a reset and then copied those to my phone and tried to restore them, but they didn't show up?? Here's what I did: I opened up the TWRP folder on my computer and copied the folder (and all it's contents) over to the TWRP folder already established on my phone.
I then flashed a ROM and tried restoring just the data in TWRP, but it didn't see the backups.... I let the phone reboot, downloaded Nandroid Manager and it found the backups with no problem, so I rebooted and tried to restore just the data again, TWRP still didn't find any backups.
How can I make this work for future reference, because I know I'll jack it up again.
Just to be sure you put the backup in the right place: TWRP folder which contains>BACKUPS folder which contains> Folder with random numbers and letters which contains the actual backup folder with the date stamp which contains the backup files.
I don't know if all that is necessary but maybe TWRP does look in that order. In the past when I've done that kind of restore I always save the folder with the random numbers and letters to my PC and then after wiping my phone and reinstalling TWRP I create a new BACKUPS folder in TWRP to put the folder with the random numbers and letters in. My restores done that way always worked for me.

Categories

Resources