[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: multi-boot+grub2+separate boot partition



* Brian <ad44@cityscape.co.uk> [121110 13:18]:
> On Sat 10 Nov 2012 at 06:34:27 +0000, Russell L. Harris wrote:
...
> > I instructed the Squeeze installer to install grub2 to /dev/sda1.
> > I instructed the Wheezy  installer to install grub2 to /dev/sda7.
> > I instructed the Ubuntu  installer to install grub2 to /dev/sda8.
... 
> I'd have installed GRUB to /dev/sda each time.
> 
> Then, if Squeeze was not the last installation done and I wanted it to
> head the GRUB menu, I'd have booted into it and run
> 
>    grub-install /dev/sda

Thanks, Brian.  

If my understanding of grub is correct, the execution of 
"grub-install /dev/sda":

    (1) writes the various grub files to the "/boot/grub" directory of
    the partition corresponding to the operating system which executes
    "grub-install", then

    (2) writes a short instruction phrase to the master boot record
    (MBR) of /dev/sda, which phrase terminates in a link to the grub
    code in the "/boot/grub" directory of the partition corresponding
    to the operating system which last invoked "install-grub".

RLH



Reply to: