TWRP MD5 hash check of data partition backup fails

seesawCharli

Member
Jan 19, 2014
20
2
0
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
 

IronRoo

Senior Member
Aug 4, 2014
1,342
434
0
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
Do you mean you created a backup successfully but then when you attempt restore the checksum It fails?

Or do you mean during backup?
 

seesawCharli

Member
Jan 19, 2014
20
2
0
Do you mean you created a backup successfully but then when you attempt restore the checksum It fails?

Or do you mean during backup?
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.
 
Last edited:

IronRoo

Senior Member
Aug 4, 2014
1,342
434
0
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.
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?
 
  • Like
Reactions: seesawCharli

seesawCharli

Member
Jan 19, 2014
20
2
0
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?
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
 
  • Like
Reactions: IronRoo

IronRoo

Senior Member
Aug 4, 2014
1,342
434
0
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:
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?
 
  • Like
Reactions: seesawCharli

seesawCharli

Member
Jan 19, 2014
20
2
0
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?
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?
 
Last edited:

IronRoo

Senior Member
Aug 4, 2014
1,342
434
0
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?
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)
 
  • Like
Reactions: seesawCharli

seesawCharli

Member
Jan 19, 2014
20
2
0
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)
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 :)
 

Attachments