You are not logged in.
when I try to copy some files from this sd card I always get a different version of the files (usually one byte is different).
Is there any way to create disk images (with dd for example) and then "average the diff" to get what's actually in the sd card?
Offline
Hi,
Is there any way to create disk images (with dd for example) and then "average the diff" to get what's actually in the sd card?
Data recovery is a huge topic and depending on the type of files you want to recover, a "one byte difference" might not cause any issues.
I'm not aware of a tool that does exactly what you are describing but it does not sound that hard to make.
have a look at ddrescue which might be able to detect read errors and retry when needed, it's a long process but i've used it successfully.
Carefully explaining your problem is half the solution.
Offline
Data recovery is a huge topic and depending on the type of files you want to recover, a "one byte difference" might not cause any issues.
it's photos. so I imagine some photos will be corrupted
I'm not aware of a tool that does exactly what you are describing but it does not sound that hard to make.
have a look at ddrescue which might be able to detect read errors and retry when needed, it's a long process but i've used it successfully.
ddrescue give me different output everytime. some location are read differently every time I try.
Offline
Use another card reader/cable.
It's rather unlikely that exactly one byte per file is corrupted and causing random reads. The cards usually fail to write cells and later on maybe reading altogether. As long as a NAND cell can be read, the data in it is very stable.
Thus it's more likely the bytes acre corrupted on the way from the card to your disk, maybe even on the disk (try reading them into tempfs - or, better, a completely different system incl. different RAM)
Offline