[lug] hosing /mbr without a rescue disk

Peter Hutnick peter-lists at hutnick.com
Thu Dec 12 08:31:08 MST 2002


Andrew Gilmore said:

>> dd if=/dev/zero of=/dev/hda bs=1024 count=512
>
> To hose just the mbr, you only need:
>
> dd if=/dev/zero of=/dev/hda bs=512 count=1
>
> That will preserve the partition tables, etc.

Can that be right?  That's 512 *bytes*.  Less than 7 lines of text (or 7
punch cards ;-)

bs=1024 count=512 is equivalent to bs=512K count=1 . . .


-Peter







More information about the LUG mailing list