New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
vishal24387
Old
(Last edited by vishal24387; 26th May 2012 at 10:08 PM.)
#1  
vishal24387's Avatar
Recognized Contributor - OP
Thanks Meter 1512
Posts: 3,151
Join Date: May 2011
Location: Solapur, Maharashtra (currently in Pune)
Lightbulb [Solution] MD5 mismatch error

Few days ago I faced MD5 mismatch error while restoring my backup after messed with my phone. But due to this error I couldn't restore backup. I asked many people but people said that I should now flash sock firmware which was really a headache for me.

Anyway I searched alot on xda & I found very easy solution.

It don't require pc or adb shell etc. It only requires rooted phone with Terminal Emulator app

STEP 1: Open Terminal Emulator

Step 2: Use the following commands. (DON'T FORGET TO REPLACE "2012-01-01.10.09.36" WITH YOUR OWN BACKUP FOLDER NAME WHICH WILL BE PRESENT IN folder /clockworkmod/backup/)

Code:
su
#mount -o remount rw /sdcard
#cd /sdcard/clockworkmod/backup/2012-01-01.10.09.36
#rm nandroid.md5
#md5sum *img > nandroid.md5
STEP 3: (This will create a new "nandroid.md5" file without ANY "md5 mismatch" errors )
Reboot your phone and enter Recovery mode & then restore.

I hope it will help you in future
ENJOY...

IMP NOTE :- Many times people change backup folder name which can create this error. So be sure that you have not changed your backup folder name & also be sure that there is no space in backup folder path.

Quote:
Credit goes to UsmanJ member. I have just shared with you guys with more good explanation.

Original thread HERE
The Following 24 Users Say Thank You to vishal24387 For This Useful Post: [ Click to Expand ]
 
appkiller
Old
#2  
appkiller's Avatar
Senior Member
Thanks Meter 65
Posts: 213
Join Date: Feb 2012
No need these at all you need "root toolbox". and ut works perfectly by the way thanks for sharung this way too

Tapatalk 2 ile GT-I9003 cihazımdan gönderildi
The Following User Says Thank You to appkiller For This Useful Post: [ Click to Expand ]
 
falex007
Old
#3  
falex007's Avatar
Senior Member
Thanks Meter 221
Posts: 622
Join Date: Apr 2011
Location: Odessa
If you do this you can't be sure that your backup isn't broken. md5 needs exactly for checking this. Yes, you cheated the check system, but are you sure that your backup integrity is fine?
The Following User Says Thank You to falex007 For This Useful Post: [ Click to Expand ]
 
silentvisitor
Old
#4  
Senior Member
Thanks Meter 197
Posts: 522
Join Date: Mar 2012
This problem is mainly due to folder name change. If you don't change folder name you shouldn't be having this problem.
There's nothing better than some Unknown Neighbor's free WiFi

Current devices :
Nokia 808 PureView "Mr.Awesome" - Belle FP2 1508
Samsung Galaxy Tab 2 7" P3100 - CM 10.1 (Android 4.2)
Samsung Galaxy SL I9003 - CM10
Samsung Wave S8500 - Bada 2.0
Nokia N8 - Belle .1511
BlackBerry Curve 9360 - OS 7.1
 
vishal24387
Old
#5  
vishal24387's Avatar
Recognized Contributor - OP
Thanks Meter 1512
Posts: 3,151
Join Date: May 2011
Location: Solapur, Maharashtra (currently in Pune)
Quote:
Originally Posted by silentvisitor View Post
This problem is mainly due to folder name change. If you don't change folder name you shouldn't be having this problem.
Ya but sometimes we have to face this problem even if we dont change folder name like how it was happened in my case few days ago.
The Following User Says Thank You to vishal24387 For This Useful Post: [ Click to Expand ]
 
Taraen
Old
#6  
Senior Member
Thanks Meter 118
Posts: 212
Join Date: Sep 2011
Well, I think this is no hint you should use. When creating a new backup md5 hashsums are calculated for each file. If you now want to restore it these hashsums are calculated again and compared to the previous ones. Only if the data is the same as before , in other words your backup hasn't been damaged, the checksums match. You may have had some luck that the error happened in a file that does not get used very often but in general you do not want to do that, just imagine your kernel backup is broken!

Sent from my GT-I9003 using XDA
Take part on this: [List] Useful apps; Add your favourites!

Samsung Galaxy SL i9003, PARANOIDANDROID port based on CM10, MIUIv4 Theme
 
imakulate
Old
#7  
imakulate's Avatar
Senior Member
Thanks Meter 110
Posts: 533
Join Date: May 2010
Location: San Antonio, Tx.-New Orleans, La.
Thanks, worked just fine for me.
Phone: Note 2
Rom: JellyBomb v17.0.0/GOODNESS Noteworthy v1.0.6a
Launcher: Nova Prime
Modem: Whatever comes with it.
Kernel: Perseus alpha V-36.3
Tweaks: DS Battery Saver Pro


"I think I think too much."
 
iAmBalvinder
Old
#8  
iAmBalvinder's Avatar
Senior Member
Thanks Meter 58
Posts: 208
Join Date: Apr 2012
Location: Hyderabad

 
DONATE TO ME
The error is not only because of changing the name of folder, as vishal says md5 mismatch can occur.

I even encountered the following problem with nandroid backup.

stock gb,xxkpu nandroid not compatible over cm9 or miui.
Or miui/CNET not compatible over stock rooted ROM.

I'm not sure of the reason why this error occurs while reporting the nandroid backup, but according to my limited knowledge of Android, I suppose either ext4 partition is not compatible over rfs of stock and vice versa or, out might be a kernel clash.

To be true, I didn't even try to search much about the issue as I'm mostly free and take the pain of customizing three new firmware as power my preference and reinstalling the app

Sent from my GT-I9003 using xda premium
Device : HTC Sensation z710e
ROM : ViperS 1.2.1
Sense: v 4.1
Recovery : 4EXT Touch Recovery
Firmware : 3.33.401.6
H-BOOT : 1.27.1111
Radio : 11.24A.3504.31_M
Kernel : 3.0.36-Bricked-3.0-v 1.36
Battery: Stock HTC Sensation
Unlocked Bootloader & S-off by JuopunutBear
 
iAmBalvinder
Old
#9  
iAmBalvinder's Avatar
Senior Member
Thanks Meter 58
Posts: 208
Join Date: Apr 2012
Location: Hyderabad

 
DONATE TO ME
If anyone is sure of the error and it's solution, the answer is most welcome.

P.s. while restoring out doesn't say md5 mismatch (I've also come across this though), the error I stated cannot restore the boot image atty the first place.

Sent from my GT-I9003 using xda premium
Device : HTC Sensation z710e
ROM : ViperS 1.2.1
Sense: v 4.1
Recovery : 4EXT Touch Recovery
Firmware : 3.33.401.6
H-BOOT : 1.27.1111
Radio : 11.24A.3504.31_M
Kernel : 3.0.36-Bricked-3.0-v 1.36
Battery: Stock HTC Sensation
Unlocked Bootloader & S-off by JuopunutBear
 
vishal24387
Old
#10  
vishal24387's Avatar
Recognized Contributor - OP
Thanks Meter 1512
Posts: 3,151
Join Date: May 2011
Location: Solapur, Maharashtra (currently in Pune)
@ Iambalvindar

You are right bro. There can be number of reasons about this md5 mismatch error. Actually the solutuion which I have provided is just an option to correct error If error is due to other reason such corrupted backup then obviously the solution given in my thread will not be applicable.