:
:One of my FreeBSD development boxes had a hernia last week when it lost
:power while writing to disk. The drive wrote out garbage to a track.
:
:I want to reformat the drive, (low level) but the bios doesn't have any
:support to do this (In the past That is how I did this).
:The machiine has 1 CD drive and no floppy..
:
:anyone with any ideas as to how one can reformat a hard drive feel free to 
:lend me a clue..

   Two things:

    (1) dd if=/dev/zero of=<raw_device> bs=32k 

        This will force the drive to reassign broken sectors.   Run this
        command twice.  If the second run of the command is successful 
        and does not stall (looking at running 'iostat 10' output will tell
        you whether it stalled) then you are golden. 

        Use the base device for the dd output file, e.g. like '/dev/ad0'.
        Do not specify a slice or a partition.

    (2) If the command fails for any reason other then hitting the end of
        the media, or if it stalls on the second go-around, throw the drive
        away and buy a new one.

    If that does work then use fdisk -IB to reinitialize the slice table
    and disklabel to initialize the disklabel, or use sysinstall to
    reinitialize the tables.

                                                -Matt


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to