Related
I recently recently backed up my phone (on midNIGHT ROM 5.3 EXT4 - Froyo EC05) using CWM 3.0.2.5. Then, I reformatted my phone to RFS to try out an Gingerbread EE05 ROM. Then, I Odin'd back to stock EC05 (RFS), reinstalling CWM with the One-Click method, and restoring my backup image. CWM keeps telling me that my boot images (even an image made previously) were having problems restoring after checking the MD5 Checksums.
I dig some digging and found an How-To for extracting the backup image:
[How-To] Extracting/Accessing Recovery/Nandroid backup (.img) files
Now for the questions:
1. I know that the backup images are somewhere on the SD card. Does anyone know the specific location?
2. Does anyone know of a way to repack the information (data.img / cache.img / system.img) into a proper backup image for restoration?
3. Does anyone know how to modify the backup image so that the MD5 checksums are proper once again?
The backups are under clockworkmod and then click backups. That is where your backups are stored
"The greatest respect you can earn is self respect" Louie Simmons
After checking in the backup sub-folders of clockworkmod, I see that the cache.img, data.img, and system.img are already separated. However, I also see a .android_secure.img file. What is that supposed to be used for?
Also, is there any way to change the accompanying nandroid.md5 file to properly restore with CWM? Is there any way to verify that it works aside from pure iteration in CWM?
if its failing the md5 check you dont need to mess with any of that its a simple fix
in a shell goto the disrectory of the backup
md5sum *img > nandroid.md5
Click to expand...
Click to collapse
then after you run that you will be able to restore it in cwm
ohh and .android_secure is the apps stored on your sdcard
chris41g said:
if its failing the md5 check you dont need to mess with any of that its a simple fix
in a shell goto the disrectory of the backup
Code:
md5sum *img > nandroid.md5
then after you run that you will be able to restore it in cwm
ohh and .android_secure is the apps stored on your sdcard
Click to expand...
Click to collapse
Windows Command Prompt doesn't recognize md5sum as a command. Do I need a program in that same directory for working on the md5 file?
Dante of the Inferno said:
Windows Command Prompt doesn't recognize md5sum as a command. Do I need a program in that same directory for working on the md5 file?
Click to expand...
Click to collapse
in a shell on your phone...
from a windows shell c:\whatever\>
Code:
adb shell
then from the shell on your phone $
Code:
cd /sdcard/clockworkmod/backup/whateverbackup/
md5sum *img > nandroid.md5
I downloaded a shell terminal onto the phone, navigated to the backup, and input the code. It paused for a minute, but seemed to do its thing. I shut down the phone, went into CWM, cleared the data, cache, and Dalvik, and hit the restore option for the proper backup. This is what follows.
Checking MD5 sums...
Erasing boot before restore...
Restoring boot image...
Error while flashing boot image!
Any other ideas? If worst comes to worst, the only thing worth saving would be the apps themselves. So should I focus on extracting the apps out of the .android_secure image?
Do advanced restore, that's not a 3.0.25 backup so advanced restore each part individually
Sent from my SPH-D700 using XDA App
Dante of the Inferno said:
I downloaded a shell terminal onto the phone, navigated to the backup, and input the code. It paused for a minute, but seemed to do its thing. I shut down the phone, went into CWM, cleared the data, cache, and Dalvik, and hit the restore option for the proper backup. This is what follows.
Checking MD5 sums...
Erasing boot before restore...
Restoring boot image...
Error while flashing boot image!
Any other ideas? If worst comes to worst, the only thing worth saving would be the apps themselves. So should I focus on extracting the apps out of the .android_secure image?
Click to expand...
Click to collapse
Are you using 3-finger method to boot into CWM?
Hey ,,
I have HTC Desire with s-off and 2.3.3 custom ROM.
I woke up and the phone was freezing ,, take the battery out and start the phone it is not working - freezing after a few seconds -. I toke a backup , then, wipe all data .. It works ,, when I restore my backup it not working ,, Freezing on "Why so serios?" screen. try I again to restore it says there is a problem with md5 file .. I compare old update with the new there is a file missing "nandroid.md5" I copied it from old update to the new one ,, the same problem with md5 .. I opened it .. it has "
14fa55a021bf4d27d9c9f2f26b4f832d boot.img
db8dd13c067592b11a3e657737eb9d2c cache.img
97d100af63d227762276163a57263977 data.img
c3c1ed764a5d0c830d36ed5a262836c3 recovery.img
8d523becbc91b3b4c406775e9e39b384 sd-ext.img
c64cd9c27cd00d8eaf3bb5e890b0ad58 system.img
"
I get the md5 for the new update and edit the file nandroid.md5 .. It not working
I have very importance messages ..
What can I do ??
Thanks .. sorry for my bad language.
ok so you have no nandroid md5 file?? Do you have a pc backup of your backup?
If not, you should
I was going to suggest md5 mismatch but since the file is missing it must be a bad backup - are you using CWM recovery by any chance?
Do you have a pc backup of your backup?
Click to expand...
Click to collapse
Do you mean I copied the backup from SDCard to PC. If you mean that . YES I have ..
I'm using CWM.
SHS2000 said:
Do you mean I copied the backup from SDCard to PC. If you mean that . YES I have ..
I'm using CWM.
Click to expand...
Click to collapse
Firstly, this has only happened to me using CWM so I recommend swapping to Amon-RA - which I've never had a single issue with...
BUT BE AWARE - YOU CANNOT RESTORE A CWM BACKUP WITH AMON-RA OR VICE VERSA
If your pc backup is up to date enough could you not restore that backup to get your data back? Or is the nandroid.md5 missing from there too?
BigMrB said:
Firstly, this has only happened to me using CWM so I recommend swapping to Amon-RA - which I've never had a single issue with...
BUT BE AWARE - YOU CANNOT RESTORE A CWM BACKUP WITH AMON-RA OR VICE VERSA
If your pc backup is up to date enough could you not restore that backup to get your data back? Or is the nandroid.md5 missing from there too?
Click to expand...
Click to collapse
Hey .. I have fixed the md5 file .. Now when I restore the last backup It restored but the phone freezing on Why so serios?" screen. I tried to restore only data by Advanced restore the phone restarting on HTC screen. it no restart from the beginning only HTC screen.
the update that on my PC is not up to date enough. the important messages not in it.
I will travel in two days . I have to get the messages
waiting your answer
Do you not have scheduled Titanium backups?
If your backup is corrupt you may be screwed .... are you talking about text messages that are so important? Recieved or sent?
With vodafone i can see all txt messages ive sent out on my online account don't know if you can do something similar?
When you say you have fixed the md5 file... do you mean you had an md5 mismatch?
He had a mismatch. Not sure how he "fixed" it.
Easy to fix takes 20 seconds in terminal emulator... but if his phone won't boot.... lol
Everytime I fix a mismatch it worked fine after
BigMrB said:
Easy to fix takes 20 seconds in terminal emulator... but if his phone won't boot.... lol
Everytime I fix a mismatch it worked fine after
Click to expand...
Click to collapse
Oh cool. Can you let me know how please?
adb shell
# cd /sdcard/clockworkmod/backup/2010-06-29.20.22.53
# rm nandroid.md5
# md5sum *img > nandroid.md5
BigMrB said:
adb shell
# cd /sdcard/clockworkmod/backup/2010-06-29.20.22.53
# rm nandroid.md5
# md5sum *img > nandroid.md5
Click to expand...
Click to collapse
Hey ..
Yes, Text messages received and sent. We don't have a service to see them online.
I fixed it but not like you.
I replaced the backup files except nandroid.md5 . then I opened "nandroid.md5" and change the md5 for files.
"
[email protected]:~$ cd Desktop/01-09-2011.0050
[email protected]:~/Desktop/01-09-2011.0050$ md5sum data.img
97d100af63d227762276163a57263977 data.img
"
I did this for all files ...
Now when I restore the backup It won't boot
what can I do ..
BigMrB said:
adb shell
# cd /sdcard/clockworkmod/backup/2010-06-29.20.22.53
# rm nandroid.md5
# md5sum *img > nandroid.md5
Click to expand...
Click to collapse
Ah Right. Thanks. So by fixing it, you're creating a new MD5 checksum for the files.
---------- Post added at 04:38 PM ---------- Previous post was at 04:36 PM ----------
SHS2000 said:
Hey ..
Yes, Text messages received and sent. We don't have a service to see them online.
I fixed it but not like you.
I replaced the backup files except nandroid.md5 . then I opened "nandroid.md5" and change the md5 for files.
"
[email protected]:~$ cd Desktop/01-09-2011.0050
[email protected]:~/Desktop/01-09-2011.0050$ md5sum data.img
97d100af63d227762276163a57263977 data.img
"
I did this for all files ...
Now when I restore the backup It won't boot
what can I do ..
Click to expand...
Click to collapse
There is obviously some sort of data corruption. If you havent got a titanium backup of it or anything, I'm afraid to say you may be screwed. You could try to use unyaffs to unpack the data image on a computer and browse the files.
http://code.google.com/p/unyaffs/
Sms should be somewhere like:
Code:
/data/data/com.android.providers.telephony/databases/mmssms.db
rootSU said:
Ah Right. Thanks. So by fixing it, you're creating a new MD5 checksum for the files.
---------- Post added at 04:38 PM ---------- Previous post was at 04:36 PM ----------
There is obviously some sort of data corruption. If you havent got a titanium backup of it or anything, I'm afraid to say you may be screwed. You could try to use unyaffs to unpack the data image on a computer and browse the files.
http://code.google.com/p/unyaffs/
Sms should be somewhere like:
Code:
/data/data/com.android.providers.telephony/databases/mmssms.db
Click to expand...
Click to collapse
Unfortunately I don't have titanium backup at all, so Don't be a afraid say it.
I didn't know how to use unyaffs.
The only other option i could see....
Data recovery from sd card, I did this last week and it took about 10 hours!! And took a long time piecing all the info together... don't get the raw data though because that would take 70 + hours lol
SHS2000 said:
Unfortunately I don't have titanium backup at all, so Don't be a afraid say it.
I didn't know how to use unyaffs.
Click to expand...
Click to collapse
Its easy
Code:
mkdir /home/moj/android/
Download it to that new directory and also put your data.img in there:
http://code.google.com/p/unyaffs/downloads/list
download all 3 files and use the command it says to use in Terminal on ubuntu
Code:
gcc -o unyaffs unyaffs.c
then:
Code:
./unyaffs /home/moj/android/data.img
rootSU said:
Its easy
Code:
mkdir /home/moj/android/
Download it to that new directory and also put your data.img in there:
http://code.google.com/p/unyaffs/downloads/list
download all 3 files and use the command it says to use in Terminal on ubuntu
Code:
gcc -o unyaffs unyaffs.c
then:
Code:
./unyaffs /home/moj/android/data.img
Click to expand...
Click to collapse
Thanks,,
I extract the files.
How can I restore the messages to phone ???
and how can I repackage it ?
Just flash the Rom and do a data wipe. You're not going to be restoring that, but you can at least copy the data into the same place on your fresh install.
Sent from my HTC Desire using XDA App
Or use a working nandroid
Edit> When do I get to know if this fixed it?
Sent from my HTC Desire using XDA App
After Two days ... It restored
Thank you very much ...
So, many of you probably faced the issue, when you tried to restore your CWM backup, that the recovery says MD5 mistmach, and will do nothing. The problem is now solved, and was solved, so I'm not the one, who made thing possible, I'm just porting this to the V.
So, the problem (in my iterations at least) are based on the /cache/ cannot be mounted error, which is common in the V. For why is that, I simply don't have a clue, but it is present. Because of this, the backup won't be full, and thus, the md5 image won't be made for the recovery, so cannot be recovered as is.
But happily you can make an md5 image from the backup yourself, and thus recover your backup.
WARNING!
I'm no dev, just someone, that knows linux.
If you follow this path, you do it on your own. I'm not responsible for bricked devices, lost data or whatsoever, including the future the past and the present.
Click to expand...
Click to collapse
There are three ways for you, to make an md5 sum of the img files, the good and the bad one and also the quoted one:
One (the good)
For this, you will need adb, root, and a working android. Yo don't have it? Here you go.
Go to the directory, were you have adb (or have extracted adb.exe, suggested c:\htc\), then plug in your phone (just for charge, no data connection), open terminal (syntax: cmd) then type in:
adb shell
this will get you to the phone's terminal
if you have # at the end of the line, you are good to go, if not, then type su
The syntaxes needed:
cd /sdcard/clockworkmod/backup/{recovery_timestamped_directory} <- this is from your backup, so you need to fill in appropirate data
md5sum *img > nandroid.md5
Click to expand...
Click to collapse
This will make an md5 image with the name that cwm acknowledges.
Two (the bad one)
So, you'we fired your ROM, cannot even boot, but cwm comes in. Than this is for you. There are programs (e.g. total commander) which can make md5 images. So if you have your backup folder, just go into it (sd card reader is preferred). You will see something like this in it:
.android_secure.vfat.tar
boot.img
data.ext4.tar
{nandroid.md5}
recovery.img
system.ext4.tar
Click to expand...
Click to collapse
sidenote:
If you have the nandroid.md5 and you cannot recover, don't try to recover from it!!!
The image itself is corrup, you have no luck, try RUU. (you can recover if you delete the md5 and create a new, but it is not really recommended)
1.
So, there are 2 .img files, highlight them in totalcommander. go to file->create checksum files
2.
tick in md5, then ok
3.
No, you're not done
open the md5 file in text editor, and remove the * 's from before the file names.
4.
Rename the file to nandroid.md5
5.
Now you're done, go to cwm, then recover.
Three (the quoted one)
Also on the 2nd page you will find an alternative solution for the problem which can help you if you have got busybox installed on your device.
The solution resembles the One type of fix, so with quotes here's the one (thanx for Meeshka for it).
Meeshka said:
For those who keep getting "md5sum not found" both in adb and in android terminql on device:
try instead
# busybox md5sum *img > nandroid.md5
worked for me
Click to expand...
Click to collapse
If I helped, don't hesitate to push the Thanks button.
Thanks... a very useful guide. Bookmarked
WORKED!!! Tho I'm from a different device the first (adb) method saved my AOKP backup!!! Daysaver I'd say!!
I keep getting "md5sum: not found"
Put this in the general android section as it works across most devices. ..
Sent from my One V
Nevell said:
I keep getting "md5sum: not found"
Click to expand...
Click to collapse
if you send me the 2 img files i can create an appropirate md5 image of them, but send the one you did, so I can guess what the problem is.
send them to the email of my usr here, or in pm. and mainly, the md5 image has the name "nandroid.md5" like small caption all the way, even the md5? If it is there where it must, it must work, ad absurd it will be "wrong checksum error", but that is another version.
General android section has this, I have learned this from there, but it had only 1st option, and was "discovered" when cwm had generated wrong md5s, the V, in the V the problem is a tad bit different, but the solution is the same.
I fixed it in adb
Sent from my SPH-L710 using xda premium
Nevell said:
I fixed it in adb
Sent from my SPH-L710 using xda premium
Click to expand...
Click to collapse
Can you explain what did you do to fix md5sum: not found error??
please i need it!
thatsgamer said:
Can you explain what did you do to fix md5sum: not found error??
please i need it!
Click to expand...
Click to collapse
Just created an md5sum manualy from the img files with the name of nandroid.md5, because on the V the recovery doesn't creates them because of cache mount problem.
The recovery process will end in an error message, because cache cannot be recovered, but the main thing will be recovered this way.
i have one x and i can't put sdcard in to card reader because one x dose not have sd card... and i cant fix it whit first solution because i cant acces my phone
haky1988 said:
i have one x and i can't put sdcard in to card reader because one x dose not have sd card... and i cant fix it whit first solution because i cant acces my phone
Click to expand...
Click to collapse
See : http://forum.xda-developers.com/showpost.php?p=32248108&postcount=7
unfortunately none of the methods described in the first post have worked for me, at the first one i got an "unable to write, source is read-only" error, and the second one failed from the first try
after almost giving up and beginning to deal with the idea of loosing my backups, i found this topic and in 10 secs it got the job done, now i'm back on my latest cwm backup
CWM showing different versions
-Delete-
maranello69 said:
unfortunately none of the methods described in the first post have worked for me, at the first one i got an "unable to write, source is read-only" error, and the second one failed from the first try
after almost giving up and beginning to deal with the idea of loosing my backups, i found this topic and in 10 secs it got the job done, now i'm back on my latest cwm backup
Click to expand...
Click to collapse
You do know that the first method is exactly like the one you linked right?
Aside that, I'm happy that the community could help you out
Loir can u help me. I can't locate the boot.img inside the downloads for cyanogen mod u provided. Forgive me but can you post a directory to this kernel file? Tks
Sent from my HTC Desire X using xda app-developers app
Thank you so much. You saved my phone.
For those who keep getting "md5sum not found" both in adb and in android terminql on device:
try instead
# busybox md5sum *img > nandroid.md5
worked for me
no * 's
Ken-Shi_Kun said:
So, many of you probably faced the issue, when you tried to restore your CWM backup, that the recovery says MD5 mistmach, and will do nothing. The problem is now solved, and was solved, so I'm not the one, who made thing possible, I'm just porting this to the V.
So, the problem (in my iterations at least) are based on the /cache/ cannot be mounted error, which is common in the V. For why is that, I simply don't have a clue, but it is present. Because of this, the backup won't be full, and thus, the md5 image won't be made for the recovery, so cannot be recovered as is.
But happily you can make an md5 image from the backup yourself, and thus recover your backup.
There are two ways for you, to make an md5 sum of the img files, the good and the bad one:
One (the good)
For this, you will need adb, root, and a working android. Yo don't have it? Here you go.
Go to the directory, were you have adb (or have extracted adb.exe, suggested c:\htc\), then plug in your phone (just for charge, no data connection), open terminal (syntax: cmd) then type in:
adb shell
this will get you to the phone's terminal
if you have # at the end of the line, you are good to go, if not, then type su
The syntaxes needed:
This will make an md5 image with the name that cwm acknowledges.
Two (the bad one)
So, you'we fired your ROM, cannot even boot, but cwm comes in. Than this is for you. There are programs (e.g. total commander) which can make md5 images. So if you have your backup folder, just go into it (sd card reader is preferred). You will see something like this in it:
sidenote:
If you have the nandroid.md5 and you cannot recover, don't try to recover from it!!!
The image itself is corrup, you have no luck, try RUU. (you can recover if you delete the md5 and create a new, but it is not really recommended)
1.
So, there are 2 .img files, highlight them in totalcommander. go to file->create checksum files
2.
tick in md5, then ok
3.
No, you're not done
open the md5 file in text editor, and remove the * 's from before the file names.
4.
Rename the file to nandroid.md5
5.
Now you're done, go to cwm, then recover.
If I helped, don't hesitate to push the Thanks button.
Click to expand...
Click to collapse
in 3. it says to remove the * *'s, but i don't see any, so i was wondering should i leave that be or if im doing something wrong.
Beastben13 said:
in 3. it says to remove the * *'s, but i don't see any, so i was wondering should i leave that be or if im doing something wrong.
Click to expand...
Click to collapse
I have done the thing with a legacy tcmd, so there is a probability, that they have modified the md5sum algorithm, so if you don't se the stars don't panic. (also it should do the trick even with stars in the file, but wanted to be sure at the time I wrote the post)
plz provide touch recovery for karbon a9+ plz and ther is bugs in cwm recovery 5.0.2.8 plz
ok so im having problem trying to flash C-rom series. How do i flash this rom?
There are two parts that we are suppose to download, the zip file and md5 file.
how do i go ahead and flash this?
i went to recovery mode and tried to install the zip file but didnt work, it said md5 file is missing.
are we suppose to merge those files together first? and create new zip file and then flash it?
Ive seen a lot of roms not include an md5sum. But usually they will still flash. Check the settings in recovery to make sure its not requiring it. The md5 isnt an extra file, its a value based on a hash of the file itself which is them embedded into the files properties if im not mistaken. Its done to ensure file/download integrity. Anyway, you should be able to turn it off somewhere in recovery.
DocHoliday77 said:
Ive seen a lot of roms not include an md5sum. But usually they will still flash. Check the settings in recovery to make sure its not requiring it. The md5 isnt an extra file, its a value based on a hash of the file itself which is them embedded into the files properties if im not mistaken. Its done to ensure file/download integrity. Anyway, you should be able to turn it off somewhere in recovery.
Click to expand...
Click to collapse
thanks a lot for on time reply's! yes md5 is not really required i guess after all. I was able to flash the C-rom series. thanks again!
I want to update LineageOS and created a backup before attempting the update. Unfortunately the MD5 checksums of the the data partition files data.ext4.win000 and data.ext4.win001 don't check out. Even after several tries.
Is anyone else having this problem?
My TWRP Version is 3.1.1-0-0
seesawCharli said:
I want to update LineageOS and created a backup before attempting the update. Unfortunately the MD5 checksums of the the data partition files data.ext4.win000 and data.ext4.win001 don't check out. Even after several tries.
Is anyone else having this problem?
My TWRP Version is 3.1.1-0-0
Click to expand...
Click to collapse
Do you mean you created a backup successfully but then when you attempt restore the checksum It fails?
Or do you mean during backup?
IronRoo said:
Do you mean you created a backup successfully but then when you attempt restore the checksum It fails?
Or do you mean during backup?
Click to expand...
Click to collapse
The backup runs through without any errors.
When I tried to restore a backup about a month ago the checksum was incorrect and the restore failed. Therefore I reinstalled Lineage OS from scratch.
It was okay because the install was still quite fresh at that time anyway.
This time I wanted the verify the checksums in advance on my pc. The checksums of the boot.emmc.win and system.ext4.win files are fine.
Only the two data partition files fail to verify.
seesawCharli said:
The backup runs through without any errors.
When I tried to restore a backup about a month ago the checksum was incorrect and the restore failed. Therefore I reinstalled Lineage OS from scratch.
It was okay because the install was still quite fresh at that time anyway.
This time I wanted the verify the checksums in advance on my pc. The checksums of the boot.emmc.win and system.ext4.win files are fine.
Only the two data partition files fail to verify.
Click to expand...
Click to collapse
OK, I understand now. I ran a backup with TWRP 3.1.1-3 (tryout) & like you it ran fine. I can't really check md2 checksum at the moment as away on holiday & haven't found a good app that does md2 (tried Hash Droid but it just gives error msg even though permissions set correctly etc).
What are you using on PC to check?
IronRoo said:
OK, I understand now. I ran a backup with TWRP 3.1.1-3 (tryout) & like you it ran fine. I can't really check md2 checksum at the moment as away on holiday & haven't found a good app that does md2 (tried Hash Droid but it just gives error msg even though permissions set correctly etc).
What are you using on PC to check?
Click to expand...
Click to collapse
I'm using Hashtab which nicely integrates into the file property window in Windows.
But you could also use this command line utility which is already part of Windows:
Code:
CertUtil -hashfile C:\TEMP\MyDataFile.img MD5
seesawCharli said:
I'm using Hashtab which nicely integrates into the file property window in Windows.
But you could also use this command line utility which is already part of Windows:
Click to expand...
Click to collapse
OK, will have a look at it when get back to my PC. I've never tried it on PC. I have TWRP set to use SHA2 checksum. Have you tried that?
IronRoo said:
OK, will have a look at it when get back to my PC. I've never tried it on PC. I have TWRP set to use SHA2 checksum. Have you tried that?
Click to expand...
Click to collapse
No, I didn't know I could change the checksum algorithm. I'll try that!
Edit: I couldn't find a setting to change the checksum algorithm. Where can you set it? Maybe the option was introduced in your newer TWRP version?
seesawCharli said:
No, I didn't know I could change the checksum algorithm. I'll try that!
Edit: I couldn't find a setting to change the checksum algorithm. Where can you set it? Maybe the option was introduced in your newer TWRP version?
Click to expand...
Click to collapse
It's the last option in settings, it's partially obscured on my i9195 & I need to scroll up to see it fully (using ne0zone build from XDA thread)
IronRoo said:
It's the last option in settings, it's partially obscured on my i9195 & I need to scroll up to see it fully (using ne0zone build from XDA thread)
Click to expand...
Click to collapse
hmm, I don't seem to have as many settings as you. I don't need to scroll. I've attached a screenshot.
If the hash verification works for you I'll install your twrp version