Moving bootloaader from MBR to ubuntu root partitiion
Rashkae
ubuntu at tigershaunt.com
Fri Nov 19 17:49:06 UTC 2010
On 10-11-19 12:10 PM, Trey Sizemore wrote:
> On Sat, 2010-11-20 at 00:54 +0800, Goh Lip wrote:
>
>> On Saturday 20,November,2010 12:44 AM, Goh Lip wrote:
>>
>>> So, use force:)
>>>
>>> sudo grub-install --force /dev/sda1
>>>
>> assuming your /boot is in / at /dev/sda1
>>
>>
>>
>>
> Thanks. It appears that the operation worked, but when I reboot the
> machine, I still get the grub list of OS's and can boot into Ubuntu.
>
> Is there a way to tell where the bootloader is currently installed? I
> would have assumed that I would have had nothing on the MBR at this
> point until the install of the 3rd party bootloader (GAG).
>
> -Trey
>
>
Installing grub somewhere else does not erase the previous
installation. You can install the mbr package (provides install-mbr
command) for a utility that will create an old style dos MBR, (ie,
system gets booted from paritition that is marked as 'boot' in partition
editor).
If you really want to zero the mbr such as the system will be completely
unbootable, you can do that with dd:
*warning, I'm copying this from a google search. So, no warranty if the
number of bytes is wrong and you erase more than the mbr*
dd if=/dev/zero of=/dev/hda bs=446 count=1
More information about the ubuntu-users
mailing list