Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sanity check for disk images



> 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).




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org