[lug] hosing /mbr without a rescue disk

Peter Hutnick peter-lists at hutnick.com
Thu Dec 12 07:58:07 MST 2002


> Does anyone have any tricks for hosing /mbr without a rescue disk? I'm
> trying to do a fresh install, but grub wants to boot using it. I tried
> booting into 'linux rescue' and it still insists on mounting the hard
> drive.

dd if=/dev/zero of=/dev/hda bs=1024 count=512

In English; write zeros to the first 512k sector of the first IDE hard disk.

That should do the trick.  If not, just overwrite more blocks.  For
instance you can do bs=512K count=10 would overwrite the first 10 512k
sectors.  Note that is a capital k.

I think that there is some way to uninstall grub as well, but who knows?

-Peter





More information about the LUG mailing list