Go Back   Android Forums > Android Phones > Motorola Droid X > Droid X - All Things Root
Droid X - All Things Root Rooting, ROMS, Overclocking, etc.

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

test: Reply
 
LinkBack Thread Tools
Old September 29th, 2010, 06:40 AM   #1 (permalink)
Senior Member
Thread Author (OP)
 
SimsDelt's Avatar
 
Join Date: Aug 2010
Location: Bremen, Georgia
Posts: 1,067
 
Device(s): Motorola Razr Maxx LTE, HP Touchpad
Carrier: Not Provided

Thanks: 35
Thanked 252 Times in 129 Posts
Default MD5 Sum Mismatch

So I installed the new Invernito Theme and didn't like it so I wanted to restore my last nandroid. Now I get a "MD5 Sum Mismatch" when I try to restore. Anyone know why I'm getting this. I unfroze everything I had in TiBu and then restored any .apks that I changed to .bak... just frustrating. When I installed the theme it changed something and made me start getting double messages in Handcent and I wasn't before... I want my nandroid back.

__________________
Motorola Razr Maxx LTE w/ Some Random Custom ROM, whichever is in my crackflasher habit's moment.

SimsDelt is offline  
Reply With Quote
sponsored links
Old September 29th, 2010, 11:35 AM   #2 (permalink)
Senior Member
Thread Author (OP)
 
SimsDelt's Avatar
 
Join Date: Aug 2010
Location: Bremen, Georgia
Posts: 1,067
 
Device(s): Motorola Razr Maxx LTE, HP Touchpad
Carrier: Not Provided

Thanks: 35
Thanked 252 Times in 129 Posts
Default

Wow. 30+ views and no one knows? I loaded Tranquility 2.3.5 back over everything. Instill can't use my old nandroid. But I made a new one just in case. When I loaded tranquility over the theme it killed all of it. Which was exaxctl what I wanted. Still weird that I can't use my old nandroid. Its the same version and everything.
SimsDelt is offline  
Reply With Quote
Old September 29th, 2010, 11:42 AM   #3 (permalink)
Member
 
jdk33's Avatar
 
Join Date: Jul 2010
Location: Flo Rida
Posts: 211
 
Device(s): GT-9500
Carrier: Not Provided

Thanks: 28
Thanked 37 Times in 24 Posts
Default

MD5sum is just a way of checking to ensure a files contents have not changed. When you initially do a Nandroid backup a md5sum is made against the backup. If you ever do a restore the md5sum of the backup will be checked to ensure the backup file is intact and not corrupted. I'd guess something happened on your sdcard that caused the backup to be modified, or the md5sum file was lost .


Searching a bit, this seems to be a common problem. You can try regenerating the md5 hash as indicated in this post:


[How To] Fix md5 mismatch nandroid restore - xda-developers


Just keep this post in mind:

Quote:
Be warned: If the nandroid was legit broken, then this will restore it *anyways* and your system won't boot / will have weird errors / whatever was wrong with the nandroid will be wrong with your system now.

Obviously you can just restore a previous nandroid if that happens.
__________________
D
R
O X 2.2 OTA with root for now.
I
D
jdk33 is offline  
Reply With Quote
The Following User Says Thank You to jdk33 For This Useful Post:
scary alien (September 29th, 2010)
Old September 29th, 2010, 11:52 AM   #4 (permalink)
not really so scary
 
scary alien's Avatar
 
Join Date: Mar 2010
Location: Indy
Posts: 16,616
 
Device(s): LG Nexus 5, Samsung Galaxy Nexus, Asus Nexus 7, Moto Droid X, HTC Droid Eris
Carrier: T-Mobile

Thanks: 30,631
Thanked 14,088 Times in 6,881 Posts
Default

Quote:
Originally Posted by jonathanmsims View Post
So I installed the new Invernito Theme and didn't like it so I wanted to restore my last nandroid. Now I get a "MD5 Sum Mismatch" when I try to restore. Anyone know why I'm getting this. I unfroze everything I had in TiBu and then restored any .apks that I changed to .bak... just frustrating. When I installed the theme it changed something and made me start getting double messages in Handcent and I wasn't before... I want my nandroid back.
Quote:
Originally Posted by jonathanmsims View Post
Wow. 30+ views and no one knows? I loaded Tranquility 2.3.5 back over everything. Instill can't use my old nandroid. But I made a new one just in case. When I loaded tranquility over the theme it killed all of it. Which was exaxctl what I wanted. Still weird that I can't use my old nandroid. Its the same version and everything.
jonathan,

Well, you are getting the MD5 mis-match error because the MD5 checksums in the nandroid.md5 file do not match the checksums of one or more of the system.img, data.img, or boot.img files in your Nandroid's backup directory. Is is possible that, when you made the Nandroid backup, your phone did not have a nearly full charge? This appears to be one of the main reasons for such issues.

I've done a little bit of research on Nandroid issues on the Eris. If you are interested, then check out these threads:

I Messed Up..???

Help please, can't nandroid restore :(

Also, if you interested, I've created an app for checking MD5 (and SHA1) checksums on files that you've downloaded to your phone. It also has a jar-verification function for verifying signed .jar, .zip, .apk files. I'm working on re-vamping the app to make it look a little more professional and add a few, new features to it, but you (and anyone else) can get the app (for free) at:

from XDA: xda-developers - View Single Post - [Begging] Devs - please publish your MD5's

from AF: On-phone ROM Checksum Verifier

Hope this help. Cheers!
scary alien is offline  
Reply With Quote
Old September 29th, 2010, 12:07 PM   #5 (permalink)
not really so scary
 
scary alien's Avatar
 
Join Date: Mar 2010
Location: Indy
Posts: 16,616
 
Device(s): LG Nexus 5, Samsung Galaxy Nexus, Asus Nexus 7, Moto Droid X, HTC Droid Eris
Carrier: T-Mobile

Thanks: 30,631
Thanked 14,088 Times in 6,881 Posts
Default

Quote:
Originally Posted by jdk33 View Post
MD5sum is just a way of checking to ensure a files contents have not changed. When you initially do a Nandroid backup a md5sum is made against the backup. If you ever do a restore the md5sum of the backup will be checked to ensure the backup file is intact and not corrupted. I'd guess something happened on your sdcard that caused the backup to be modified, or the md5sum file was lost .

Searching a bit, this seems to be a common problem. You can try regenerating the md5 hash as indicated in this post:

[How To] Fix md5 mismatch nandroid restore - xda-developers

Just keep this post in mind:
jdk33,

Interesting thread... Yeah, I probably wouldn't restore a Nandroid backup whose checksums didn't match. The non-matching checksums strongly imply to me that either one or more files is incomplete () or that the nandroid-mobile.sh script was unable to properly calcuate the checksums for the *.img files.

Thanks for the interesting info! Cheers!

edit: by the way, post #2 in that thread reported that a space in the Nandroid backup directory's name was the cause of the MD5 mismatch. I'm a little skeptical of this, but I'd be more convinced if this were the case with Jonathan's backup. Typically, the custom recovery (Amon_RA for sure) will simply not be able to find Nandroid backups with spaces in them--don't think the MD5 check would come in to play until it can actually find the backup.

2nd edit: post #15 (xda-developers - View Single Post - [How To] Fix md5 mismatch nandroid restore) does seem to confirm the space-in-the-filename issue...
scary alien is offline  
Last edited by scary alien; September 29th, 2010 at 12:15 PM.
Reply With Quote
Old September 29th, 2010, 12:21 PM   #6 (permalink)
Senior Member
Thread Author (OP)
 
SimsDelt's Avatar
 
Join Date: Aug 2010
Location: Bremen, Georgia
Posts: 1,067
 
Device(s): Motorola Razr Maxx LTE, HP Touchpad
Carrier: Not Provided

Thanks: 35
Thanked 252 Times in 129 Posts
Default

My backup did have "Tranquility(space) 2.3.5" I made a new nandroid where I ran it all together.
SimsDelt is offline  
Reply With Quote
The Following User Says Thank You to SimsDelt For This Useful Post:
scary alien (September 29th, 2010)
Old September 29th, 2010, 12:23 PM   #7 (permalink)
not really so scary
 
scary alien's Avatar
 
Join Date: Mar 2010
Location: Indy
Posts: 16,616
 
Device(s): LG Nexus 5, Samsung Galaxy Nexus, Asus Nexus 7, Moto Droid X, HTC Droid Eris
Carrier: T-Mobile

Thanks: 30,631
Thanked 14,088 Times in 6,881 Posts
Default

Quote:
Originally Posted by jonathanmsims View Post
My backup did have "Tranquility(space) 2.3.5" I made a new nandroid where I ran it all together.
That's gotta be it! Thanks to jdk33 for pointing out the new thread!

Lesson: don't put spaces in your Nandroid backup directory .

I'll be updating my Eris threads tonight...
scary alien is offline  
Reply With Quote
The Following User Says Thank You to scary alien For This Useful Post:
SimsDelt (September 29th, 2010)
Old September 29th, 2010, 12:33 PM   #8 (permalink)
Member
 
jdk33's Avatar
 
Join Date: Jul 2010
Location: Flo Rida
Posts: 211
 
Device(s): GT-9500
Carrier: Not Provided

Thanks: 28
Thanked 37 Times in 24 Posts
Default

Glad we got to the bottom of it.. I'd imagine using spaces in the backup name is a common thing, surprised nandroid doesn't have an error checking routine in place to accomodate that situation.
jdk33 is offline  
Reply With Quote
The Following User Says Thank You to jdk33 For This Useful Post:
SimsDelt (September 29th, 2010)
Old September 29th, 2010, 04:13 PM   #9 (permalink)
not really so scary
 
scary alien's Avatar
 
Join Date: Mar 2010
Location: Indy
Posts: 16,616
 
Device(s): LG Nexus 5, Samsung Galaxy Nexus, Asus Nexus 7, Moto Droid X, HTC Droid Eris
Carrier: T-Mobile

Thanks: 30,631
Thanked 14,088 Times in 6,881 Posts
Default No spaces or ampersands in your Nandroid backup directory name

All,

Just a real-quick heads-up: a member in the Eris forums had put an ampersand (&) in one of his Nandroid backup's directory name. When he went to restore it, it hung and never came back... Removing the ampersand allowed the restore to occur normally.

I suspect that the ampersand was causing the nandroid-mobile.sh script to be launched in the background and would not or could not return its finishing status back to the custom recovery that launched it.

So anyway, avoid using spaces and ampersands in your Nandroid backup's directory names.

Cheers!
scary alien is offline  
Reply With Quote
Old September 29th, 2010, 08:42 PM   #10 (permalink)
Senior Member
Thread Author (OP)
 
SimsDelt's Avatar
 
Join Date: Aug 2010
Location: Bremen, Georgia
Posts: 1,067
 
Device(s): Motorola Razr Maxx LTE, HP Touchpad
Carrier: Not Provided

Thanks: 35
Thanked 252 Times in 129 Posts
Default

I just think you should use no spaces or symbols at all... For Example my last backup was called "Froyo2.3.15" , no spaces.
SimsDelt is offline  
Reply With Quote
sponsored links
Old September 30th, 2010, 08:34 PM   #11 (permalink)
Member
 
Join Date: Apr 2010
Posts: 154
 
Device(s): Droid X - CM7
Carrier: Not Provided

Thanks: 6
Thanked 22 Times in 18 Posts
Default

So making sure I'm reading this right. Renaming your Nandroid to take out the space didn't work or wouldn't work because the nandroid wasn't made correctly because part of the backup scripts couldn't handle the space. Correct?
someotherguy is offline  
Reply With Quote
Old September 30th, 2010, 10:17 PM   #12 (permalink)
not really so scary
 
scary alien's Avatar
 
Join Date: Mar 2010
Location: Indy
Posts: 16,616
 
Device(s): LG Nexus 5, Samsung Galaxy Nexus, Asus Nexus 7, Moto Droid X, HTC Droid Eris
Carrier: T-Mobile

Thanks: 30,631
Thanked 14,088 Times in 6,881 Posts
Default

Quote:
Originally Posted by someotherguy View Post
So making sure I'm reading this right. Renaming your Nandroid to take out the space didn't work or wouldn't work because the nandroid wasn't made correctly because part of the backup scripts couldn't handle the space. Correct?
Actually, the OP (Jonathan) did not indicate that he actually tried to restore the Nandroid backup after removing the space from the Nandroid backup's directory name. Rather, he simply re-ran the backup without a space in the backup's filename.

I pulled-up a version of the nandroid-mobile.sh (v2.2.2) script that is used for the Eris and looked again at the MD5 checking code:

Code:
cd $RESTOREPATH  (i.e., the full /sdcard/nandroid/.... backup directory path)
 
<snip>
 
if [ ! -f $RESTOREPATH/nandroid.md5$DEFAULTEXT ]; then
$ECHO "error: $RESTOREPATH/nandroid.md5 not found, cannot verify backup data"
exit 1
fi
 
<snip>
 
$ECHO "Verifying backup images..."
md5sum -c nandroid.md5
if [ $? -eq 1 ]; then
$ECHO "Error: md5sum mismatch, aborting"
exit 1
fi
As you can see, there is a test to check to see if the nandroid.md5 file exists. I would image that this test would fail if there is a space in the RESTOREPATH variable name (it certainly returns an error status 2 if you try to cd to a directory with a space in it without first escaping each space character).

So, I'm still a little skeptical as to whether or not a space in the filename will lead to an MD5 mismatch error. From what I can tell, it should not. The only scenario that I can imagine is that if the particular version of nandroid-mobile.sh is coded differently from the above and is possibly interpreting an error status from the cd command as an error in the md5sum utility (which I still find unlikely).

If the OP (Jonathan) still has the original Nandroid backup in question, it would be interesting for him to:

- do an adb shell
- cd to the Nandroid backup directory (escaping the space if necessary)
- run md5sum -c nandroid.md5 (or busybox md5sum -c nandroid.md5)

and report what he finds. This would actually tell us if there were MD5 checksum errors in his backup. He also did not indicate if he had a full charge on his phone when the Nandroid backup was made (or when the restore was attempted)--I don't for sure that having a low charge will make the reading from the /sdcard faulty or not (I do know that the nandroid-mobile.sh script will warn you if you attempt a backup or restore with less than 30% charge).

It should look similar to the following:

Code:
# cd /sdcard/nandroid/<your phone's serial #>/BDS-20100821-1454-ieo
# ls
ls
boot.img
system.img
data.img
nandroid.md5
# md5sum -c nandroid.md5
md5sum -c nandroid.md5
boot.img: OK
data.img: OK
system.img: OK
# busybox md5sum -c nandroid.md5
busybox md5sum -c nandroid.md5
boot.img: OK
data.img: OK
system.img: OK
Jonathan, you game?
scary alien is offline  
Last edited by scary alien; September 30th, 2010 at 10:23 PM.
Reply With Quote
Old September 30th, 2010, 10:36 PM   #13 (permalink)
not really so scary
 
scary alien's Avatar
 
Join Date: Mar 2010
Location: Indy
Posts: 16,616
 
Device(s): LG Nexus 5, Samsung Galaxy Nexus, Asus Nexus 7, Moto Droid X, HTC Droid Eris
Carrier: T-Mobile

Thanks: 30,631
Thanked 14,088 Times in 6,881 Posts
Default tested restore with a space in the Nandroid directory's filename

By the way, I just did a test (on my Eris) where I created a Nandroid backup, changed the backup directory from "BDS-20101001-0323" to "BDS-20101001 0323" (i.e., replaced the second dash with a space) and attempted a Nandroid restore.

I did not receive an MD5 mismatch error, rather, I received the usual "Error: run 'nandroid-mobile.sh restore' via adb!" error instead. This is exactly what I would expect based on how the script and Amon_RA's recovery is coded.

Cheers!
scary alien is offline  
Reply With Quote
Old April 3rd, 2011, 07:58 PM   #14 (permalink)
not really so scary
 
scary alien's Avatar
 
Join Date: Mar 2010
Location: Indy
Posts: 16,616
 
Device(s): LG Nexus 5, Samsung Galaxy Nexus, Asus Nexus 7, Moto Droid X, HTC Droid Eris
Carrier: T-Mobile

Thanks: 30,631
Thanked 14,088 Times in 6,881 Posts
Default

Jonathan,

Sorry to dredge-up such an old thread, but I saw your new thread tonight re. your Nandroid restore question and it made me remember about what I had posted here way back in September.

I wanted to apologize since my last couple of posts here said that the issue you were having was due to a true MD5 mismatch (i.e., bad files) in your Nandroid.

Subsequent testing (see this post if you want (warning, its a "TL;DR" type of deal ): verify your file's MD5 checksums!) has revealed that ClockworkMod will indeed return an "MD5 mismatch" error for a Nandroid backup directory that contains spaces (or other wonky characters).

The reason for this is that it tries to the MD5 checksum calculation (via the md5sum -c command), but since the directory name contains spaces and cannot be properly parsed when passed from custom recovery to the nandroid-mobile.sh script, it cannot find the nandroid.md5 file, but complains with the "MD5 mismatch" instead of something more useful like "can't find nandroid.md5" . Amon_RA custom recovery gets the same error, but does not report it.

Anyway, apologies and I hope someone will chime-in to your newest thread and help you out.

Cheers!
scary alien is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Phones > Motorola Droid X > Droid X - All Things Root
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:03 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.