bug-grub
[Top][All Lists]
Advanced

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

Re: Windows shortcut for reboot to Linux


From: dman
Subject: Re: Windows shortcut for reboot to Linux
Date: Wed, 28 Nov 2001 12:18:48 -0500
User-agent: Mutt/1.2.5i

On Wed, Nov 28, 2001 at 05:22:38AM -0800, Kenneth Porter wrote:
| On Wed, 28 Nov 2001 21:51:02 +0900, Yoshinori K. Okuji wrote:
| 
| >Yes. Perhaps the easiest way is to put the configuration file on a FAT
| >partition so that you can modify that file in Windows as well as in
| >Linux. So I suggest that you reinstall GRUB, putting all the GRUB
| >files on a Windows partition. Then, you will be able to write a simple
| >batch file to replace the default boot number.
| 
| What's involved in "reinstalling" GRUB? I started with a Red Hat 7.1
| box and my upgrade to 7.2 replaced LILO with GRUB. I didn't get to see
| the process, just the change in menu style.

Copy the stage2 and menu.lst file to the partition you want it to be
on (C: is what you want).

Boot to the grub menu, then press "c" to get the command line (instead
of booting an OS).  Use the "setup" command to (re)install the stage1
on the MBR, but configured to look at C: instead of /boot for the
stage2 and menu.lst.

Keep a floppy handy in case you mess something up (grab the binary
from the ftp site and 'dd' it to a disk is the easiest way).

| My partitioning scheme is C:, /boot, D:-F:, /root, other Linux stuff. I
| just figured that GRUB was like LILO and there was a binary on the MBR
| that somehow was coded with how to find its config. I'm not really
| clear on the architecture or philosphy of GRUB. (Is there an overview
| document that shows how the pieces all fit together?)

Basically the stage1 is a small binary that has the device id of the
device that contains stage2 and menu.lst embedded in it.  The stage1
loads the stage2 from the disk, which then reads the menu.lst from
disk and gives you the menu (and command line).

HTH,
-D

-- 

(E)ighteen (M)egs (A)nd (C)onstantly (S)wapping




reply via email to

[Prev in Thread] Current Thread [Next in Thread]