sanity check for disk images

Lars Kellogg-Stedman lars at larsshack.org
Fri Mar 31 09:27:30 EST 2000


> Is there a way that i can run a sanity check on the images make on the
> hard drive? And is there a way to check whether the disk to disk copy
> was made properly?

A simple sanity check is to try mounting the disk image:

  mount -o loop,ro disk.image /mnt/floppy

If it works, the image is probably okay.

A better way, if you don't mind a little extra time, is to compute an MD5
checksum of the data on the floppy, and then compare that to an MD5
checksum of the disk image.  Something like this:

  md5sum /dev/fd0 disk.image

If the two checksums chance, you're safe.

-- Lars

-- 
Lars Kellogg-Stedman <lars at larsshack.org> --> http://www.larsshack.org/

-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).



More information about the Discuss mailing list