On Tuesday 18 May 2004 13:16, InfoHelp wrote:
> For documentary completeness:

You stole my very words! :-)

Grub can now boot any o/s, that's why it's called the Grand Unified Boot 
Loader. So you can install it on the MBR instead of what is already there.
Note, however Yuri's contribution to the list shortly after Easer iirc, which 
documented a very nice way of dual booting.

There is a nice documented-by-word-of-mouth feature in the 2.6 series Linux 
Kernel which allows the use of the command 'make install' to copy the kernel 
to the /boot partition. Note that it has to be mounted previously!!!

This install method has the nice side effect of moving the previous kernel to 
vmlinuz.old and maintaining a set of symbolic links to the kernel files.
If you install Linux this way it completely automates the install process so 
you don't have to fuss about getting the file names in both the /boot dir and 
the /boot/grub/grub.conf correct.

Be sure to make a link between /boot/grub/grub.conf and /boot/grub/menu.lst

Here is my /boot/grub/grub.conf file:-

default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
#
title=Current Gentoo Linux
root (hd0,0)
kernel (hd0,0)/boot/vmlinuz root=/dev/hda3 vga=791
#
title=Penultimate Gentoo Linux
root (hd0,0)
kernel (hd0,0)/boot/vmlinuz.old root=/dev/hda3 vga=791
#
# Always a good idea to keep this on hand
#
title=Memtest86
root (hd0,0)
kernel /boot/memtest86/memtest.bin

Copy this to /boot/grub/grub.conf and you won't have to change it until 
Linux-2.8.x comes out.

( Make sure you have the /boot file system mounted! )

Note that grub starts counting partition numbers from 0 so (hd0,0) 
means /dev/hda1

The fact that the GRUB stage2 understands file systems and symbolic links 
means that you can use grub to boot any file in any Free file-system on any 
partition directly. For Secret O/Ss you can boot other boot loaders using the 
chainloader line.

Here is a link to the GRUB home page:-
http://www.gnu.org/software/grub/grub.html
And to the GRUB manual:-
http://www.gnu.org/software/grub/manual/html_node/index.html

-- 
Sincerely etc.
Christopher Sawtell

NB. This PC runs Linux. If you find a virus apparently from me,
it has forged the e-mail headers on someone else's machine.
Please do not notify me when this occurs. Thanks.

Reply via email to