[How to] Fix md5 mismatch on nandroid backup/restore - Upgrading, Modifying and Unlocking

Hi all,
Is anybody got stuck their nandroid recovery due to md5 mismatch ???
I have some solutions .Before that let's check why the mismatch came .
You are getting the MD5 mis-match error because the MD5 checksums in the nandroid.md5file do not match the checksums of one or more of the system.img,data.img, orboot.img etc. files in your Nandroid's backup directory.
Solutions :thumbup:
1 . Open Terminal emulator and put the following code
adb shell
_______________________________________________
# cd /sdcard/clockworkmod/backup/2010-06-29.20.22.53//change this by your backup folder name .
# rm nandroid.md5
# md5sum *img > nandroid.md5
_________________________________________________
2 . Open nandroid.md5 using text editor .Just edit the values in nandroid backup by original value of each .tar or .zip files
Remember Changing values of nandroid.md5 will affect your backup .
It is something like
_________________________________________________
xxxxxxxxxxxxxxxxxx
recovery.img
xxxxxxxxxxxxxxxxxxx
boot.img
xxxxxxxxxxxxxxxxxxx
system.ext4.tar
xxxxxxxxxxxxxxxxxxx
_________________________________________________
Edit xxxxxx with the currect md5 value of each .
3 . Still the problem is there or there is no nandroid.md5 just clear the values of nandroid.md5 using text editor or create a empty nandroid.md5 .
Your problem is now solved . :sly:
Sent from my GT-S7562 using XDA Premium 4 mobile app

Still not working...
I tried the first an the third one and nothing worked... I can't try the second because i deleted my original md5 file and don't have those numbers.
The first solved that problem but created a "error while restoring /data" message every time so i replaced it with a blank file and now it says md5 mismatch
I have no idea, and need this backup
Thanks!

dmanmatt10 said:
I tried the first an the third one and nothing worked... I can't try the second because i deleted my original md5 file and don't have those numbers.
The first solved that problem but created a "error while restoring /data" message every time so i replaced it with a blank file and now it says md5 mismatch
I have no idea, and need this backup
Thanks!
Click to expand...
Click to collapse
Use advanced restore option and restore all files except data .
Hope I helped
Sent from my GT-S7562 using XDA Premium 4 mobile app

Related

[Q] Boot image backup

When I backup my boot partition with:
cat /dev/mtd/mtd2 > /sdcard/boot.img
The file I get is ~5mb and when I try to restore the image in an update.zip file it fails.
However,
If I take a look at an nandroid boot.img file I have from the same running state, the file is ~2.5 mb and when used in the update.zip file everything works fine.
Right now things are working but I am curious why mtd2 or mtd2ro are twice the size and don't work. I am currently running cm6 stable. Any clarification would be appreciated, I assumed cat mtd2 was supposed to grab the boot partition correctly.

[Q] is there anyway to manually make a md5?

i've backuped, but when I tried to restore, the md5 was gone..
Is there anyway I can cheat on cwm or make a md5 ?
You can copy the file on your computer and use tools like MD5summer to create the MD5 file and then copy the *.md5 to your phone.
I dont know for which file I need to make the md5.. there is 7 files..(boot, cache, system.. etc)
the MD5 file looks like this one:
XXXXXXXXXXXXXXXXXXXXXXXXXXX boot.img
XXXXXXXXXXXXXXXXXXXXXXXXXXX cache.yaffs2.img
XXXXXXXXXXXXXXXXXXXXXXXXXXX data.yaffs2.img
XXXXXXXXXXXXXXXXXXXXXXXXXXX recovery.img
XXXXXXXXXXXXXXXXXXXXXXXXXXX sd-ext.ext3.tar
XXXXXXXXXXXXXXXXXXXXXXXXXXX system.yaffs2.img
XXXXXXXXXXXXXXXXXXXXXXXXXXX .android_secure.vfat.tar
you have to calculate the MD5 for each img or tar file and the replace xxxx with the obtained MD5
---------- Post added at 02:50 PM ---------- Previous post was at 02:48 PM ----------
forget to tell that:
you can save the above text using notpad in a file named nandroid.md5 and put it in your backup folder
From a terminal emulator
Code:
cd /sdcard/clockworkmod/backup/backupname
Where backupname is the name of your backup and this is the location of your backup.
Then:
Code:
md5sum *img > nandroid.md5

MD5 mismatch?!

When trying to restore my backup via CWM, it said MD5 mismatch!
Why?!
have u changed the name of the backup? i got an error once when i changed the name to something with spaces in it
Sent from a desire z
Like suggested above a name change or some other alteration to the file took place, possibly corruption.
renamed it to a name with no spaces...
still get the md5 mismatch error...
Make sure to have no spaces in the back up name
Go into the backup folder and remove nandroid.md5
Now, in that same directory, run this command:
Code:
# md5sum *img > nandroid.md5
Boot into recovery and try again.
Did you reflash CWM recovery after your backup?
Sent from a message in a bottle.

MD5 sums

today i tried restoring a stock rom through cwm which was installed through odin.. while restoring it i got an error saying there is no MD5 files! So can i put the md5 files from other backups in this??
nope...you can't do that. what CWM was you used before? you should note that skin1980's or madteam's is work just fine. the one from merruk's kernel doesn't work. it still under development stage. please be wary of that
Just create an md5sums.txt using notepad++. And generate the md5sums yourself:
1. Download the md5sums-1.2.zip here. Extract md5sums.exe.
2. To generate md5 checksums for your .tar files, run md5sums.exe -u your_nandroid_backup.tar >> md5sums.txt
3. Edit the md5sums.txt in notepad++. Replace each asterisk (*) beside each filename with a space.
4. Save your file. Ensure it is encoded in utf8.
Your md5sums.txt should contain the following:
Code:
7e613b2d2d799aecad4d76931a80928b cache.rfs.tar
ff68ff227b91bb4ab5006df682d31d5f data.rfs.tar
02da391f4dfb511ffb69b7188174b3ee system.rfs.tar
7c294a7d02fcfb81ef79b258d02da705
.android_secure.vfat.tar
Source:
Bumslayer.
raolemo said:
Just create an md5sums.txt using notepad++. And generate the md5sums yourself:
1. Download the md5sums-1.2.zip here. Extract md5sums.exe.
2. To generate md5 checksums for your .tar files, run md5sums.exe -u your_nandroid_backup.tar >> md5sums.txt
3. Edit the md5sums.txt in notepad++. Replace each asterisk (*) beside each filename with a space.
4. Save your file. Ensure it is encoded in utf8.
Your md5sums.txt should contain the following:
Code:
7e613b2d2d799aecad4d76931a80928b cache.rfs.tar
ff68ff227b91bb4ab5006df682d31d5f data.rfs.tar
02da391f4dfb511ffb69b7188174b3ee system.rfs.tar
7c294a7d02fcfb81ef79b258d02da705
.android_secure.vfat.tar
Source:
Bumslayer.
Click to expand...
Click to collapse
cn u explain step 2?
Today i had the same problem on TermaRom with CWM restore failed MD5 missing.Greeeeetz

How to backup EFS

@echo Backup EFS
@pause
@echo --- STARTING ----
@echo --- WAITING FOR DEVICE
@files1\adb wait-for-device
@echo --- Backup efs image ---
@files1\adb shell su -c "dd if=/dev/block/mmcblk0p3 of=/sdcard/efs.img bs=4096"
@files1\adb pull /sdcard/efs.img
@pause
I find code from other board, couldnt use on my phone, is there anyone could check which part is wrong?how to back my EFS ?
THX
Sent from my LG-F180K using xda premium
There is no EFS partition on our phone, the "efs" partition you are trying to backup mmcblk0p3 is sbl partition.
There are at least four guys phone got the same issue as mine, flashed wrong KDZ caused no signal, and cant regist on the carrier, when they flashed the right KDZ, but cant help, we are trying to check it out.
but, if there no EFS, where it storage the IMEI?
Sent from my LG-F180K using xda premium

Categories

Resources