On 4/18/08, ropers <[EMAIL PROTECTED]> wrote: > Sometimes I find myself in need of a disk checking utility that can > check both disks with known *and unknown* filesystems, and/or that can > check even currently unpartitioned space on a disk.
Not claiming to be an optimal solution (dd is faster), but does a read pass across the entire partition: $ sudo md5 /dev/rwd0c MD5 (/dev/rwd0c) = a85c2c67475f983a98007fd9a47378b7 Run it again and compare the hashes if you're worried. Works on floppies too, broken ones can't be read: $ sudo md5 /dev/fd0c md5: /dev/fd0c: read error: Input/output error $ tail -n1 /var/log/messages Apr 18 13:13:29 gamma /bsd: fd0c: hard error reading fsbn 0 of 0-3 (st0 40<abnrml> st1 20<bad_crc> st2 20<bad_crc> cyl 0 head 0 sec 1) In OpenBSD the 'c' partition covers the entire disk, so you'll probably want that most of the time. dd is very useful for this as well, but read the man pages carefully. -- Jon