Was my adopted storage decrypt key lost despite full nandroid backup in TWRP? - General Questions and Answers

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!

Related

how 2 restore apps their *original* locations @ link2sd ext4, sdcard & internal?

i run Link2SD, using a 2nd partition on my sdcard that's been formatted with the ext4 fs.
i have some apps that i keep installed on my 'internal' sstorage, in addition to the many I've Link2sd "linked" to the /sdcard's ext4 partition.
i backup with TitaniumBackup.
if i set AutoLink in Link2SD app, then restore from a TitatniumBackup all restored user apps/(&/or libs/dalivk, depending on settings) are linked to /data/sdext2. that's expected, and fine if i want all my apps to end up 'moved' to sdcard.
if i do NOT set AutoLink, the TiBkup tries to restore all apps to internal sotrage.
how do I 'tell' the TitaniumBackup + Link2SD combination to move ONLY the apps previously mv'd to the sdcard back to it ... and to restore the rest to internal storage.
i.e., how do i preserve a backup-up app's storage location across a restore?
i can of course do it manually ... mv'ing each app back to internal storage, after the resotre process + AutoLink has mv'd it to sdcard. not ideal tho ...

[q] Rooted and Unlocked can't install Rom

I used the tutorial to root and unlock my S3 and I do have SU. I have been flashing ROMs on my Thuderbolt with never an issue. So I thought I knew what I was doing.
After creating a nadroid backup. I wiped my data and cache in CWM 6.0.1.0 I tried to install a Liquid S3 Rom but couldn't find. I then mounted my ext. SD and then I was able to locate it. I then installed the zip and it Soft Bricked my phone. So I followed the procedure to restore it and that worked.
I then tried to find my backup and nothing was there.
I then tried to create a new backup. It said it worked but then when I went right back to restore there was no backup. I then mounted my ext. sd and tired to create a back up. It ran the procedure and then said it couldn't find my card.
I am completely lost... I just want a new rom. Any help is greatly appreciated.
need help with loading Rom w/out bricking
strawnj said:
I used the tutorial to root and unlock my S3 and I do have SU. I have been flashing ROMs on my Thuderbolt with never an issue. So I thought I knew what I was doing.
After creating a nadroid backup. I wiped my data and cache in CWM 6.0.1.0 I tried to install a Liquid S3 Rom but couldn't find. I then mounted my ext. SD and then I was able to locate it. I then installed the zip and it Soft Bricked my phone. So I followed the procedure to restore it and that worked.
I then tried to find my backup and nothing was there.
I then tried to create a new backup. It said it worked but then when I went right back to restore there was no backup. I then mounted my ext. sd and tired to create a back up. It ran the procedure and then said it couldn't find my card.
I am completely lost... I just want a new rom. Any help is greatly appreciated.
Click to expand...
Click to collapse
Edit....How can I clarify my post to get some help?
So you oden back to stock then right?
Sent from my SCH-I535 using xda app-developers app
Definitely going to need to Odin to be safe.
What type of SD card is it? 32 or 64 GB? If it is and the default format for the card is ExFat, like most that size are, CWM and TWRP cannot read them. Your card needs to be formatted FAT32 or use the internal SD to flash like I do. ExFat is not supported by any recoveries but the stock.
I just copy backups to SD through a file manager or pc. I never bothered to reformat my card.
If not that. Then make sure to check your md5sum as a mismatch means it won't flash well. Usin GooManager is great as it checks by default for you when the download completes. And if it fails it deletes the failure so you don't use it by mistake
Sent from a GlaDos Baked Potato
Yes, I used Odin to get back to stock using PureMotive's guide.
Its a 32GB card. I did reformat the card using through the settings menu. Not sure if that will put it in FAT32 format?
I was just able to backup on my ext SD and it shows a 1970-02-27 date. If I can find my backup does that mean CWM is reading the ext SD now?
I am scared to try and flash again because I haven't been able to find my restore. Last time I backed up to my internal SD and then after going through the PureMotive guide the backup was no longer there. What steps should I take?
Thanks again!
I just did a nandroid backup to the internal and this is what is says:
Card Space Free: 10847MB
Backing up boot image...
Backing up recovery image...
Backing up system...
Freeing up space.
Backing up data...
No /sdcard/.android_secure found. Skipping backup of applications on external storage.
Backing up cache...
No sd-ext found. Skipping backup of sd-ext
Generating md5 sum...
Backup complete!
strawnj said:
I just did a nandroid backup to the internal and this is what is says:
Card Space Free: 10847MB
Backing up boot image...
Backing up recovery image...
Backing up system...
Freeing up space.
Backing up data...
No /sdcard/.android_secure found. Skipping backup of applications on external storage.
Backing up cache...
No sd-ext found. Skipping backup of sd-ext
Generating md5 sum...
Backup complete!
Click to expand...
Click to collapse
Need to format card to fat32 or change CWM to point backup to internal card.
strawnj said:
I just did a nandroid backup to the internal and this is what is says:
Card Space Free: 10847MB
Backing up boot image...
Backing up recovery image...
Backing up system...
Freeing up space.
Backing up data...
No /sdcard/.android_secure found. Skipping backup of applications on external storage.
Backing up cache...
No sd-ext found. Skipping backup of sd-ext
Generating md5 sum...
Backup complete!
Click to expand...
Click to collapse
That's normal. The no sd-ext happens on this device for some reason, but your backup was made correctly and us on your internal. There is a forum on how to get them on your external here somewhere. Rom manager will not allow it to happen. I've just been using internal and making a copy on my cpu just in case.
Sent from my VZW GS3 running Synergy/LeanKernel/Dark Horse Rises
prdog1 said:
Need to format card to fat32 or change CWM to point backup to internal card.
Click to expand...
Click to collapse
If you mount the ext-card I am backup there. Otherwise the default location is the internal card. Seems to be working on both.
First off - You have to format your card to FAT32, you cannot do this on the phone using the settings menu. Use these directions to format your card: How to format card to FAT32
If you would like to know why you are having issues with the SD card backups read this: CWM does not support the exFAT filesystem
Also, in CWM you can specify where to save your backup: Options are internal or ext. SD card.
ricky babalu said:
First off - You have to format your card to FAT32, you cannot do this on the phone using the settings menu. Use these directions to format your card: How to format card to FAT32
If you would like to know why you are having issues with the SD card backups read this: CWM does not support the exFAT filesystem
Also, in CWM you can specify where to save your backup: Options are internal or ext. SD card.
Click to expand...
Click to collapse
this! everytime you odin back to stock via puremotive's guide or mine it will wipe the internal sd...so yea thats why your backups are lost. as mentioned above, format your sd to fat 32, then when you navigate to backup/restore in cwm, you will see the option "backup to external sd" . i will notate this in my guide when i get chance!

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) ?

Contents of internal storage (sdcard) missing after wipe...

My problem as it stands:
TWRP 2.8.6.0 is installed
The Pure XL will boot, load all the way into android, and load all the built in apps.
I cannot install apps, and the google play store sits in a downloading loop.
The internal storage is empty save for a twrp folder. I can still read and write to the internal storage via twrp
I believe what I have done is erase all the contents of the internal storage.
Factory resets with the 3-15-2016 OTA update does not restore these folders/files.
Biggest issue: THIS IS MY WIFE'S PHONE AND SHE WILL KILL ME IF I CAN'T FIX IT.
Was wondering if one you fine fellow/ladies would upload a copy on the internal storage folders and files from a clean install of the 3-15-2016 OTA update so that I can attempt to copy them manually into my internal storage.
I would also take any help in restoring these files myself if a straight copy of the files isn't an option.
Any help will be appreciated!

Full backup of dying phone using TWRP, backup should be accessible without the phone

Hello,
I have a Redmi Note 5 with TWRP and AOSP Extended, the charging circuits of which have died, so the phone cannot be charged or even take power from a charger, otherwise entirely functional. I now have my "last charge", the phone is charged to 100% and turned off, but as soon as the battery reaches 0% it is dead, probably forever, as it is not possible to charge it.
Now, I would like to somehow make a backup of the entire phone, in case there is some data that I might find out I need in the future. Is it possible to create a backup that I will be able to fully access after the phone dies? Is it possible to make such an image of the phone, that I could import it into a virtual machine and run on my computer?
Thank you very much.
Using TWRP file manager you can backup your pictures, video, documents etc. To your SD card,, otg or pc. But you can't backup you /data. Data and internal storage are different. Data doesn't include pictures or videos. It just includes your apps and apps data. To backup this /data you have to use migrate or titanium backup. A /data backup of a perticular device from TWRP, might not boot on another device. So use migrate. You can select the apps you want to backup and you can put that in your SD card or drive. That apps can easily be flashed on other phones. TWRP only backs up /data NOT internal storage
Android emulators run on x86/x86-64 CPU based machines whereas Android OS - all it installed apps included - runs on 32-bit/64-bit ARM-CPU based devices. Hence it doesn't make any sense trying to clone an existing Android device in order to run this clone in an Android emulator. It simply doesn't work.
Tab E said:
Using TWRP file manager you can backup your pictures, video, documents etc. To your SD card,, otg or pc. But you can't backup you /data. Data and internal storage are different. Data doesn't include pictures or videos. It just includes your apps and apps data. To backup this /data you have to use migrate or titanium backup. A /data backup of a perticular device from TWRP, might not boot on another device. So use migrate. You can select the apps you want to backup and you can put that in your SD card or drive. That apps can easily be flashed on other phones. TWRP only backs up /data NOT internal storage
Click to expand...
Click to collapse
You are wrong. The /data partition - also called /userdata - is located on device's internal storage memory. To keep you updated: The /data partition has subfolder /data/media where user's data like pictures, musics, videos, etc.pp are stored.
The /data partition what also holds all apps and their data ( obb excluded ) installed by user in subfolder /data/apps always - using the right tool - can completely get backed up.
Tab E said:
Using TWRP file manager you can backup your pictures, video, documents etc. To your SD card,, otg or pc. But you can't backup you /data. Data and internet storage are different. Data doesn't include pictures or videos. It just includes your apps and apps
Tab E said:
Using TWRP file manager you can backup your pictures, video, documents etc. To your SD card,, otg or pc. But you can't backup you /data. Data and internet storage are different. Data doesn't include pictures or videos. It just includes your apps and apps data. To backup this /data you have to use migrate or titanium backup. A /data backup of a perticular device from TWRP, might not boot on another device. So use migrate. You can select the apps you want to backup and you can put that in your SD card or drive. That apps can easily be flashed on other phones
Click to expand...
Click to collapse
data. To backup this /data you have to use migrate or titanium backup. A /data backupof a perticular from TWRP, might not boot on another device. So use migrate. You can select the apps you want to backup and you can put that in your SD card or drive. That apps can easily be flashed on other phones
Click to expand...
Click to collapse
jwoegerbauer said:
You are wrong. The /data partition - also called /userdata - is located on device's internal storage menory. The /data partition has subfolder /data/media where user's data like pictures, musics, videos, etc.pp are stored. The /data partition what also holds all apps and their data ( obb excluded ) installed by user always - using the right tool - can completely get backed up.
Click to expand...
Click to collapse
Thanks for informing
Thank you everyone for clarifying, I ended up just making a backup of the internal storage manually and then all the other partitions using TWRP backup.

Categories

Resources