How to uninstall GRUB from my hard disk drive?
The GNU Grub FAQ has a section entitled "How to uninstall GRUB from my hard disk drive?"
I'll quote it below. However, I want to point out that I feel it is not an adequate answer. I found a better answer at another site, so keep reading.
There is no concept uninstall in boot loaders, because if you uninstall a boot loader, an unbootable machine would simply remain. So all you need to do is overwrite another boot loader you like to your disk, that is, install the boot loader without uninstalling GRUB.
For example, if you want to install the boot loader for Windows, just run
FDISK /MBRon Windows. If you want to install LILO (I can't imagine why you want to do such a thing, though), run
Here is where I found the better answer:
You can also use dd command from Linux itself (it removes partition table):
# dd if=/dev/zero of=/dev/sdX bs=512 count=1
Just remove MBR, without removing the partition table (thanks to
# dd if=/dev/zero of=/dev/sdX bs=446 count=1
Replace /dev/hdX with your actual device name such as /dev/hda. Use fdisk -l command to find out device name:
# fdisk -l
Disk /dev/sda: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 30384 243955057+ 83 Linux
/dev/sda3 30385 30515 1052257+ 82 Linux swap
NOTE: there are a bunch of posts that recommend a command like this:
# dd if=/dev/null of=/dev/sdX bs=446 count=1
That doesn't work. You need to use /dev/zero
Be careful when using dd! (It is sometimes called Data Destroyer.)