How to check if TWRP backup file is corrupted? - Android Q&A, Help & Troubleshooting

Hi!
Is there any way to check if a TWRP backup file is not corrupted?
Thanks

I'd also like to know.
There are MD5 sums created (per default?) but I don't see a way to verify/compare these other than doing a restore.

Related

Restore file fails checksum verification...

I recently tried a new ROM and made a Rom Manager recovery restore file prior to changing. Things didn't work out as well as I had hoped and when attempting to restore, it fails at the checking MD5 sum process.
Any way to work around this? I really would like to restore to the previous ROM without starting over.
Anybody? I am not quite sure how the restore file can be created on this phone and then not pass verification?
Any ideas or am I stuck starting over?
sandiegopaneraiguy said:
Anybody? I am not quite sure how the restore file can be created on this phone and then not pass verification?
Any ideas or am I stuck starting over?
Click to expand...
Click to collapse
depending on the type of file format used to backup, the restoring could be done manually but a changed md5sum generally means the files are not the same as the original. this could result in corruption and generally it isnt recommended to restore corrupted files as you run the risk of nothing working.
if you're still wanting to proceeding with attempting to restore files which are different than the original and could be corrupted, off the top of my head, you can probably dd the .img files back and untar the .tar files back.
i would suggest starting over and perhaps copying the backup files over to your desktop instead of only leaving on the sdard. this should help ensure at least one of the copies maintains their integrity.
hope that helps!
You can boot into recovery, and run nandroid via adb shell command line, no md5 checksum file needed. Now if the image is bad, you of course get bad results, but if the checksum is just hosed for some reason, it will work fine.
Put the .win files for the partitions you want to restore in /sdacrd
then issue the command "tar xvpf /sdcard/data.win" or "tar xvpf /sdcard/system.win" from the adb shell while in /data or /system respectively. .win files are what TWRP creates for backups.
I had this happen with TWRP 1.01 or 1.02 once on a good backup that passed the checksum tests when I backed it up.
I was testing the reliability of the TWRP package's nandroid and first one failed.
Once I moved to the newer version, I've not had that issue.

Clockwork Mod MD5 Error

Went to install a backup made with CWM today. This is the first time I've done a restore on this phone. Went to restore and am getting an MD5 mismatch on all 3 of my backups!
I have not moved the files or changed their names. They are right where CWM put them.
I've had trouble with the newer versions of CWM in the past that use the TAR files instead of an image file.
I deleted the MD5 file and through terminal did a md5sum *.* > nandroid.md5 to create a new MD5 file but it doesn't work. Is the *.* a proper way to wildcard all files in the directory under linux? Is this the correct way to do it or is it just one of the files I should be doing the MD5 for?
Thanks for the help!
Mike
Can't believe no one has an answer for this.
I did answer my question about the proper syntax for the MD5, it's: md5sum * > nandroid.md5 in case anyone wants to know.
I did finally get my phone to restore. I removed the RAZR bootstrap and reinstalled it and bang, it installed just fine.
Mike
Can you say exactly how you did it? Would be quite interested to know.

Renamed Nandroid backup, can't restore

So, I wanted to rename my Nandroid backup folder name so it could be easier to know which file is what. However, I didn't knew this was going to cause MD5 mismatch problem.
So, there is anyway to me to recover my backup folder name and restore my backup?
EDIT: Forget i. I just had to put no spaces between the letters.
Felimenta97 said:
So, I wanted to rename my Nandroid backup folder name so it could be easier to know which file is what. However, I didn't knew this was going to cause MD5 mismatch problem.
So, there is anyway to me to recover my backup folder name and restore my backup?
EDIT: Forget i. I just had to put no spaces between the letters.
Click to expand...
Click to collapse
Didnt know that, good to know
Felimenta97 said:
So, I wanted to rename my Nandroid backup folder name so it could be easier to know which file is what. However, I didn't knew this was going to cause MD5 mismatch problem.
So, there is anyway to me to recover my backup folder name and restore my backup?
EDIT: Forget i. I just had to put no spaces between the letters.
Click to expand...
Click to collapse
If it happens again all you have to do is change de md5 values in the file nandroid.md5 (located in the backup folder) with the correct values for each file.
But only do that if you are sure that the backup files are not corrupted.
cafrocha said:
If it happens again all you have to do is change de md5 values in the file nandroid.md5 (located in the backup folder) with the correct values for each file.
But only do that if you are sure that the backup files are not corrupted.
Click to expand...
Click to collapse
In case anyone finds this off a search, I had the same problem. If manually rehashing the .img files (http://forum.xda-developers.com/showthread.php?t=714114) doesn't work, make sure the folder name you used doesn't have spaces. I renamed the folder with underscores, problem was fixed.

Need help with restore!

I backed up my rom with Clockworkmod v6.0.1.4 and when I went to restore it, it said md5 mismatch checksum. I checked in the advance restore options and it shows the default restore format is .DUP instead of .TAR so it saved it in the .dup format. Now, when I went to check up on the folder on my SDCARD it never showed an md5 file because it never created one. I read all of the " 20-second md5 fix " posts and I created an md5 file and made them blank off of a YouTube video and I also installed RapidCRC to attain md5 checksums from the img files in the backup folder to add to the new nandroid md5 file and out in the backup root folder and I even tried the SDCARD root, but to no avail, they all failed and I still get the md5 mismatch error. I have attached pictures that show my folders and files. I need some help on restoring please!
http://forum.xda-developers.com/showthread.php?t=2096556
Dude, you don't need another thread for this....

[Q] Restoring backed up data to another device

Can I restore data that I have backed up in CWM form my device to another?
As long as the model is same, yes. What device exactly?
I don't think so, even if they're the same. i've done it once and the cwm log says 'md5sum mismatch!'
azzazelium said:
I don't think so, even if they're the same. i've done it once and the cwm log says 'md5sum mismatch!'
Click to expand...
Click to collapse
If you insist on restoring the backup file do this simple trick on md5 mismatch: open the md5 file in your CWM backup folder, erase its contents. Leave the file empty (0 byte) then restore in peace
Keep in mind md5 mismatch means something changed in the backup file, doesn't matter which device it previously on. Do this on your own risk.
Note: CWM will skip verifying the backup if md5 file is empty.

Categories

Resources