I used dd to create a imagefile of a partition of my external hdd. I used the 'conv=noerror,sync' option to skip readerrors and it did a full copy.
'sudo dd if=/dev/sdd of="/media/me/out/theimage.img" conv=noerror,sync'Now I noticed that fsck returns some errors on the source-disk /dev/sdd. I had fsck repair the disk, which went well.
Now the question is: Should I make a new imagefile? Could it be that dd missed some data due to corrupted filesystem or some such?
Or can I use fsck to fix the imagefile just like it fixed the disk?
Right now if I run fsck on the image file, it screams at me that there are issues with the filesystem...
1 Answer
You can do either: fix the image file or make a new one.
However, I would use ddrescue instead of dd as it was designed to be able to read bad sectores / skip over them / ...:
sudo apt install gddrescue
ddrescue --retry-passes=3 /dev/sdd /media/me/out/theimage.img /media/me/out/theimage.logFor more info: man ddrescue