Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,742,696 Members 38,064 Now Online
XDA Developers Android and Mobile Development Forum

Corrupted Nandroid Backups copied back from PC

Tip us?
 
tdunham
Old
(Last edited by tdunham; 5th April 2012 at 01:15 PM.)
#1  
tdunham's Avatar
Recognized Contributor - OP
Thanks Meter 16152
Posts: 7,743
Join Date: Jun 2008
Location: TampaBay
Default Corrupted Nandroid Backups copied back from PC

Does anyone copy their nandroids back and forth to the computer?
I always have to repair the md5 of a nandroid if I copy it back over from the computer. I think the pc is 'converting' something which is corrupting the stored backup during the transfer. (However, with the replaced/repaired checksum, the backups restore and perform just fine)
Adb fixes me up but I'm just curious if the pc transfer is the root of the problem because I can transfer CWM backups between internal/external SD without any issues.

Edit: Occurs on both XP and Windows 7 and also tried different cables.
 
DataHawg
Old
#2  
DataHawg's Avatar
Senior Member
Thanks Meter 767
Posts: 1,578
Join Date: Aug 2010
Location: East Seattle
Quote:
Originally Posted by tdunham View Post
Does anyone copy their nandroids back and forth to the computer?
I always have to repair the md5 of a nandroid if I copy it back over from the computer. I think the pc is 'converting' something which is corrupting the stored backup during the transfer. (However, with the replaced/repaired checksum, the backups restore and perform just fine)
Adb fixes me up but I'm just curious if the pc transfer is the root of the problem because I can transfer CWM backups between internal/external SD without any issues.

Edit: Occurs on both XP and Windows 7 and also tried different cables.
Interesting. It's been a long time since I have done this but I don't recall having any problems with the checksum. How did you repair the MD5 checksum with adb? Did you generate a new valid one and push it into the nandroid file?
 
leaderbuilder
Old
#3  
leaderbuilder's Avatar
Senior Member
Thanks Meter 1233
Posts: 2,279
Join Date: Dec 2007
Location: Somewhere in the dark and wet Northwest.
Quote:
Originally Posted by tdunham View Post
Does anyone copy their nandroids back and forth to the computer?
I always have to repair the md5 of a nandroid if I copy it back over from the computer. I think the pc is 'converting' something which is corrupting the stored backup during the transfer. (However, with the replaced/repaired checksum, the backups restore and perform just fine)
Adb fixes me up but I'm just curious if the pc transfer is the root of the problem because I can transfer CWM backups between internal/external SD without any issues.

Edit: Occurs on both XP and Windows 7 and also tried different cables.
I've noticed that on some too!
What I found is I needed to copy the entire backup folder from the SD card 'into' another folder on the PC and then copy that original folder back. I just have a E4GTbackup folder with dates and ROM names with the sd folder inside them. ie. :\E4GTbackup\Blazer4\04012012\sdcard
My reasoning when file/folders are renamed the name of the file won't affect the checksum, but custom recovery invokes the nandroid-mobile.sh script AND the nandroid-mobile.sh script's ability to actually identify your Nandroid backup files will/maybe the issue.
Even then sometimes (not as often as I used to though) I do have to regenerate the hash.
As for generating a new hash you've obviously got that down but I noticed that many don't know how. I use the terminal emulator app on the device itself. But there are actually applications for novice users that can be had for free or nominal cost available in the android market that can check and/or verify md5 sums. A little research for those not understanding that is a good thing.
Maybe someone else has an idea.
* MK2/NAE ROMs * NAE Modem * 4.3/4.4 Kernels * MF9 Bootloader *

if you've found any of my blathering useful, there is a thanks button that can be hit.
The Following User Says Thank You to leaderbuilder For This Useful Post: [ Click to Expand ]
 
nibrwr
Old
#4  
nibrwr's Avatar
Senior Member
Thanks Meter 286
Posts: 1,344
Join Date: Dec 2010
Location: Oklahoma
If you rename your backup, don't have spaces in the name.
iPhone -> iPhone 3GS -> HTC Evo 4G -> Samsung Epic 4G Touch -> Samsung Galaxy Nexus -> LG Nexus 4 -> Samsung Galaxy Note 2 -> iPhone 5 -> LG Nexus 5
 
tdunham
Old
#5  
tdunham's Avatar
Recognized Contributor - OP
Thanks Meter 16152
Posts: 7,743
Join Date: Jun 2008
Location: TampaBay
Quote:
Originally Posted by DataHawg View Post
Interesting. It's been a long time since I have done this but I don't recall having any problems with the checksum. How did you repair the MD5 checksum with adb? Did you generate a new valid one and push it into the nandroid file?
Delete the original nandroid.md5 with adb and generate a new one.
Commandlines go something like this:
adb shell
cd /sdcard/clockworkmod/backup/2012-03-30-06.39.41
rm nandroid.md5
md5sum *img > nandroid.md5
The Following 2 Users Say Thank You to tdunham For This Useful Post: [ Click to Expand ]
 
tdunham
Old
#6  
tdunham's Avatar
Recognized Contributor - OP
Thanks Meter 16152
Posts: 7,743
Join Date: Jun 2008
Location: TampaBay
Quote:
Originally Posted by leaderbuilder View Post
I've noticed that on some too!
What I found is I needed to copy the entire backup folder from the SD card 'into' another folder on the PC and then copy that original folder back. I just have a E4GTbackup folder with dates and ROM names with the sd folder inside them. ie. :\E4GTbackup\Blazer4\04012012\sdcard
I never rename, just copy to a buried folder somewhere. But I do mirror data to another hard drive because I have so much. I'll have to try leaving it virgin somewhere else and maybe copy it right back so see if it works.
 
blakjak220
Old
#7  
Senior Member
Thanks Meter 11
Posts: 254
Join Date: Sep 2010
Quote:
Originally Posted by nibrwr View Post
If you rename your backup, don't have spaces in the name.
Yeah, done that before and paid the price..lol

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Slide Dial Replacement Dialer Lets You Make Calls from Anywhere

If you frequently make phone calls, your dialer (aka phone app)is one of the … more

Navigate with Your Samsung Gear 2 Using DMA Navi Watch

Whether you’re travelling to a new destination or exploring some previously … more

Xperia Z1 Stereo Speaker Mod, Cell Phone Unlocking Legal Again! – XDA Developer TV

Cell Phone Unlocking is legal again!! That and much … more

[OTA Captured] Verizon LG G Pad 8.3 Finally Gets Official KitKat Update

It’s been almost nine months since the LG G Pad … more