//eettcc//bbaaddssccaann [[ --vv ]] [[ --oo _p_r_o_t_o ]] [[ --bb _b_o_o_t ]] _d_e_v_i_c_e _s_i_z_e //eettcc//bbaaddssccaann [[ --vv ]] [[ --oo _p_r_o_t_o ]] [[ --bb _b_o_o_t ]] _d_e_v_i_c_e _x_d_e_v_i_c_ebadscan scans a floppy disk or a partition of the hard disk for bad blocks. It writes onto the standard output a prototype file that lists all bad blocks on the disk.
badscan recognizes the following options:
The command line for badscan comes in two forms, as shown at the top of this article. The first version is for a floppy disk; size gives the size of the device, in blocks. The second version is for a hard- disk partition; xdevice specifies devices /dev/at0x or /dev/at1x, which hold the partition-table information for the disk in question. badscan reads the data from the boot block of the drive to find the size of the device.
/etc/badscan -v -o proto /dev/rfva1 2880
See the article floppy disks for a table that gives the device name and number of sectors to be found on the various types of floppy disk that COHERENT recognizes.
The second example uses badscan to prepare a list of bad blocks for partition 2 on hard-drive 0, which is an IDE drive accessed via COHERENT's aatt driver. Again, the output is written into file proto:
/etc/badscan -v -o /conf/proto.at0c /dev/rat0c /dev/at0x