HD Install :: Uninstalling Grub



$ sudo dd if=/dev/zero of=/dev/hda
Anytime you are asked to run commands that will make changes to anything outside your home directory, you should usually assume that you will need to become "root".
http://www.tldp.org/LDP/intro-linux/html/index.html
http://damnsmalllinux.org/wiki/index.php/FAQ

Quote (Juanito @ Sep. 20 2007,05:22)
$ sudo dd if=/dev/zero of=/dev/hda

Note that that will destroy everything on the drive, not just the mbr.
Quote (^thehatsrule^ @ Sep. 20 2007,09:19)
Quote (Juanito @ Sep. 20 2007,05:22)
$ sudo dd if=/dev/zero of=/dev/hda

Note that that will destroy everything on the drive, not just the mbr.

Important point;  perhaps he just wants to get rid of the MBR on one partition in which case he might use fdisk to eliminate that partition and then recreate it ?? Any way to  dd just one partition (e.g., dd if=/dev/zero of=/dev/hda1)  ?

edit:  I'm guessing the MBR gets placed at the top of hda regardless of what partition the boot files are in (thus dd if /dev/zero of /dev/hda count 1 for removing it). In that case, getting rid of the boot partition wouldn't solve anything (except produce an error about not being able to find the boot image).


original here.