[Completed] Restoring TWRP Nandroid .win files - XDA Assist

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.

Related

[Q] a few Noob questions regarding TWRP NANDroid backups

Hello, I have a few questions regarding the TWRP recovery particularly the NANDroid backups, please bear with me as I am new to this. I have made a few backups using twrp but I want to put them onto my pc in order to save space however when I plug my phone into my pc I don’t see the TWRP folder unless I boot into recovery and then plug it in. Is this how it is supposed to be?
I wanted to test out restoring a backup that I had saved onto my pc onto my device. To test this out I created a backup through TWRP booted into recovery plugged in my device into my computer copied the backup file located in the TWRP folder and then deleted it from my device. Next I wanted to copy the backup that I just put on my pc back onto my phone and then eventually restore it through TWRP. However I only get as far as copying it from my device onto my pc. When I try to copy it back into the TWRP folder on my device I get an error saying “cannot copy data.ext4.win000 its file size is larger than the device limit” The backup is 4.83gb and I have 10.7gb free. Does anyone know why this is happening?
Last question, seeing as a NanDroid backup is basically an image of your whole device, let’s say I am selling my device and I don’t want the buyer to have any way of accessing any of my data. Would the deletion of my backups, factory reset and an advanced wipe where I select all the partitions to be wiped be enough?
Thank you in advance for your help!
1 - no. You're on lollipop i presume. Read my /sdcard thread in general
2 - sounds like its being mounted as FAT with 4GB file limit. Try web push method
3 - not really. You'd be best overwriting the data partition with files first.

[Q] Available Storage, hidden files?

I had created a nandroid backup on CWM before flashing a rom which failed, causing me to adb sideload back to my old ROM. But before doing so I attempted to restore the backup (which also failed). But after booting in, i noticed that I had multiple 0 folders in my internal storage. Now the available storage on my device does not add up. Also when I open the device on my computer, there is a 8gb zip file that always appears under the "0" folder. Even if I delete it, it returns after rebooting and it cannot be opened or copied. I believe the backup is hidden within this folder but I am not sure how to delete it. Does anyone have any ideas on how I can fix this issue?
Asaad123 said:
I had created a nandroid backup on CWM before flashing a rom which failed, causing me to adb sideload back to my old ROM. But before doing so I attempted to restore the backup (which also failed). But after booting in, i noticed that I had multiple 0 folders in my internal storage. Now the available storage on my device does not add up. Also when I open the device on my computer, there is a 8gb zip file that always appears under the "0" folder. Even if I delete it, it returns after rebooting and it cannot be opened or copied. I believe the backup is hidden within this folder but I am not sure how to delete it. Does anyone have any ideas on how I can fix this issue?
Click to expand...
Click to collapse
First off, flash TWRP instead of this old CWM. Then try to delete your file of 8Gb (which is VERY high for a nandroid...).

cwm backup is empty

hello guys,
i have a problem with restoring my nandroid backup.
so the digitzer of my s3 mini is broken and does not work partially. e.g. i cant enter my pin to unlock screen lock and i cant use twrp. so i used cwm (i guess it was 6.0.2.8.) to backup everything to my ext sd card. i dont know exactly if the backup was successfull but i cant remember any error messages and my backup is about 3,5gb big and there r following files:
boot.img
cache.ext4.tar
cache.ext4.tar.a
data.ext4.tar
data.ext4.tar.a
data.ext4.tar.b
data.ext4.tar.c
data.ext4.tar.d
nandroid.md5
recovery.img
system.ext4.tar
system.ext4.tar.a
now i wanted to restore only data on a new device: moto g peregrine via cwm. i installed cm12.1 on my moto, the backup comes from cm12.1 too.
error: md5 checksum mismatch -> i cutted nandroid.md5 and created an empty file named nandroid.md5 and copied it into the backup folder. then cwm restored. well... it says it was restored. but when i start android no data is restored.
so i tried to restore it via tatanium backup. this app finds my backup, but only system apps r listed. no user apps. (i just tried it again, no apps at all)
then i tried to open/browse the tar archives with a shell extension in windows. they are empty.
then i wanted to extract them with appextractor but it doesnt find a backup to extract.
then i tried nandroid manager. it finds the backup, it says, its 3,44gb big. when i browse the data.ext4.tar its empty. then i click on restore nandroid backup. it boots into recovery but then it says:
sd card marker not found
.....
E: unknown volume for path [/mnt/sdcard1/clockworkmod/backup/2012-01-01.00.00.35]
cant mount backup path
im using cwm 6.0.4.8
so can sum1 plz help how to restore it? or is it broken? is everything gone?
and another question: twrp has adb sideload-support. i could make a twrp backup via the openrecovery adb script but my internal storage has not enough space. if i could tell twrp to backup on the ext sd card perhaps it works
greetz
daemonicvs said:
hello guys,
i have a problem with restoring my nandroid backup.
so the digitzer of my s3 mini is broken and does not work partially. e.g. i cant enter my pin to unlock screen lock and i cant use twrp. so i used cwm (i guess it was 6.0.2.8.) to backup everything to my ext sd card. i dont know exactly if the backup was successfull but i cant remember any error messages and my backup is about 3,5gb big and there r following files:
boot.img
cache.ext4.tar
cache.ext4.tar.a
data.ext4.tar
data.ext4.tar.a
data.ext4.tar.b
data.ext4.tar.c
data.ext4.tar.d
nandroid.md5
recovery.img
system.ext4.tar
system.ext4.tar.a
now i wanted to restore only data on a new device: moto g peregrine via cwm. i installed cm12.1 on my moto, the backup comes from cm12.1 too.
error: md5 checksum mismatch -> i cutted nandroid.md5 and created an empty file named nandroid.md5 and copied it into the backup folder. then cwm restored. well... it says it was restored. but when i start android no data is restored.
so i tried to restore it via tatanium backup. this app finds my backup, but only system apps r listed. no user apps. (i just tried it again, no apps at all)
then i tried to open/browse the tar archives with a shell extension in windows. they are empty.
then i wanted to extract them with appextractor but it doesnt find a backup to extract.
then i tried nandroid manager. it finds the backup, it says, its 3,44gb big. when i browse the data.ext4.tar its empty. then i click on restore nandroid backup. it boots into recovery but then it says:
sd card marker not found
.....
E: unknown volume for path [/mnt/sdcard1/clockworkmod/backup/2012-01-01.00.00.35]
cant mount backup path
im using cwm 6.0.4.8
so can sum1 plz help how to restore it? or is it broken? is everything gone?
and another question: twrp has adb sideload-support. i could make a twrp backup via the openrecovery adb script but my internal storage has not enough space. if i could tell twrp to backup on the ext sd card perhaps it works
greetz
Click to expand...
Click to collapse
You can connect a USB mouse and keyboard to navigate and select whatever you need to select or do in CWM or TWRP, it will work with either recovery.
As for transferring user installed apps and their data, you can try backing them up to your google account and then restoring them from google on the new device. Or use the USB mouse/keyboard along with ES File Explorer to go to your /data/app folder and create copies of your installed apps, the backups will be in your backup/app folder on internal, copy them to PC then go your Android folder on the device and copy the app data for those apps to PC, then transfer the app copies to the internal on the new device and install them or use adb to sideload each of those apk files to the new device, then transfer the copied app data for those apps to the Android folder on the new device, then boot to recovery and wipe only cache, do not factory reset in recovery then reboot.
I DO NOT GIVE HELP IN PM, KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
hi,
You can connect a USB mouse and keyboard to navigate and select whatever you need to select or do in CWM or TWRP, it will work with either recovery.
Click to expand...
Click to collapse
but for this i need a special otg adapter cause the s3 mini doesnt support otg originally. and dont i need to install an app or something on my device and confirm a message on my screen? like u wanna do an adb backup. havent tried it yet. i will do i i guess.
As for transferring user installed apps and their data, you can try backing them up to your google account and then restoring them from google on the new device. Or use the USB mouse/keyboard along with ES File Explorer to go to your /data/app folder and create copies of your installed apps, the backups will be in your backup/app folder on internal, copy them to PC then go your Android folder on the device and copy the app data for those apps to PC, then transfer the app copies to the internal on the new device and install them or use adb to sideload each of those apk files to the new device, then transfer the copied app data for those apps to the Android folder on the new device, then boot to recovery and wipe only cache, do not factory reset in recovery then reboot.
Click to expand...
Click to collapse
this presumes that i can unlock my lockscreen. doesnt it?
i will try to backup my data with cwm again. perhaps the backup is corrupted. and i will try to do an adb backup and control the phone via keyboard and mouse if i can unlock the screen and/or confirm a popup message.
can anyone say if i can make a twrp backup to my ext sd oder pc via adb shell? i know the command "twrp backup <options> <foldername>" but can i change the path where the backup will be stored?
thx for your reply
daemonicvs said:
hi,
but for this i need a special otg adapter cause the s3 mini doesnt support otg originally. and dont i need to install an app or something on my device and confirm a message on my screen? like u wanna do an adb backup. havent tried it yet. i will do i i guess.
this presumes that i can unlock my lockscreen. doesnt it?
i will try to backup my data with cwm again. perhaps the backup is corrupted. and i will try to do an adb backup and control the phone via keyboard and mouse if i can unlock the screen and/or confirm a popup message.
can anyone say if i can make a twrp backup to my ext sd oder pc via adb shell? i know the command "twrp backup " but can i change the path where the backup will be stored?
thx for your reply
Click to expand...
Click to collapse
You can use adb to remove lockscreen. There's a couple different ways using adb, research them.
As for OTG capability, you can try adb side loading an app called Stickmount by Chainfire if you can find a way to enable it after installing it.
Sent from my SCH-I535 using Tapatalk
ok thx.
i wanna use the openrecovery script with "adb shell twrp backup DO" but it says not enough space. so i want to store the backup on my ext sd. but how can i change the backup location to my ext sd? i only can specify a foldername within the backup path. but noch path :/
like here
http://www.pocketables.com/2014/10/using-twrps-new-adb-interface.html
hope sum1 can help me

Where is mmssms.db located in a TWRP backup of Nougat>

I am trying to extract the file mmssms.db from several nandroid (TWRP) backups of Nougat. I know that in Nougat this file was moved to "/data/user_de/0/com.android.providers.telephony/databases". I can browse to this file on my phone but if I browse through the contents of the data partition backup from the nandroid backup files (data.ext4.win00X) the path "/data/user_de/" does not exist. Can anyone tell me where this file can be found in a TWRP backup archive? Otherwise I will have to completely restore these backups one by one to pull each iteration of the file off the phone.
I think that TWRP doesn't backup this folder for the simple raison that Nougat is quite new.
Maybe it backups only a list of folders in /data (but I can't confirm it)
I got just ****ed right now, me too.

Can I recover encrypted data with a restore?

Hello
I wanted to install Syberia A12 from stock A11 and I got stuck somewhere in the process.
So I'm stuck with the internal storage on the phone (not backed up) that is inaccessible since it's encrypted and the rest of the partitions backed up on the pc using adb backup (a single .ab file).
In theory I should restore the partitions to the phone and I should be able to access everything and boot as it was before, right? However now I have the syberia ROM installed and I'm not rooted anymore (and won't boot).
Can I restore /system like this?
What I care about is access the internal storage, what can I do?
I tried restoring the entire .ab file, however it gets stuck at "restoring efs2" and I should only try to restore /data and /system but I can't select specific partitions being a adb backup with twrp.
All tools I tried to extract the content fails.

Categories

Resources