Some TWRP backups folder not showing on symlinks - Nexus 5 Q&A, Help & Troubleshooting

Hello All
I'm aware that the virtual SDCard is on data/media/0 with assorted symlinks and mountpoints
Now, I see file changes on /data/media/0 being shown also on /sdcard and on /storage/emulated/0 etc as expected. For example, Titanium backups or Downloads,
Except for a TWRP backup I did earlier today. This is only shown in /data/media/0
An older TWRP backup inb the same parent folder is present on all mount points
I flashed TWRP this morning after a full wipe and flash of Lollipop.
The 2 TWRP backups are "before" and "after" upgrade backups.
Why is the later backup only visible on /data/media/0?

related to this
http://forum.xda-developers.com/google-nexus-5/general/sdcard-problems-upgrading-android-t2938749
Read posts at the end too

Related

Clockwork Backup & /SDCARD/Android

Hi, im using CWM for backup and restore and my /sdcard/android folder is HUGE because of com.google.music cache. I cant move the cache directory and its making my backups large and slow. Any way to exclude that directory from the CWM back up (like .nomedia, maybe a .nobackup?) or could i move the cache and replace the directory with a symlink or something?
First, how many backups do you have? I just put the backup/restore CWM up a few days ago. Second, the latest version of CWM should stop backing up /sdcard/Android (or doing anything with it) if I remember correctly as it was just removed from the stuff that gets backed up recently.

Can't perform /data backup with TWRP [Resolved]

Hi,
I can't seem to perform a nandroid backup. Every time it begins to backup the data partition, I am greeted with a "Backup Failed" message. This is with TWRP 2.8.1.0 and 2.8.2.0. I believe I have a couple corrupted directories, but I can't seem to delete them. Every time I attempt to rm -rf directory, I get an I/O error. I've attached the recovery log to this post. I've wiped the /data partition many times before but the directories referenced in the log always seem to remain.
Edit: Resolved. Formatting your internal storage fixes it.

[Completed] Restoring TWRP Nandroid .win files

My Mum's managed to mess up her tablet (seems to have reset it but not factory reset, as it's still encrypted, password protected, etc, just all her apps and even Apex Launcher have vanished) and the only recent backup I can find is a TWRP backup made with Online Nandroid Backup.
TWRP doesn't seem to recognise the files however, as it doesn't list any backups. I looked at the log and see that when pointed to the internal storage (which it can't mount as it's encrypted), it looks in /data/media/TWRP/ and I've recreated that structure on the microSD (where the backups are), giving me /data/media/TWRP/BACKUPS/0000000000000000/2015-04-05--07-14-50/
In that folder I have:
boot.emmc.win
cache.ext4.win
data.ext4.win
recovery.emmc.win
system.ext4.win
and .md5 files for each of those.
The .win files I can open with 7-zip, to show the files without that extension (e.g. data.ext4).
If anyone could help me restore this backup I (and more importantly my Mum) would be very grateful!
I tried installing Nandroid Manager and ES File Explorer and both failed, so something's clearly messed up. SU 2.46 is installed and I checked root with Root Checker and updated Busybox.
OK, I found a good tip to make a new backup (I just ticked boot to make it quick) and check where TWRP puts it. It turned out to be /micro_sd/TWRP/BACKUPS/Lenovo_A5500-HV/
So I moved my existing backup folder there, formatted /data to remove the encryption and then I was able to restore the backup. Now the tablet's stuck in a boot loop though and I can't even boot into recovery, so I'll have to start from scratch and then try and restore just /system and /data.

TWRP lost my files

I have a XT1033
I've done a nandroid backup, complete with data.
I use AppLock. It has a Photo Vault feature, where you send your pictures you want to hide. I've put many photos there.
I've installed a custom rom over stock 4.4.4
So I did the Nandroid and then format. After that, installed the new rom.
Then I recovery AppLock with TitaniumBackup
Photos gone.
Then I recover that Nandroid backup, absolutely certain that there's no way my files would be gone with a Nandroid backup.
I open AppLock Photo Vault and.... nothing there.
I go to ES file explorar and try to find the files in the .dom0o7b1ile Applock's folder located in sdcard/0/
The directories are all there, but no pictures.
So please someone give some light on what the hell is going on here?? How could the nandroid miss the .XXXX directory??
thanks!
TWRP's data backup excludes the emulated sdcard. TWRP's "factory reset" also excludes the emulated sdcard. But if you format, it will delete all your data, so you should have copied all important files from "internal storage" (aka emulated sdcard) to your computer before.
_that said:
TWRP's data backup excludes the emulated sdcard. TWRP's "factory reset" also excludes the emulated sdcard. But if you format, it will delete all your data, so you should have copied all important files from "internal storage" (aka emulated sdcard) to your computer before.
Click to expand...
Click to collapse
If I get it right, /0 = emulated sdcard? What's the usage of this emulated sdcard? I don't understand how it doesn't backup that since all user files go there? You do a Nandroid backup to backup everything...
fscussel said:
If I get it right, /0 = emulated sdcard?
Click to expand...
Click to collapse
Yes, /data/media or /data/media/0.
fscussel said:
What's the usage of this emulated sdcard?
Click to expand...
Click to collapse
User-managed storage space with no specific per-app permissions.
fscussel said:
I don't understand how it doesn't backup that since all user files go there?
Click to expand...
Click to collapse
On some devices that's the only backup target (with no physical microSD card and no OTG storage), and it often contains a lot of data that you don't want to back up regularly.
fscussel said:
You do a Nandroid backup to backup everything...
Click to expand...
Click to collapse
...that is not easily copied to the PC by other means (e.g. MTP).
_that said:
Yes, /data/media or /data/media/0.
User-managed storage space with no specific per-app permissions.
On some devices that's the only backup target (with no physical microSD card and no OTG storage), and it often contains a lot of data that you don't want to back up regularly.
...that is not easily copied to the PC by other means (e.g. MTP).
Click to expand...
Click to collapse
Man I don't understand this.
/0, is it a shortcut to some folder? Which folder?
How to explain that the directories in the AppLock folder (which name starts with a DOT I don't know the meaning) are all there, only the jpg files are missing? it creates a folder with coded name ex 8943228 for each picture it hides. All foders, one for each picture, are there, only the jpg files missing inside.
Also, since the /0 folder seems to be a shortcut, symbolic link, what-so-ever, is it possible that the files still exists?
So did you format /data or not?
_that said:
So did you format /data or not?
Click to expand...
Click to collapse
I did only after the full Nandroid backup.
Then maybe your data hiding software recreated the directories based on information in app-private data that was restored with your backup. As I said, the emulated sdcard (shared storage) is not backed up as part of /data since whoever wrote that code assumed that users would back up that data by simply copying it elsewhere.
_that said:
Then maybe your data hiding software recreated the directories based on information in app-private data that was restored with your backup. As I said, the emulated sdcard (shared storage) is not backed up as part of /data since whoever wrote that code assumed that users would back up that data by simply copying it elsewhere.
Click to expand...
Click to collapse
But the strange thing is:
When I recover the backup that directory exists even without booting for the first time after restore... in TWRP file manager I go and the directories are there... but not the files... how can this be possible?
Also, since the emulated sdcard refer to a folder, which is that folder? is it a sym link?
???
fscussel said:
When I recover the backup that directory exists even without booting for the first time after restore... in TWRP file manager I go and the directories are there... but not the files... how can this be possible?
Click to expand...
Click to collapse
Not possible if you really formatted /data.
fscussel said:
Also, since the emulated sdcard refer to a folder, which is that folder? is it a sym link?
Click to expand...
Click to collapse
In Android, /sdcard is emulated by the sdcard daemon as a fuse filesystem using /data/media or /data/media/0 as backing storage. In TWRP it's just a bind mount.
_that said:
Not possible if you really formatted /data.
In Android, /sdcard is emulated by the sdcard daemon as a fuse filesystem using /data/media or /data/media/0 as backing storage. In TWRP it's just a bind mount.
Click to expand...
Click to collapse
But how can the directories exist after twrp recovery and not the files (if I really did format /data because I don't really remember) ?

Was my adopted storage decrypt key lost despite full nandroid backup in TWRP?

I have my phone encrypted and my sd card is used as adopted storage. I was about to change my /cache and /data partitions from ext4 to f2fs. Now I'm unable to decrypt my sd card. I use twrp 3.0.2-0.
What I did was:
Create a full backup of all available partitions on adopted storage. (using TWRP)
Copy the backup files to my PC over MTP.
Change /cache and /data partitions' file system from ext4 to f2fs.
Restore the backup of /cache and /data (first forgetting about the rm -rf option and thus having to repeat the previous step for /cache).
Boot up and notice I can't access my adopted storage any more.
It seems that my backup of /data partition does not include the /data/misc/vold/expand_$PARTGUID.key file. The /vold folder seems to not be included in the backup, while the other folders in /data/misc are. Should I have known this?
My backup also contains partition named external_sd. It has a /misc/vold folder but it only has an empty "bench" folder in it.
It appears that I am in the same boat as well, despite having a different phone and a slightly older version of TWRP. Despite restoring from the backup, it appears that the key file isn't included. I have tried restoring the external_sd backup, but that ultimately wipes my SD card and errors out due to the file being on said SD card.
My best guess from that is, it is trying to go ahead and restore the partition layout on the card itself. As I have a Moto E 2014, I am unable to test whether or not the backup will restore the key due to extremely limited storage.
So this time I was wiser and I saved the keyfile separately. When restoring the backup I placed it back in the same folder and the sd seemed to mount happily. Later I noticed that I couldn't see my data even though my sd seemed like it was filled with my data. Then I thought that it could be related to the fact that internal storage was chosen as the primary storage. I went to move data to sd in settings and now my sd card seems to be almost empty.
E: I even restored from the sd card after placing the keyfile into the correct folder with twrp!

Categories

Resources