[script] MD5sum mismatch fix for CWM backups - XPERIA X8 Android Development

What is md5sum??
http://154.ca/otr/iso/md5sum.shtml
Md5mismatch occurs when md5sum of files does not match the value stored in nandroid.md5.
I created this script because my backups gets corrupted often..
Instructions
Rename md5fix.sh.txt to md5fix.sh
Place md5fix.sh in root of your sdcard
Run it using script manger
Done
Disclaimer
Do it at your own risk
MD5 mismatch means the file has been altered. You have been warned.
greetings lj

Good work bro
Sent from my X8 using Tapatalk 2

i often mismatch the md5 in nandroid
then accindentally,, i know why
because i use a space(s) when rename the folder
just rename it again
an viola
md5 matched
cmiiw

qzxi said:
i often mismatch the md5 in nandroid
then accindentally,, i know why
because i use a space(s) when rename the folder
just rename it again
an viola
md5 matched
cmiiw
Click to expand...
Click to collapse
just dont rename ur backup at pc (when ur phone connect usb)...rename ur backup at phone (unplug usb)
-sorry for my bad english-

fjw0803 said:
just dont rename ur backup at pc (when ur phone connect usb)...rename ur backup at phone (unplug usb)
-sorry for my bad english-
Click to expand...
Click to collapse
i dont think so bro
sometimes i rename at pc
and its all ok as long as no space

hmm...in my experiences, renamed backup at pc always without space..n then get missmatch too..i dont know why..
-sorry for my bad english-

fjw0803 said:
hmm...in my experiences, renamed backup at pc always without space..n then get missmatch too..i dont know why..
-sorry for my bad english-
Click to expand...
Click to collapse
use only latin letters and numbers and do not start name from number

Related

[Q] recovery not working and some files missing may be ?????

i am using cynogenmod 7 on my sgs2 i backed up my rom via cwm recovery
i need to recover because all of my contacts were wipped and my pc crashed and had to format it so i lost the backup of my all contacts
so now i have this files in my backup folder
1- ".android_secure.vfat.tar " it is 605mb
2- "boot.img" it is 8mb
3- "data.ext4.tar" 887mb
4- "system.ext4.tar" 482mb
and wen i try to restore it shows md5 file missing and i have seen the posts which are there so i also tried it in terminal emulater i used the given commands but it did not work it said not found i tried adb shell it said not found
then at first su
it worked it gave me"#" this sign then again i did adb shell it showed again not found then i did the cd given codes in that also it said not found please help me
ps: i am new to all this so please help and please be as simple as u can
thank you in advance
CWM recovery should work if you have the exact same CWM recovery you used to backup with .
jje
Thanks but i already did that i used the same version of cwm recovery it is showing the missing files error
ralphrss said:
Thanks but i already did that i used the same version of cwm recovery it is showing the missing files error
Click to expand...
Click to collapse
Try creating a blank nandroid.md5 file with notepad and then place the same in the backup folder and then try restoring backup.
hope this helps!
ksantoshh said:
Try creating a blank nandroid.md5 file with notepad and then place the same in the backup folder and then try restoring backup.
hope this helps!
Click to expand...
Click to collapse
how do i do that exactly please give me some pointers and my note pad does not have the option of md5 files if u have it can u make me a copy of blank nandroid or tell me how to make it please and thankyou
Try Copy MD5 to desktop open with notepad delete contents and close and save . jje
JJEgan said:
Try Copy MD5 to desktop open with notepad delete contents and close and save . jje
Click to expand...
Click to collapse
i am missing the md5 file
i only have the four files which are given above which is in the first post
so can you please tell me how to make the new md5 file
ralphrss said:
how do i do that exactly please give me some pointers and my note pad does not have the option of md5 files if u have it can u make me a copy of blank nandroid or tell me how to make it please and thankyou
Click to expand...
Click to collapse
just save as .txt then change the extension to md5 using file explorer or similar.
if you long press on a file in file explorer it should popup with some options. Select rename and change the extension from txt to md5
ozzy lion said:
just save as .txt then change the extension to md5 using file explorer or similar.
if you long press on a file in file explorer it should popup with some options. Select rename and change the extension from txt to md5
Click to expand...
Click to collapse
i will try it will let you know if it worked or not
worked like a charm
For future, you realize your contacts auto sync to gmail.....
Sent from my GT-I9100 using Tapatalk 2

Renamed Nandroid backup, can't restore

So, I wanted to rename my Nandroid backup folder name so it could be easier to know which file is what. However, I didn't knew this was going to cause MD5 mismatch problem.
So, there is anyway to me to recover my backup folder name and restore my backup?
EDIT: Forget i. I just had to put no spaces between the letters.
Felimenta97 said:
So, I wanted to rename my Nandroid backup folder name so it could be easier to know which file is what. However, I didn't knew this was going to cause MD5 mismatch problem.
So, there is anyway to me to recover my backup folder name and restore my backup?
EDIT: Forget i. I just had to put no spaces between the letters.
Click to expand...
Click to collapse
Didnt know that, good to know
Felimenta97 said:
So, I wanted to rename my Nandroid backup folder name so it could be easier to know which file is what. However, I didn't knew this was going to cause MD5 mismatch problem.
So, there is anyway to me to recover my backup folder name and restore my backup?
EDIT: Forget i. I just had to put no spaces between the letters.
Click to expand...
Click to collapse
If it happens again all you have to do is change de md5 values in the file nandroid.md5 (located in the backup folder) with the correct values for each file.
But only do that if you are sure that the backup files are not corrupted.
cafrocha said:
If it happens again all you have to do is change de md5 values in the file nandroid.md5 (located in the backup folder) with the correct values for each file.
But only do that if you are sure that the backup files are not corrupted.
Click to expand...
Click to collapse
In case anyone finds this off a search, I had the same problem. If manually rehashing the .img files (http://forum.xda-developers.com/showthread.php?t=714114) doesn't work, make sure the folder name you used doesn't have spaces. I renamed the folder with underscores, problem was fixed.

restore org rom using cwm

hi all
i did odin and cwm my att not,...did back up thru cwm....got the file under backup dir of cem file with the dat and time as the name of file....then i rename it to samsungorg so i can remember that the original rom.... now when i restore that file it gave me error with md5 sum....can anyone show me how to get restore that orginal file ...
thanks a lot
hoangtransport said:
hi all
i did odin and cwm my att not,...did back up thru cwm....got the file under backup dir of cem file with the dat and time as the name of file....then i rename it to samsungorg so i can remember that the original rom.... now when i restore that file it gave me error with md5 sum....can anyone show me how to get restore that orginal file ...
thanks a lot
Click to expand...
Click to collapse
First be sure there are no spaces when you renamed the file. Then you can check out this post on repairing md5 sum errors. I think they get corrupted when copied from PC to phone.
http://forum.xda-developers.com/showthread.php?t=714114
You have to rename the file back to its original name.
rsfinsrq said:
First be sure there are no spaces when you renamed the file. Then you can check out this post on repairing md5 sum errors. I think they get corrupted when copied from PC to phone.
http://forum.xda-developers.com/showthread.php?t=714114
Click to expand...
Click to collapse
thanks space is the problem... beside i try to rename the file to original name... problem is "can't remember the name" so i look at the file property and figure out the name of the file is the date and time when backup....be able to get it back up... thansk all again....

Help deleting cwm backups

I have es file explorer and can't find cwm to delete some backups or even rename them
Sent from my SAMSUNG-SGH-I717 using xda premium
harley1rocker said:
I have es file explorer and can't find cwm to delete some backups or even rename them
Sent from my SAMSUNG-SGH-I717 using xda premium
Click to expand...
Click to collapse
First off, don't rename a cmw backup... trust me, if you rename the zip it will cause an md5 mismatch when you try and restore and that always tends to happen when ya need it most.
Second the file you are looking for is either on your SD or your internal storage, the file si called clockworkmod or something like that, inside you will see a file labled backup. Delete as you will, but I always tend to transfer said files onto my pc and title an individual folder for each file, there for eliminated the irritation of md5 mismatch.
celkin said:
First off, don't rename a cmw backup... trust me, if you rename the zip it will cause an md5 mismatch when you try and restore and that always tends to happen when ya need it most.
Second the file you are looking for is either on your SD or your internal storage, the file si called clockworkmod or something like that, inside you will see a file labled backup. Delete as you will, but I always tend to transfer said files onto my pc and title an individual folder for each file, there for eliminated the irritation of md5 mismatch.
Click to expand...
Click to collapse
That's what I'm sayin . There is no clockwork mod folder. I do have it installed though. Thanks for the info. I didn't know that would mismatch the md5
harley1rocker said:
That's what I'm sayin . There is no clockwork mod folder. I do have it installed though. Thanks for the info. I didn't know that would mismatch the md5
Click to expand...
Click to collapse
You should be able to restore the folder , by booting into recovery , and running a new backup.
This will force place a new backup file to the SD card in the proper location.
If this does not work , or the backup fails to run, you must reflash the recovery using Odin ....g
you are using cwm and not twrp right? if using twrp the backups are in folder named twrp on internal or external which ever one you specified when backing up.
/sdcard/clockworkmod/backup
/sdcard/external_sd/clockworkmod/backup
Are you rooted?
Are you on a stock-based rom and not a CM-based rom?

[script] MD5sum mismatch fix for CWM backups

What is md5sum??
http://154.ca/otr/iso/md5sum.shtml
Md5mismatch occurs when md5sum of files does not match the value stored in nandroid.md5.
I created this script because my backups gets corrupted often..
Instructions
Rename md5fix.sh.txt to md5fix.sh
Place md5fix.sh in root of your sdcard
Run it using script manger
Done
Disclaimer
Do it at your own risk
MD5 mismatch means the file has been altered. You have been warned.
greetings lj
Or you can make a blank text document and rename to nandroid.md5 (0 byte)
This way CWM bypasses md5 check and restore your backups immediately
how do you run scrip manager if you phone doesnt boot up and you need to do a restore
XperiaNeoLHelp said:
how do you run scrip manager if you phone doesnt boot up and you need to do a restore
Click to expand...
Click to collapse
hahaha thats a script not a Tweak that run while phone is off...
XperiaNeoLHelp said:
how do you run scrip manager if you phone doesnt boot up and you need to do a restore
Click to expand...
Click to collapse
use adb then type that script...
mrworldwide092 said:
Rename md5fix.sh.txt to md5fix.sh
Click to expand...
Click to collapse
Where to do this?
On the PC? On the Android device?
Can you please give the full path of this file?
Mazarin07 said:
Where to do this?
On the PC? On the Android device?
Can you please give the full path of this file?
Click to expand...
Click to collapse
Rename it...
Move it to the sd-card of your phone...
Still getting a MD5 mismatch :/
dont use that script it will deform your phone sdcard...
R3v3nGe said:
dont use that script it will deform your phone sdcard...
Click to expand...
Click to collapse
...what?
DustArma said:
...what?
Click to expand...
Click to collapse
i open the root explorer app then all system folders are renamed to Blahblah.cache so i reflash MiniCM7 because of that script thats my warning to all users, "test it before using"

Categories

Resources