I think I understand the principle of an MD5sum (check file for errors / corruptions), and that in a nandroid backup, the md5sum is based off the name of the backup. So that brings me to two questions:
1. How does one check an md5sum? (btw I am running Snow Leopard 10.6.8 on a macbook pro)
Look Here
2. Is there any way I can change the md5sum of a nandroid backup so that I can rename it to something I'll recognize? (Like stock ROM or SC5_V1 with the date) Is there anything special I need to do to change the name of a nandorid backup?
No
I've attempted to scour the internet for my answers, but have been unsuccessful =/
Thanks in advanced.
Md5 is based on the contents of the files. If one bit of data is different the resulting md5 will be different. It is not based on the filename. Android market has many md5 apps you could use
Sent from my AXI0M IONIC using XDA App
dagostin said:
Md5 is based on the contents of the files. If one bit of data is different the resulting md5 will be different. It is not based on the filename. Android market has many md5 apps you could use
Sent from my AXI0M IONIC using XDA App
Click to expand...
Click to collapse
+1 to this. md5sums are very useful when you download big files to make sure that it didn't get corrupted in the download.
Look here on how to easily get the md5sum of a file on a mac.
dagostin said:
Md5 is based on the contents of the files. If one bit of data is different the resulting md5 will be different. It is not based on the filename. Android market has many md5 apps you could use
Sent from my AXI0M IONIC using XDA App
Click to expand...
Click to collapse
Therefore changing the name of a nandorid backup shouldn't change the MD5sum right? So I should therefore be able to change the names to whatever I want right?
cowenby said:
Therefore changing the name of a nandorid backup shouldn't change the MD5sum right? So I should therefore be able to change the names to whatever I want right?
Click to expand...
Click to collapse
Correct. You can also use ROM Manager to automatically backup/restore/flash and you have to option to name it whatever you want.
cogeary said:
Correct. You can also use ROM Manager to automatically backup/restore/flash and you have to option to name it whatever you want.
Click to expand...
Click to collapse
Hmm I will have to experiment some then...
Related
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
I finally rooted TF and flashed Revolution HD. I understand that ROM Manager does not work with the TF. I want to be able to change backup names w/o messing up md5. Is there method or app for this?
go into file manager and change the name of the .zip
What zip? I have the CWM backup folder with sub folders for each backup and the 4 nandroid files in each.
mrevankyle said:
go into file manager and change the name of the .zip
Click to expand...
Click to collapse
Actually it looks like I can change the folder name for the Nan back without problem.
I thought that changing the names of the Nandroid backups would cause a restore to fail....unless the name was reverted back to it's original name.
HuskerWebhead said:
I thought that changing the names of the Nandroid backups would cause a restore to fail....unless the name was reverted back to it's original name.
Click to expand...
Click to collapse
That's what I feared. Evidently it's OK to change the directory name that contains the files. I tried a restore after and it went fine. Makes sense that the file md5 sum is not affected by chance nging folder name.
Hi, I changed the name of the folder and BAM!!.. the restore failed! I had two backups of two different ROM's and could not restore either of them after name changing! I managed to put back the old names and now both work. But I still need a way to identify so was wondering if there was any way to change the name and yet keep the md5 sum intact!!
MysticPhantom said:
Hi, I changed the name of the folder and BAM!!.. the restore failed! I had two backups of two different ROM's and could not restore either of them after name changing! I managed to put back the old names and now both work. But I still need a way to identify so was wondering if there was any way to change the name and yet keep the md5 sum intact!!
Click to expand...
Click to collapse
Usually a simple name change should still work. If you use symbols and stuffs in the name it might not work.
The latest version of TWRP let you name you nandroid backup.
I have been palying around with various Zoom configuration. As I get one close I do a nandroid backup with CWM Recovery. I would like to be able to rename them with discriptive names so that I can find a specific backup when needed. Every time I try I get an MD5 sum error.
Does anyone know how to rename a backup and fix the MD5 sum?
REHolt218 said:
I have been palying around with various Zoom configuration. As I get one close I do a nandroid backup with CWM Recovery. I would like to be able to rename them with discriptive names so that I can find a specific backup when needed. Every time I try I get an MD5 sum error.
Does anyone know how to rename a backup and fix the MD5 sum?
Click to expand...
Click to collapse
You will need a file manager, such as Astro or what I use, Super Manager. Your nandroid back ups will be under folder "external 1" , clockworkmod, backup.
It's all in the file manager
I use root explorer. One thing to remember is that you can't use certain characters. I don't know exactly what they are, but if you only use what are in the original as far as punctuation you should be all set.
REHolt218 said:
I have been palying around with various Zoom configuration. As I get one close I do a nandroid backup with CWM Recovery. I would like to be able to rename them with discriptive names so that I can find a specific backup when needed. Every time I try I get an MD5 sum error.
Does anyone know how to rename a backup and fix the MD5 sum?
Click to expand...
Click to collapse
Use a md5 checker and check the whole folder, find the md5 file and open a text editor and add the md5 you just got in place of the old one
And if you put any special characters in the name or spaces you will get a md5 sum error
Sent from my ADR6400L using Tapatalk
the easiest way is use root explorer and stick to numbers and alphabet characters as much as possible. it will handle the md5 for you. just renaming the files with a file manager will ruin the backup.. DONT DO IT. I found out the hard way unfortunately.
As a test, I copied a CWM backup folder from my phone to my Windows PC. I renamed the folder without spaces or special characters and then copied the entire folder back to the phone. Upon restoring using CWM 5.0.2.7, it successfully passed md5 test and restored. I then rebooted with no problem.
I also compared the md5 sums in the nandroid.md5 files from the original folder (before renaming) and after renaming and they are identical.
The key is to avoid spaces or special characters; use underscore "_" instead of spaces in the folder_name.
I hope this helps!
you can use - instead of space
md5 fail with space, if rename again it will re-work, data is NOT ruined if you rename
HEY GUYS I JUST FOUND THE KEY TO THE PROBLEM---clockwork-recovery MD5 mismatch IS VERY SIMPLE...
1.OPEN SD CARD IN WINDOWS.
2.DOWNLOAD 2 SOFTWARES ( MD5 CALCULATOR AND NOTEPAD++) JUS GOOGLE THEM AND INSTALL.
3.OPEN CLOCKWORK FOLDER IN SD VIA COMPUTER->BACKUP->(YOUR BACK).
4.NOW RIGHT CLICK ON NANDROID.MD5 AND EDIT WITH NOTEPAD++
5.GREEN HIGHLIGHTED PHRASE IS A KEY.
6.RIGHT CLICK ON REST EVERY FILE IN BACKUP FOLDER INDIVIDUALLY->MD5 CALCULATOR
7.MATCH THE KEY TO THAT OF NOTEDPAD++ FILE
8.IF THEY DONT MATCH COPY KEY FROM MD5 CALCULATOR AND PASTE IN NOTEPAD
9.SAVE AND EXIT.
10.NOW TRY RECOVERY IT;LL WORK.
MD5 is there for a reason...
Sent from my GT-S5670 using XDA App
Aspire said:
MD5 is there for a reason...
Sent from my GT-S5670 using XDA App
Click to expand...
Click to collapse
what reason??
can you share??
(and why did you change the name?)
Wikipedia said:
MD5 digests have been widely used in the software world to provide some assurance that a transferred file has arrived intact. For example, file servers often provide a pre-computed MD5 (known as Md5sum) checksum for the files, so that a user can compare the checksum of the downloaded file to it. Unix-based operating systems include MD5 sum utilities in their distribution packages, whereas Windows users use third-party applications.
Click to expand...
Click to collapse
Successful verification of the md5 file shows that the files are the same as at the time of packing and "not corrupted".
Consider this,
You flash a ROM which did not have a correct md5 checksum.
It may mean that the ROM was corrupted due to some reason and you may end up with a bricked phone.
though the chances of this happening are pretty low with a backup.. but better safe than sorry.
and i changed my username cause i liked it
arhant said:
HEY GUYS I JUST FOUND THE KEY TO THE PROBLEM---clockwork-recovery MD5 mismatch IS VERY SIMPLE...
1.OPEN SD CARD IN WINDOWS.
2.DOWNLOAD 2 SOFTWARES ( MD5 CALCULATOR AND NOTEPAD++) JUS GOOGLE THEM AND INSTALL.
3.OPEN CLOCKWORK FOLDER IN SD VIA COMPUTER->BACKUP->(YOUR BACK).
4.NOW RIGHT CLICK ON NANDROID.MD5 AND EDIT WITH NOTEPAD++
5.GREEN HIGHLIGHTED PHRASE IS A KEY.
6.RIGHT CLICK ON REST EVERY FILE IN BACKUP FOLDER INDIVIDUALLY->MD5 CALCULATOR
7.MATCH THE KEY TO THAT OF NOTEDPAD++ FILE
8.IF THEY DONT MATCH COPY KEY FROM MD5 CALCULATOR AND PASTE IN NOTEPAD
9.SAVE AND EXIT.
10.NOW TRY RECOVERY IT;LL WORK.
Click to expand...
Click to collapse
Or you can simply use the app root toolbox available in the market.
Sent from my Galaxy Fit @ 801Mhz- RazoDroid
Aspire said:
Successful verification of the md5 file shows that the files are the same as at the time of packing and "not corrupted".
Consider this,
You flash a ROM which did not have a correct md5 checksum.
It may mean that the ROM was corrupted due to some reason and you may end up with a bricked phone.
though the chances of this happening are pretty low with a backup.. but better safe than sorry.
and i changed my username cause i liked it
Click to expand...
Click to collapse
what's your real name, btw?? :curious:
and buddy, why don't you join us on fb? see my sig vvvv
Congratulations arihant you made FIT to appear on XDA Portal !!
invincible authority said:
congratulations arihant you made fit to appear on xda portal !! :d
Click to expand...
Click to collapse
thnx even i didnt knew that..thnx for telling..
You are GENIUS THX!!!
Aspire said:
MD5 is there for a reason...
Sent from my GT-S5670 using XDA App
Click to expand...
Click to collapse
Well yeah, MD5 is a great thing when it comes to checking consistency of a file, but for example, it bothers me because i have about 5-6 rom backups and they are all difrent roms, so i need to change the name of folder from date-time stamp to name of the rom, but when i do that i cant restore it any more because MD5 checksum apperantly checks the folders name also so i have to rename it again to date stamp... but sometimes it can be useful... just sayin'
I don't think cwm checks the backup names. I've got a couple of backups renamed to the ROM names and they work well.
well i dont know then, when i change their name back to the time stamp like 2012-03-15 11.12.32 then the restore will work, but when i leave a name like CM 7.2 rc5.5, when i chose restore, it prints out md5 checksum mismatched...
Same thing happens with me too..renaming the cwm backup file leads to the same mds mismatch error but sometimes it works..strange eh??
That never happens for me...
Sent from my GT-S5670 using XDA
Well I am an experienced hacker so ill explain. I do not have a brief knowleage about md5 but the md5 is calculated by the alphablet that it has lets say the name is ABHY then the md5 will be 1670 (This is an expamle) the other name is ZXDR the md5 will be 7304 now if you change the name the md5 does not change hence the error arises
Sent from my GT-S5670 using xda premium
yeah i know that, but i thought that he makes MD5 checksum of backup files, one by one, and not the whole folder...
slobo14 said:
yeah i know that, but i thought that he makes MD5 checksum of backup files, one by one, and not the whole folder...
Click to expand...
Click to collapse
Its assigned to the whole file
Sent from my GT-S5670 using xda premium
It looks like this is the case, I havejust spent the last hour trying to "repair" the Md5 checksums as described above only to find there was no problem with them, the problem was i had renamed the backup file. on checking in details when the file was created i renamed the file accordingly and voila the backup worked. I have renamed many backup files before and never had this problem but i did this time strange.
Informative post...
but MD5 checksum verification is useful...
I got md5 checksum error and it was caused by space in renamed folder name. After i remove space, restore worked.
what is MD5. and how to i make it match
Md5 is the download number to ensure that the file was downloaded properly. You check md5 sum by using a file manager and checking the properties of the file. You can also check it in recovery mode (at least in 4ext)
Usually the download website (mainly ROMs) has the md5 sum, so you can write down your md5 sum and check it with the one on the website.
Sent from my HTC Sensation
And you don't 'make it match'. You check to see if it already matches. If it doesn't match, delete the file and redownload it.
Skipjacks said:
And you don't 'make it match'. You check to see if it already matches. If it doesn't match, delete the file and redownload it.
Click to expand...
Click to collapse
This. If it doesn't match it means that the file you downloaded does not match the original in some way. The file was either corrupted during download or you got a copy that somebody messed with, possibly for malicious reasons.
Tangent_ said:
This. If it doesn't match it means that the file you downloaded does not match the original in some way. The file was either corrupted during download or you got a copy that somebody messed with, possibly for malicious reasons.
Click to expand...
Click to collapse
Meaning if it doesn't match, don't flash!
AndroidSupporter318 said:
Md5 is the download number to ensure that the file was downloaded properly. You check md5 sum by using a file manager and checking the properties of the file. You can also check it in recovery mode (at least in 4ext)
Usually the download website (mainly ROMs) has the md5 sum, so you can write down your md5 sum and check it with the one on the website.
Sent from my HTC Sensation
Click to expand...
Click to collapse
do you know the MD5 file is located and what its ment to be
It's not a "location". Just go to file manager and view properties of the file. There should be an option to check md5 sum. Then check it on the website wherever you downloaded the file from
Sent from my HTC Sensation
This is how to check it
blitz100 said:
what is MD5. and how to i make it match
Click to expand...
Click to collapse
I didnt understand it either but SkipJacks explained it nicely to me so here is what he put :
Boot into your current rom.
Install any file explorer. ES File explorer is a great option from the Play Store.
Use ES File Explorer to check the MD5 sum.
Open ES File Explorer. Find the file (probably in your Downloads folder or whatever fold the app you used to download the file puts things in)
Long press the file. Little boxes will show up to the right.
Click MORE at the bottom of the screen. (Might be at the top. I'm looking at this on my tablet. It might be different on the phone version)
Then click PROPERTIES on the pop up menu
Then SHOW CHECKSUM
Select the MD5 checkbox.
Click CALCULATE
A long code shoudl show up under MD5 on that screen.
If the Md5 matches exactly with the file you have downloaded then flash the file.
Heloooo said:
I didnt understand it either but SkipJacks explained it nicely to me so here is what he put :
Boot into your current rom.
Install any file explorer. ES File explorer is a great option from the Play Store.
Download the firmware file. It will be called PM58IMG.zip
Use ES File Explorer to check the MD5 sum.
Open ES File Explorer. Find the PM58IMG.zip (probably in your Downloads folder or whatever fold the app you used to download the file puts things in)
Long press the file. Little boxes will show up to the right.
Click MORE at the bottom of the screen. (Might be at the top. I'm looking at this on my tablet. It might be different on the phone version)
Then click PROPERTIES on the pop up menu
Then SHOW CHECKSUM
Select the MD5 checkbox.
Click CALCULATE
A long code shoudl show up under MD5 on that screen.
If the Md5 matches exactly with the file you have downloaded then flash the file.
Click to expand...
Click to collapse
One thing I would change. When I was talking to you we were talking about firmware specifically, so I added that the file you needed to check would be called pm58img.
But md5 sums can be calculated on any file. It doesn't just apply to firmware.
Sent from your phone. You should be careful where you leave that thing.
Skipjacks said:
One thing I would change. When I was talking to you we were talking about firmware specifically, so I added that the file you needed to check would be called pm58img.
But md5 sums can be calculated on any file. It doesn't just apply to firmware.
Sent from your phone. You should be careful where you leave that thing.
Click to expand...
Click to collapse
Yep , I realised after i posted it but i couldnt edit it because of the 2 minute rule on new users. Its been edited now