I have a dd disk image.  How can I check if it is consistent?  (It doesn't have to be an exact copy.)I am trying to run extundelete, but I don't know if it's failing because the underlying filesystem is xfs, or because the image is corrupt.
How can I check if a dd disk image is consistent (i.e. not corrupt)
dd
Running fsck.xfs on the partition image would be a good way to know if the file is corrupted or not.Since it is a disk image rather than a partition image, you'll need to extract the partition from the disk. You can get its size and position from sfdisk -l -uS diskImageFileand then extract it with dd if=diskImageFile of=partitionFile bs=blockSize skip=partitionOffset count=partitionSize