Grub for Debian can be installed with:

apt-get install grub

The default configuration file (usually /etc/grub.conf) can be found in /boot/grub/menu.lst .

It seems strange to have a config file in /boot/grub rather than under /etc but it makes sense when you know that by default Debian creates a seperate /boot partition for the kernels etc, and if the config was in /etc that would be in a different partition from the other grub files.

The "menu.lst" file is filled with examples and explanations.

Here are some hints for non-usual configurations:

Two physical HDs:

<...default configuration...>
title           Debian GNU/Linux, kernel 2.6.9-1-k7
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.9-1-k7 root=/dev/hda1 ro
initrd          /boot/initrd.img-2.6.9-1-k7
boot
# windows98se on /dev/hdb1
title           Windows98se
map             (hd0) (hd1)
map             (hd1) (hd0)
rootnoverify    (hd1,0)
makeactive
chainloader     +1

To create a new /boot/grub/menu.lst file, just run

/sbin/update-grub

You can find examples for other OSs in /usr/share/doc/grub/examples/menu.lst


CategoryDocumentation CategoryObsolete

GrubWiki: Debian (last edited 2008-05-16 19:22:38 by VesaJääskeläinen)