[How To] Fix md5 mismatch nandroid restore

da305kratos

Senior Member
Dec 15, 2010
98
3
0
Miami
Thanks for this great discussion guys.

But any idea why this might have happened to me? I did NOT rename my backup anything different from what Clockworkmod names them and I did NOT find ANY spaces in the folder name of the backup.

All other files also seem to be at the right level of the directory level. So, any idea how I can fix this? I would love to restore one of my backups that I lost this way :(.

Additionally, how can we prevent this from ever happening in the future? Especially in my case, where I did not rename anything, and no spaces are to be found?

Thanks for your help guys, you guys are awesome :D!
Same here, never changed a thing in regards to this :/

anyone else with a CDMA Hero can tell me if it worked for you and if the process when rebooting was long? please read my post 2 above this one...
 

ihtfp69

Senior Member
Feb 22, 2009
1,875
809
0
My original post has nothing to do with renaming folders or spaces. It can happen regardless and there are a multitude of reasons why. The worst case is it's a corrupt backup.
 
  • Like
Reactions: GodStrongArms

hongkongtom

Senior Member
Nov 25, 2008
273
18
0
Same here, never changed a thing in regards to this :/

anyone else with a CDMA Hero can tell me if it worked for you and if the process when rebooting was long? please read my post 2 above this one...
same here, but mine is a slightly different case, I've bought myself a new sd card changing from 16gb class4 --> 16gb class6, different brands, the total spaces available seem to be different too, don't know why, I didn't rename any folder and just copy anything to my new sd and suddenly the md5 mismatch occurs, I then did a full wipe and the trick here, now restoring, see how it goes

anyway, could someone tell me when I have this issue?:confused:
 

kentt1

Senior Member
Dec 29, 2010
93
5
0
Thank you kindly.
This fix was perfect. Apparently my .md5 were never created in the first place. Strange.
edit: Dell Streak using ClockworkMod Recovery 2.5.0.1
 

sitlet

Senior Member
Mar 30, 2008
2,949
364
0
From the OP:

This is assuming you did not change the folder names and let Clockworkmod create them.
What happens if I did rename the folders? I had setup and backed up different roms, so I could flash them when needed and not have to restore everything. I copied every folder from the clockwork folder to my computer, then renamed them with the name of the rom so I would know which one is which. I did NOT change the date/time stamp that clockwork creates, only added the rom name after that. Even after removing the name, leaving only the date/time stamp, I still get the md5 error in clockwork. Will this method work for me? I dont want to try it, then mess up my backups.
 

khov07

Senior Member
Jan 9, 2010
355
21
0
California
Worked like a charm, thanks a bunch OP. Had a recent backup generate this md5 mismatch error, you saved me a lot of work.

For noobs: ADB commands are entered via an ADB shell.

1. Download the Android SDK here, and the Java SE Development Kit here. Install Java kit FIRST, then Android SDK.

2. Ensure you have the Android USB drivers installed, which you should if you have already rooted and performed a nandroid backup, whether you used Amon RA or ClockworkMod Recovery.

3. On your device, enable USB debugging and when you plugin your phone to your PC, make sure you select 'Charge Only'.

4. In the Android SDK, you will have to select and download the latest SDK Platform-tools, and you can safely ignore the other software packages for the purposes of this issue.

5. Once you've done that, open a command prompt, browse over to the directory where you installed the Android SDK, and in the current version, you will have to browse to the \Android\android-sdk-windows\platform-tools folder. Once you are there, type in 'adb shell' without quotes.

6. You can now enter adb commands. You are entering commands as root if your cursor is a pound sign '#'. If it isn't, type in 'su' without quotes, which requests superuser access. Your phone's screen will prompt you to allow or deny root access to the command shell. Allow it, and you are good to go.

***This is all from memory, so if I've missed something, feel free to correct.
 
Last edited:

DonJuan692006

Senior Member
Jul 22, 2010
1,624
176
0
Suffolk, VA
Worked like a charm, thanks a bunch OP. Had a recent backup generate this md5 mismatch error, you saved me a lot of work.

For noobs: ADB commands are entered via an ADB shell.

1. Download the Android SDK here, and the Java SE Development Kit here. Install Java kit FIRST, then Android SDK.

2. Ensure you have the Android USB drivers installed, which you should if you have already rooted and performed a nandroid backup, whether you used Amon RA or ClockworkMod Recovery.

3. On your device, enable USB debugging and when you plugin your phone to your PC, make sure you select 'Charge Only'.

4. In the Android SDK, you will have to select and download the latest SDK Platform-tools, and you can safely ignore the other software packages for the purposes of this issue.

5. Once you've done that, open a command prompt, browse over to the directory where you installed the Android SDK, and in the current version, you will have to browse to the \Android\android-sdk-windows\platform-tools folder. Once you are there, type in 'adb shell' without quotes.

6. You can now enter adb commands. You are entering commands as root if your cursor is a pound sign '#'. If it isn't, type in 'su' without quotes, which requests superuser access. Your phone's screen will prompt you to allow or deny root access to the command shell. Allow it, and you are good to go.

***This is all from memory, so if I've missed something, feel free to correct.
The only thing I have to add is that you don't need Java if your only going to be using ADB, but that's honestly just me being particular.

Secondly, since I didn't see this get brought up in the past posts, the final folder from the ADB commands isn't necessarily going to be labeled the same as the OP. The actual backup folder name is based on the current date/time when the backup was made, so I would suggest doing the following:

Code:
adb shell
cd /sdcard/clockworkmod/backup
ls -l (which will list all your backup's)
cd *backup folder you're trying to use*
rm nandroid.md5
md5sum *.img > nandroid.md5
 
  • Like
Reactions: GirLuvsDroid

juice willis

New member
Jan 25, 2010
3
0
0
Success!

Just wanted to say it worked, and thanks a lot!

Seems that none of the backups I made have the md5, not sure why, freshly rooted and cwm recovery flashed...hmmm...
 

ezeuba

Senior Member
Sep 15, 2009
429
106
0
Lagos
I get an md5sum not found error

I have this problem with restoring my backup. I tried the fix as was detailed, even had to download md5sum.exe because I am working on a Windows 7 machine, but I always get "md5sum: not found" error. Can anyone please guide me on what I can do to get this working. I copied md5sum.exe to C:\Windows\System32 and also to the sdk\platform-tools folder, still getting the error.
Thanks all.

EDIT: I found that I had to go into recovery first to run the fix. Only then did the md5sum command work and created a fresh new nandroid.md5, and got my backup restored. Thanks to all who made this possible. My sincerest thanks.
 
Last edited:
  • Like
Reactions: dwreck420