Re: advanced dualboot linux+win with grub

From: Timothy Murphy (tim_at_birdsnest.maths.tcd.ie)
Date: 08/02/05


Date: Tue, 02 Aug 2005 14:02:52 +0100

CBFalconer wrote:

> I don't know about grub, but I imagine the fundamentals are similar
> to lilo, in that the initial default and options are written into
> the MBR.

That isn't right.
The default is written in /etc/grub.conf ,
and can be changed without re-writing the MBR.

> After all, when the machine boots that is all the
> information available. So any such flipping of the default would
> involve rewriting the MBR. This would mean that any fault could
> easily write an invalid MBR and result in an unbootable machine.

You are wrong.

Regarding the OP's query, I have seen postings explaining
how to make changes similar to the one he/she wants.
It could be done by getting Linux to re-write /etc/grub.conf
when you logout.
But there is probably a better way.

-- 
Timothy Murphy  
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland


Relevant Pages

  • Re: Dual booting XP machine
    ... able to change the boot parameters in detail -- Grub can do this, LILO ... > doesn't it also store information on the MBR? ...
    (comp.os.linux.setup)
  • Re: Re. CD writer
    ... > kernel came from "Custom Kernel Compiling in Debian ... > suggestions that involve working with lilo. ... > trouble getting rid of lilo in the MBR. ... The grub package is ...
    (Debian-User)
  • Re: Remove lilo
    ... > How do I remove lilo and restablish the win 98 mbr on my machine? ... If you're running Linux, you need LILO or GRUB. ... It's a good idea to create a DOS boot floppy in this ...
    (comp.os.linux.misc)
  • Re: Q. re. dual-boot of 2 Linux OSs - esp. re. LILO
    ... > lilo wherever you like, or don't put it, as you prefer. ... > havd a lilo on the MBR, and you want to add a stanza to it for your new ... >> During both installations, I chose installing LILO into the MBR, since I ... how to set up the script to make both OS's accessible. ...
    (comp.os.linux.setup)
  • Re: lilo and two hd
    ... > I try to boot different Linuxsystems on the same machine. ... I have got the impression that lilo is ... > Is it possible that lilo, when writing the MBR writes the kernel ... it is only necessary to copy the kernel and initrd ...
    (alt.os.linux.suse)