Browse and extract contents of TWRP Nandroid backup on Windows PC? - Android Q&A, Help & Troubleshooting

Very simply, how do I browse and extract the contents of a TWRP Nandroid backup on my Windows PC?
I am trying to browse a TWRP backup but I have a feeling I need to do a bit more fussing around. The backup is split into data.ext4.win000 through data.ext4.win007 and each of the parts has an accompanying .md5 with the same naming structure (ie. data.ext4.win000 and data.ext4.win000.md5.) There's also a data.info file as well.
The system backup is the exact same as described above for the data, except it's only 2 parts (system.ext4.win000 and system.ext4.win001, with the accompanying md5 files and the info file.)
Can someone provide a bit of guidance? I'm using a Windows 7 Home Premium machine.

kwest12 said:
Very simply, how do I browse and extract the contents of a TWRP Nandroid backup on my Windows PC?
I am trying to browse a TWRP backup but I have a feeling I need to do a bit more fussing around. The backup is split into data.ext4.win000 through data.ext4.win007 and each of the parts has an accompanying .md5 with the same naming structure (ie. data.ext4.win000 and data.ext4.win000.md5.) There's also a data.info file as well.
The system backup is the exact same as described above for the data, except it's only 2 parts (system.ext4.win000 and system.ext4.win001, with the accompanying md5 files and the info file.)
Can someone provide a bit of guidance? I'm using a Windows 7 Home Premium machine.
Click to expand...
Click to collapse
Simply rename the file to data.ext4.tar and use winrar to extract it.

I'm revamping this thread because I'm...desperate!
I have a nandroid backup (TWRP 2.8.7.0) and I would like to browse it on my PC. I'm focusing on files with structure data.ext4.win000x (where x goes from 0 to 2).
I'm able to open with 7-zip (should be equivalent to winrar) every individual file but size is faulty: every file is nearly 1.5 Gb while the content of the zipped file that I see it's around 50 kb. If I concatenate the files with the command copy /b data.ext4.win000? outputfile regardless the extension I give to "outputfile" I'm no longer able to open it with 7-zip.
Any suggestion/hint please ????

Not finding entire folders/files while browsing backup
I find the same thing regardless of the mechanism I am using to browse the backup. I am looking in /data/data for my own apps' data. Here is what I have tried so far:
1. Nandroid Manager app
2. TWRP Explorer app
3. ZArchive app
4. In a terminal, cat data.ext4.win??? | tar -tv > less (and then searching for my apps' package names
I was looking inside my nightly full backup to extract and recover some files I accidentally deleted. Cannot even find folders for the package names (except for 1 app). However, when I do a full restore from the same backup inside of TWRP Recovery, the missing files are indeed restored. So I know they are in the backup.
Why can I not find them and get at them any way else? I must be missing something simple.
Thanks
BTW - in the recovery.log file in the backup folder, I see the folders/files in question being "added". Very odd.
BTW2 - at least with regards Nandroid Manager app, I noticed that I was seeing some files I know I had removed from my apps some time ago. How could that be? I decided to clear data/cache for Nandroid manager and try again. It took much longer to process the backup for exploring. But now at least that app seems to be doing the right thing and I can see all folders/files.

Related

[TOOL] Back up custom system files from recovery

This is a tool I made for myself for backing up some of the custom files... Mostly as a result of wanting to expedite the process of backing up some configuration files in /system (such as inadyn.conf or bashrc on synergy rom). It reads a text file to determine what files you want, saves them in a tar on your sdcard (necessary to tar them to keep permissions the same when transferring to fat). Then you flash the restore zip to put them back.
It's set to not backup if there already is a backup (to prevent overwriting your custom files by clicking the wrong zip). The backup.tar is deleted on successful restore.
To use, create a text file in /sdcard/custBackups called custom_files.txt, and put the full pathname of each desired file in there, seperated by a single space (no newlines). While in recovery, run the backup zip to save your custom files, and run the restore zip to restore them after flashing.
An easy way to add the files while using adb shell (with busybox installed) is to cd and ls around to find your file, then while working in the same directory run this command
echo " `realpath myfilename`" >> /sdcard/custBackups/custom_files.txt
(those are backticks, not single quotes, which may be on hackers keyboard but isn't on most android keyboards, that's why I suggested adb shell)
looks long but is pretty quick with bash completion. But only needs to be done once for each file, the text file stays in place.
Thanks to Cyanogen's team and ginger yoshi, as I got the idea from them and learned the updater script reading their files.
A dev can put this in their own updater script so it's all in one (which I do when exporting the svn for synergy). If you can't figure out how to add it reading my script, let me know. And if any devs do use, just shoot me some credit.
If this is used on any other phone, the assert command and mount command in updater script needs to be changed to suit... the rest should be pretty universal.
Is this something like Titanium Backup.apk but in zip format?
No I made this just for synergy for backing up the special configuration files for some of the special tools i'm that ROM, like inadyn and dropbear. Also any special themed files, my fonts..
Basically, catching any system files that titanium and other apps don't get.
Sent from my PG86100 using XDA App

Corrupt nandroid backup - how do I delete a single file from the system.ext4.tar?

Today I wanted to see what the JellyBean for SGS III is like so I made a nandroid backup of my current setup. After playing with JB for a while, I wanted to restore the backup, but I was greeted with an error message.
I've been messing with this the entire F****** day and so far I've isolated the file that is corrupted (it's /system/app/Keystring_factory.apk).
So I need to delete that file from within the archive. The problem is how do I do that? When I try to copy the file to my computer, it hangs on it and says "corrupted file" (tried windows explorer but also total commander). I am able to open the archive on my SGS III using something like ZArchiver, but it doesn't have the option to delete the file from within the archive.
Help?
Deusdies said:
Today I wanted to see what the JellyBean for SGS III is like so I made a nandroid backup of my current setup. After playing with JB for a while, I wanted to restore the backup, but I was greeted with an error message.
I've been messing with this the entire F****** day and so far I've isolated the file that is corrupted (it's /system/app/Keystring_factory.apk).
So I need to delete that file from within the archive. The problem is how do I do that? When I try to copy the file to my computer, it hangs on it and says "corrupted file" (tried windows explorer but also total commander). I am able to open the archive on my SGS III using something like ZArchiver, but it doesn't have the option to delete the file from within the archive.
Help?
Click to expand...
Click to collapse
U can extract cwm with titanium backup or use a file explorer to extract the backup and delete the file then zip it.
But I would flash a new Rom and extract cwm with TB and restore the parts u need with TB.then when all is good make a new backup.
I don't think it's a good idea to restore a corrupted file even if u find the errors
Btw. Fayaab has tweeted that he is going to release a JB for gs3 tomorrow and this should be working
Tried that too, Titanium got stuck at the file. 7-Zip got stuck even when "Testing Archive". I'll write the file off as corrupt. Interestingly enough, the data.ext4.tar is also corrupt. Does this mean it's a time for a new microSD card? Or is it CWM that's writing corrupt files somehow?
Access system files from recovery any use .
http://forum.xda-developers.com/showthread.php?t=1646108
Works on SGS3
jje

[Q] Access nandroid backup content (.win files)

hey guys,
I have made a nandroid backup of my nexus 7 (2012) and I need to get access to contents of the data partition without actually applying the nandroid backup to the device. I found this "unyaffs" tool, but it requires .img files if I understood it correctly. However, in my nandroid backup directory, I have a couple of files that end in ".win" or ".win000" etc (along with corresponding md5-files)...these must be image files of some sort I guess, but Windows describes them as "Adobe CMS Extensions" for some reason.
So...anyone knows how I can access this data? Any help appreciated!
cheers
brokaaa

Anyway to Clone a Rooted Android Tv Box?

I'm looking for a way to clone a Rooted android box to other android boxes. I want to clone my Tv launcher and apps plus settings.. I have tried a few programs Titanium backup but it seemed to back it up and restore fine but fails to recovery the settings for each app. If there is a faster way of doing this please let me know. The boxes are all different, but have the same processors s905x amlogic. Is there a way to make a IMG then use the usb burning tool to write to each box?
I Used Filezilla to grab files but it also fails to load all the files from the entire box?
Use twrp to create a image then flash that image to the other
I'd agree with Bcoates84, I've been testing out the process of cloning some Samsung tablets by simply restoring TWRP backups and so far everything's worked out pretty well.
It would be a good idea to backup the target ones just in case before trying it since you mentioned they are different boxes.
If you look up TWRP for your specific model(s) there should be some good information to get you heading in the right direction.
So i have done my backup on the box i want to clone, ill call it A-box. I got a Folder called TWRP/Backups With a few files
Boot.emmc.win
data.ext4.win000
data.ext4.win001
data.info
recovery.log
system.ext4.win
system.info
I plugged the stick into the box i want to clone, ill call it b-box went to restore this time and it fails to see the backup?
So I copied the TWRP folder with it's contents this time to my desktop and deleted the TWRP folder from the USB stick. Decided to do a Backup on b-box even know i didn't need the backup just wanted the folder structure to compare the two which i then got.
Boot.emmc.win
data.ext4.win
data.info
recovery.log
system.ext4.win
system.info
So I removed all the FILES from the usb only leaving the folder structure TWRP/BACKUP/SERIALNUMBERS I'm guessing? Also the p212-userdebug_6.0.1 folder. Then copied my files from A-box into the file structure and went to do a restore and it sees the image! Restore went smooth, went to reboot and it's stuck on android splash screen for 30mins now so guessing it's bricked. I can flash stock img back thats not a issue. Just trying to figure out how to clone this damn thing lol.
Is there anyway to simply make a Img so i can flash it via the amlogic usb burning tool. I saw this guide https://forum.xda-developers.com/showthread.php?t=2746044 which i can extract the system.ext4 seeing all the system files, fast_preinstall, addon.d, app, bin, fonts, usr ect... But i don't see boot.emmc.win anywhere? I'm assuming this methods for phones only?

Question Can't copy files!

Hey Users,
I recently reinstalled Windows 11, and before that, I did a full image backup using Macrium Reflect of my drives (C and D, and I want to copy only certain files to my C drive, I started with some random files, and then wanted to copy the User folder, but I want to explain, that I can't just restore the entire backup because:
1. The system that I installed is Windows 11 22H2 and the system in in the backup is a different version of Windows 11.
2. The system in the backup is partially corrupted (but just the system files which I don't want to copy)
I tried copying different folder in the folder, but some files were not copied for unknown reasons, and I can't get them to copy! Also there where some errors like "This file can not be accessed by the system"!
I even tried using RoboCopy and a lot of files were skipped!
Please tell me how do I copy them!!
Please help!
Edit: I mounted the image as a drive in order to try to copy.

Categories

Resources