How to fix MD5 mismatch (Easy Fix) - Android General

All you need is a rooted phone with a root file explorer and a nandroid backup.
1: Go into your root file explorer
2: Go to your clockworkmod>backup then choose the backup file
3: You will see a file called "nandroid.md5" Open it with text editor and delete everything inside it (Don't rename any files)
4: Exit with the back button and click "Save"
5: Happy restoring!
The problem causing it was the stuff in the md5 file not matching up, when you deleted it, it now skips this step.

Bump
Sent From Note 2 Using Minuum Keyboard

And then there is no way detecting your backup is corrupted.
Sent from my GT-I9500

dragon135 said:
And then there is no way detecting your backup is corrupted.
Sent from my GT-I9500
Click to expand...
Click to collapse
I Tried it and it worked

bumparoonies

C00lBeanz said:
bumparoonies
Click to expand...
Click to collapse
The md5 check is pretty important, if your back up is corrupted you could easily end up in a bad place. The steps you lined up, absolutely work and I have done it myself, but only with a nandroid back up that I was really confident in. I am not sure if this is still the case, but if you have several nandroid backups in your back up folder and one of them has been corrupted, then all of them might throw the back up error...even though their md5s match.

justmpm said:
The md5 check is pretty important, if your back up is corrupted you could easily end up in a bad place. The steps you lined up, absolutely work and I have done it myself, but only with a nandroid back up that I was really confident in. I am not sure if this is still the case, but if you have several nandroid backups in your back up folder and one of them has been corrupted, then all of them might throw the back up error...even though their md5s match.
Click to expand...
Click to collapse
true, but for me, most of the time it fixes everything.

bump

wow, thanks bro! this work in my device :good:

BoyCasuales said:
wow, thanks bro! this work in my device :good:
Click to expand...
Click to collapse
no problemo

Bump
Sent From Note 2 Using Minuum Keyboard

Related

[Q] Can you rename Rom backup folders?

noob question i know however just a quick one,
can you rename nandroid backup folders with messing up md5sum ?
i load a ton of roms on the regular [a junkie i know] basis and get flustered when i have tons of backups but they are all dated
great question i also would like to know never had the balls to try cuz it says something about messing it up i know in rom manager u can under manage and restore (i think) also rom manager doesnt see ur cwm backups i usually go through ando zip but yea id def like to kno
Suprah said:
noob question i know however just a quick one,
can you rename nandroid backup folders with messing up md5sum ?
i load a ton of roms on the regular [a junkie i know] basis and get flustered when i have tons of backups but they are all dated
Click to expand...
Click to collapse
I don't know if you can rename the folders themselves, but you CAN rename the backup file itself. I use Root Explorer to do this. Just make sure you don't put any spaces in the new file name. You can use dashes and underscores to separate words and numbers, though.
Someone in the past said you can download mand5 to generate a new md5 sum, but I haven't tried it.
@visedmonk do u think andro zip will work it says it will let me rename then i click on that and it says change to file extension can make file unusable and i dont space any letters for instance il put cm for (cyanogenmod) rite next to the numbers havent had the balls to try it
sarni84 said:
@visedmonk do u think andro zip will work it says it will let me rename then i click on that and it says change to file extension can make file unusable and i dont space any letters for instance il put cm for (cyanogenmod) rite next to the numbers havent had the balls to try it
Click to expand...
Click to collapse
I dunno. I've never used andro zip. Only one way to find out...
But seriously, it should work. To be safe, though, make a copy of the file you want to rename and place the copy with the unaltered name on your computer or sd card or whatever. Then you can rename the file and see if it works. If it does, great. If it doesn't, you still have the backup you need.
Suprah said:
noob question i know however just a quick one,
can you rename nandroid backup folders with messing up md5sum ?
i load a ton of roms on the regular [a junkie i know] basis and get flustered when i have tons of backups but they are all dated
Click to expand...
Click to collapse
Don't know if you're using "nandroid" generically to refer to both the true nandroid as well as CWM but I rename CWM backup folders all the time and have never had trouble restoring them. I've done it from ROM Manager, via a file manager and also via ADB.
short/y said:
Don't know if you're using "nandroid" generically to refer to both the true nandroid as well as CWM but I rename CWM backup folders all the time and have never had trouble restoring them. I've done it from ROM Manager, via a file manager and also via ADB.
Click to expand...
Click to collapse
im talking about the folder not the actual files in the folder.
i just want to organize my roms so i can always jump between each
@suprah name it like this ex, 2011-06-16.05.57.13.....
you want...2011-06-16.05.57.13gingerbread ? rite well when i try that in andro zip it sayin it will make file unusable.... n i guess i will have to try and i always used to use rom manager and just go to manage and restore backups but its different with this phone especially cuz rom mana doesnt see cwm i guess?
Suprah said:
im talking about the folder not the actual files in the folder.
i just want to organize my roms so i can always jump between each
Click to expand...
Click to collapse
Yup, that's exactly what I'm talking about. I rename the folders all the time and have no problems restoring.
short/y said:
Yup, that's exactly what I'm talking about. I rename the folders all the time and have no problems restoring.
Click to expand...
Click to collapse
alright welp as long as you rename the folder without any spaces, then there would be no problem with restoring nandroid backups
nice nice will try soon cuz yea i have like 6 backups on here n was writing the date down with a name lmao
I renamed the folder once and couldn't restore. It was making a reference to the md5 file.
What I did to fix the backup is rename the folder again but this time without spaces and then it let me restore without any problems.
Now my Nandrioids are all organized
Hope that helped
Sent from my Bionix 2 - A TeamWhiskey Production using XDA App
the stock rooted nandroid restore that's posted in the dev section is renamed to LG-P999-V10f. it's not the typical date format. and alot of people have used it. so the answer is ....yes.
crazythunder said:
the stock rooted nandroid restore that's posted in the dev section is renamed to LG-P999-V10f. it's not the typical date format. and alot of people have used it. so the answer is ....yes.
Click to expand...
Click to collapse
jus making sure, im not a dev so i assumed that was possible with some code editing
moshe22 said:
I renamed the folder once and couldn't restore. It was making a reference to the md5 file.
What I did to fix the backup is rename the folder again but this time without spaces and then it let me restore without any problems.
Now my Nandrioids are all organized
Hope that helped
Sent from my Bionix 2 - A TeamWhiskey Production using XDA App
Click to expand...
Click to collapse
Could be there's a coding error in the recovery code and stops parsing the directory name when it hits a space. The md5 file only references the individual files not the directory.
In general it's better to stay away from spaces in file and directory names. Back in the early days of *nix spaces were verboten and there are still some vestigial issues lurking either in the code or in the coding habits of some people. It's rare but it does happen. Hyphens, underscores, periods are all OK though.
Sent from my Xoom using Tapatalk
If after you rename the folder you get an md5 error. This http://forum.xda-developers.com/showthread.php?t=714114 can help you fix it.
BE SURE AND READ THAT POST COMPLETELY
It's imperative that one not generate an md5 sum for a nandroid that is actually corrupted. That will wreak all kinds of havoc on your system.
ONLY PERFORM THE ABOVE IF YOU KNOW ITS NOT RESTORING DUE TO A NAME CHANGE
EDIT: For the record, the above commands can be performed from terminal emulator if you know what bits to leave out. Saved me a few steps.
I rename all of my nandroid backups. They are easy to get confused otherwise. The only thing I change is the year in the date, and leave the month/day alone.
Sent from my LG-P999 using XDA Premium App
Yea I downloaded the Stock Nandroid and loaded it. I renamed the folder and got a MD5 error. Now I'm not sure it if was because of the rename or because it was a bad download to begin with.
I think I still have the file on my pc and possibly find the MD5 checksum before copying it over this time.
player911 said:
Yea I downloaded the Stock Nandroid and loaded it. I renamed the folder and got a MD5 error. Now I'm not sure it if was because of the rename or because it was a bad download to begin with.
I think I still have the file on my pc and possibly find the MD5 checksum before copying it over this time.
Click to expand...
Click to collapse
Most likely because you renamed it
Sent from my LG-P999 using XDA App

[Q] Restoring Help!

Hey everybody! Whenever i go to restore my back ups i get a md5 mismatch. Any clues why? ive used CWM Voodoo. Thanks!
xxtrn said:
Hey everybody! Whenever i go to restore my back ups i get a md5 mismatch. Any clues why? ive used CWM Voodoo. Thanks!
Click to expand...
Click to collapse
What are you restoring from, Rom, filesystem, firmware could be the culprit. Notice any errors while making the Nandroid?
Did your rename the backups? Remove all spaces from the names if you did. That fixed it right up for me.
TheKucho said:
What are you restoring from, Rom, filesystem, firmware could be the culprit. Notice any errors while making the Nandroid?
Click to expand...
Click to collapse
I went into recovery to do do the back ups. I think there were errors but I can't remember. I did re name them though. I just deleted them to start over... Thanks for your help!!
bkoon1218 said:
Did your rename the backups? Remove all spaces from the names if you did. That fixed it right up for me.
Click to expand...
Click to collapse
I did rename them.. I use ES file explorer to rename it with all caps..

CWM Recovery - MD5 mismatch

Hey there,
since a few time I can't restore my recently made backups..
Everytimes I want to restore the CWM Recovery says
"Checking MD5 sums
MD5 mismatch" ..
I've already searched the forum and couldn't find a thread in here..
Also the solutions I found on google didn't help me..
Any tips?
Thanks in advance..
EDIT: Recoverysystem is 5.0.2.0
I've had this happen once when I went in and changed name of my backup from cwm's default date and time naming to something else. Other than that not sure why you'd be getting mismatch error except for a maybe a bad sdcard.
You could try reflashing the recovery to rule out a bad flash of the recovery
Sent from my LG-VM670 using XDA App
Well, I didn't change the name..
Reflashed the recovery, still got the Problem.. :/
Sent from my LG-P500 using Tapatalk
Could be a bug in the recovery. I'd try flashing another recovery and see if that helps. Lots of different recoveries out there so just make sure the one you try supports your phone.
Sent from my LG-VM670 using XDA App
Of course it supports my phone. I've installed it from ClockWorkMod and chose LGE Optimus One. And it worked a few time before without problems.. :/
Sent from my LG-P500 using Tapatalk
Found this you might try to rebuild your md5smd5s
http://forum.xda-developers.com/showthread.php?t=714114
Hi,
I also got the same problem some time ago. But for me this is because i deleted the ext partition on my phone after the backup has been taken. So i think any hardware changes may result this.
So this might be because I've changed SD-card for flashing another ROM in between?
@kwkbnk : Thanks, but I've already tried this before...
kwkbnk said:
Found this you might try to rebuild your md5smd5s
Click to expand...
Click to collapse
I had this problem on one of my phones. I had deleted one of the files. (an extra sd-ext backup file that I did not need). The first thing that recovery does is check the MD5 sum of all the files. If it can't find one, it just says MD5 does not match and stops. It tries to check all files even if you tell recovery you only want one restored. I fixed it by modifying the nandroid.MD5 file. It is a text file with one line for each file, listing each file's name and its MD5 sum. I just edited the file and removed the line for the missing file and all was well, I was able to restore all the other files with no errors. I also noted that I could remove all the entries so it was an empty file and recovery restored all files without checking MD5s at all. That's not a good idea in case there is a file error, but there may be times when it's necessary.
Where do I find the nandroid.MD5?
Couldn't find it anywhere..
unicycler said:
Where do I find the nandroid.MD5?
Couldn't find it anywhere..
Click to expand...
Click to collapse
Mine was in the same folder that had the img files. Clockworkmod/backup on your SD card. There is a folder inside that for each backup you have made.
EDIT: I just looked at that referenced post above and that script first removes the nandroid.md5 file and then rebuilds a new one. If you got an error and the script did not finish, then there would be no nandroid.md5 file. If you feel brave, you can create an empty nandroid.md5 text file and I believe recovery will skip the md5 check. At least it did for me. That's no worse than building a new one from the files you have with the script. If there was a bad file, recovery would try to install the file anyway since the new md5 sums match.
For me it happen when my memory card storage is low I did a backup.
Sent from my LG-P500 using Tapatalk
I built an empty nandroid.md5 with editor, then it worked again, thanks!!
Sent from my LG-P500 using Tapatalk
Same prob here help?
Sent from my LG Optimus One P500 using XDA App
WhatTheFlash said:
Same prob here help?
Sent from my LG Optimus One P500 using XDA App
Click to expand...
Click to collapse
Just go back and read my last few posts here. It tells you everything you need to know.
WhatTheFlash said:
Same prob here help?
Sent from my LG Optimus One P500 using XDA App
Click to expand...
Click to collapse
You can find the solution a view posts before, as already said.
I've uploaded an empty nandroid.md5 which causes the md5 sum is not checked.
Just copy it into your backup on SD (for example /clockworkmod/backups/2011-12-01.13.55.09).
You can find the MD5 here (xda-attechments don't support .md5-files).
Remember it could crash if your error is not caused by an missing nandroid.md5 .
OMG, helps alot
my eternal thanks
Thx unicycler! Saved me a lot of hours of frustration -I was just about ready to reinstall minicm7 on my X8 when I saw this thread! Your uploaded file fixed it all.
Thank you!!!
Leapinlar, please, can you reupload the MD5? The download link is broken
I will do this evening. Just forgot to do..
Sent from my LG-P500 using Tapatalk

[Q] Generic Imei number

Hi,
for some reason i lost my Imei number. Im not sure when or how, but i would guess it was due to flashing.
Now i do have a backup of my efs folder, but somehow putting that one back doesnt work.
I get the following error in my nv.log:
Backup NV restored.
"MD5 fail. Original MD5 '17f88xxxx etc'
Computed MD5 'fbe9xxxxx etc'
Anybody with a solution to this?
I was thinking it might be because with ICS my radio was changed to the new one, so it makes a different MD5 checksum. Does this make any sence at all?
[edit]
ok this is really weird. Apperently ICS causes this. When i restore a nandroid back to GB and restore my backed up imei files, they stick and i have my imei back. As soon as i go back to ICS the problem is back.
Lowroad said:
Hi,
for some reason i lost my Imei number. Im not sure when or how, but i would guess it was due to flashing.
Now i do have a backup of my efs folder, but somehow putting that one back doesnt work.
I get the following error in my nv.log:
Backup NV restored.
"MD5 fail. Original MD5 '17f88xxxx etc'
Computed MD5 'fbe9xxxxx etc'
Anybody with a solution to this?
I was thinking it might be because with ICS my radio was changed to the new one, so it makes a different MD5 checksum. Does this make any sence at all?
[edit]
ok this is really weird. Apperently ICS causes this. When i restore a nandroid back to GB and restore my backed up imei files, they stick and i have my imei back. As soon as i go back to ICS the problem is back.
Click to expand...
Click to collapse
If you're rooted, use Root Explorer & navigate to efs folder, then delete your nv_data.bin file, then rename your nv_data.bak file to nv_data.bin, therfore changing it from a bak file to a bin file, then reboot & see if this helps! If this fails try this technique here: http://www.youtube.com/watch?v=JqLK_2I-SBM Works with nexus s!
CrackDaddy said:
If you're rooted, use Root Explorer & navigate to efs folder, then delete your nv_data.bin file, then rename your nv_data.bak file to nv_data.bin, therfore changing it from a bak file to a bin file, then reboot & see if this helps! If this fails try this technique here: http://www.youtube.com/watch?v=JqLK_2I-SBM Works with nexus s!
Click to expand...
Click to collapse
thanks for the ideas!
However, i dont have any bak files. I dont think i need them, since i do have the original .bin file.
The original does work, but in ICS it doesnt stick. As soon as i reboot its back to 00049 again.
In GB it does stick, but obviously i prefer to stay on ICS
Very weird problem.. cant be the only one having this issue?
Lowroad said:
thanks for the ideas!
However, i dont have any bak files. I dont think i need them, since i do have the original .bin file.
The original does work, but in ICS it doesnt stick. As soon as i reboot its back to 00049 again.
In GB it does stick, but obviously i prefer to stay on ICS
Very weird problem.. cant be the only one having this issue?
Click to expand...
Click to collapse
You should have bak files!? bak files are for recorded changes! You say you have a backup of your cfs folder? if you do, open that & do as I mentioned, then try repacing that folder with the one on your device, reboot & see if that helps!
CrackDaddy said:
You should have bak files!? bak files are for recorded changes! You say you have a backup of your cfs folder? if you do, open that & do as I mentioned, then try repacing that folder with the one on your device, reboot & see if that helps!
Click to expand...
Click to collapse
Well as I said, i have done that and it does work in ics... Until i reboot. Then its back to 0049...
In gb it does stick after rebooting, which seems strange to me.
not an ideal solution but why not just script the file copy. so when you reboot you dont need to do it manualy...

Best way to backup the EFS folder

So what is the best way to back it up?
Please don't tell me to copy and paste it with a file manager
I hate to tell you this. Copy it with a file manager then transfer it to your computer. It's how you do it.
Honestly I've never had success backing up the efs folder. Every time I tried with any file manager it always failed to copy the IMEI.
Sent from my SGH-T959V using xda app-developers app
cpkelley94 said:
Honestly I've never had success backing up the efs folder. Every time I tried with any file manager it always failed to copy the IMEI.
Click to expand...
Click to collapse
Use Super Manager. I've restored mine with it before.
tar or cpio -- Using zip or anything related to Windows, especially a text editor, is just asking for trouble.
# cd /efs
# tar cvf /sdcard/my_efs_backup.20120816.tar .
then copy my_efs_backup.20120816.tar off your microSD and put it somewhere safe
Jeff... I'm not a Linux guy more of a Windows guy but am I suppose to put that in the terminal on the phone? And hechoen aren't there folder permissions involved when you put back the file?
I know there are apps that backup your efs but can I use them? Also somewhere in a thread there is a flash able zip that backups your efs, can it work with ics
I spent a few bucks and bought root explorer...no problems.
Shortbus-Driver said:
I spent a few bucks and bought root explorer...no problems.
Click to expand...
Click to collapse
Yeah and it also seems that its the only file explorer without the bloat. Its pretty expensive for a simple file explorer.
But well worth it
I find adb a lot easier than the terminal on the phone. It's useful for pushing a file or two to the phone or vice versa without unmounting the microSD. Free too!
Posted from my AOKP-ified SGS4G
Any rom that installs with my aroma installer like most gb roms and a few ics roms make an efs backup in /sdcard/aroma-backup for you.
Also any ics rom that has used the cm9 update.sh script team acid made will back it up for you during the rom install (cm9/aokp).
But how about that flash able zip file from cm7 that backs up your efs folder?
FBis251 said:
Any rom that installs with my aroma installer like most gb roms and a few ics roms make an efs backup in /sdcard/aroma-backup for you.
Also any ics rom that has used the cm9 update.sh script team acid made will back it up for you during the rom install (cm9/aokp).
Click to expand...
Click to collapse
The reason I want to back it up is because I want to flash back to stock using heimdall and there are those times that something could go wrong.
th3controller said:
And hechoen aren't there folder permissions involved when you put back the file?
Click to expand...
Click to collapse
Nope. The folder already has the correct permissions. All you need to do is stitch the system to read/write then paste it back in place. I have used this method so I know it works. I do agree with Jeff though. If you know how to use adb it's a sure fire way to go. Just most users are clueless about it.
hechoen said:
Nope. The folder already has the correct permissions. All you need to do is stitch the system to read/write then paste it back in place. I have used this method so I know it works. I do agree with Jeff though. If you know how to use adb it's a sure fire way to go. Just most users are clueless about it.
Click to expand...
Click to collapse
Lumins guide to using heimdall uses adb right? So can I backup my efs and flash heimdall afterwards correct?
This is the easiest way to make a backup:
http://sourceforge.net/projects/teamacid/files/fb/cwm/cm7-efs-backup.zip/download
Thank FB.
lumin30 said:
This is the easiest way to make a backup:
http://sourceforge.net/projects/teamacid/files/fb/cwm/cm7-efs-backup.zip/download
Thank FB.
Click to expand...
Click to collapse
That's the one I'm talking about! And isn't there another zip to restore the efs folder?
And does it work with ics galaxy s beam?
th3controller said:
That's the one I'm talking about! And isn't there another zip to restore the efs folder?
And does it work with ics galaxy s beam?
Click to expand...
Click to collapse
I just want to say... it is okay to test things out on your own. That is how you learn.
lumin30 said:
I just want to say... it is okay to test things out on your own. That is how you learn.
Click to expand...
Click to collapse
Can you at least please provide the thread that the flash able zip is which is both the efs back up and restore.
Try looking at the url I posted above and see if you can figure out - on your own - how to back in to the folder FB posted both the backup and restore zips.

Categories

Resources