Click to See Complete Forum and Search --> : formatting mbr inside linux


basho
10-10-2006, 05:46 PM
Hey. Is there a way to format the MBR inside Linux? The LILO that was installed with a distro I tried is not being written over by GRUB from another distro that I am trying out? Any help is appreciated.

sajchurchey
10-10-2006, 10:43 PM
grub-install /dev/hda


Replace /dev/hda with the device file of the hard drive you're trying to install the MBR on. If that doesn't work, you might need to use the GRUB format of referring to drives, usually found in device.map in /boot/grub.

It might be different because of your distro.

saikee
10-11-2006, 03:35 AM
You need root privileage to mess around the system files.

A more robust Grub install is to invoke a Grub shell. If you want the Grub installed in partition say hda3 to take over the MBR of hda just type
root (hd0,2)
setup (hd0)
grub-install works in 80% of the cases too.

basho
10-11-2006, 10:28 AM
thanks for the reply. i'll try your suggestions and hopefully it works.