DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Working with diskettes

Verifying data integrity on diskettes

You can use the dd(1M) command to verify how much data is on a diskette, and whether there are bad blocks.

  1. To find the number of whole and partial data blocks (input and output) on /dev/rdsk/f0t (a full path is required), copy the data on /dev/rdsk/f0t to /dev/null as follows:

    dd if=/dev/rdsk/f0t of=/dev/null

    When it has finished executing, dd reports the number of whole and partial data blocks copied in and out, as follows:

       2880+0 records in
       2880+0 records out
    
In this example, 2880 full and 0 partial records were copied in and out. The number of blocks reported by the dd command depends on the size of the data blocks used on the diskette. If the dd command stops in the middle of a copy, a bad block has been found.
Next topic: Displaying information on a diskette
Previous topic: Duplicating a diskette

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 22 April 2004