grub2 on partition and not on MBR

Goh Lip g.lip at gmx.com
Sun Apr 4 07:20:31 UTC 2010


On 04/04/2010 02:40 PM, Tom H wrote:

>> Anyway, if Stefano cannot set grub2 other than to mbr, and I would also
>> protest if that is the case, it can be circumvented by doing a
>> "sudo grub-install --root-directory=<where you want grub set>  /dev/sda"
>> unless he wants his original windows boot instead, but I think most of
>> here wouldn't know much about this windows boot.
>
> The "--root-directory" option only changes the location of the files
> that grub-install drops into /boot/grub. Grub will still be installed
> into the MBR.
>

Yes, that's what I said, or thought I said. This will install grub to 
where you want (not the OS grub.cfg though) *as well* as leaving it at 
the /boot/grub/ of the OS too AND setting the <where you want> grub.cfg 
to mbr, NOT the OS grub.cfg.

That is...
o <where you want> grub.cfg is set to mbr
o OS grub.cfg is NOT set to mbr
o OS /boot/grub and OS /boot/grub/grub.cfg
   will remain unchanged at OS partition
o updates the <where you want> grub with OS grub version
   but NOT the <where you want>grub.cfg with OS grub.cfg



> I have not tried them but there may be two ways of overcoming this issue.
>
> 1. Use "grub-install --force /dev/sdaX". Perhaps the "--force" will
> ignore the "not MBR" warning.
>

> 2. Use the various steps of grub-install in sequence and use
> "grub-setup -r /dev/sdaX" at that point of the installation (or
> "grub-setup -f -r /dev/sdaX").
>

I've learnt to happily accept the warning sign  :)



Regards - Goh Lip
-- 
Life is a sexually transmitted disease with a 100% mortality rate.





More information about the ubuntu-users mailing list