Grub install on Debian Howto

By default Debian install Lilo on i386 arch. I really like lilo, but after a couple of broken config file and severall other hitch. I decided to install grub. Grub is a bit hard if you never install it before. But mainly because the apt-get install grub doesn’t install a default file. So

apt-get install grub
grub-install /dev/hdXX #where to put the bootloader

Now you can reboot. But to have a nice menu edit a file /boot/grub/menu.lst like that:

default=0
timeout=5
boot=/dev/hda

title Linux-2.6.7
root (hd0,1)
kernel /boot/vmlinuz-2.6.7 root=/dev/hda2 vga=791 ro

title Debian-2.4
root (hd0,1)
kernel /boot/vmlinuz-2.4.26-1-686-smp ro root=/dev/hda2
initrd=/boot/initrd.img-2.4.26-1-686-smp

title Memtest
root (hd0,1)
kernel /boot/memtest86+.bin

Note: My boot is hda2 (hd0,1) second partition of the first disk

Related posts :

admin August 3rd, 2004


5 Responses to “Grub install on Debian Howto”

  1. pthichaton 03 Aug 2004 at 3:10 pm

    Pour avoir le clavier en FR au boot rajouter les lignes suivantes dans le menu.lst

    # Emulation d’un clavier azerty_FR

    setkey less backquote

    setkey greater tilde

    setkey ampersand 1

    setkey 1 exclam

    setkey tilde 2

    setkey 2 at

    setkey doublequote 3

    setkey 3 numbersign

    setkey quote 4

    setkey 4 dollar

    setkey parenleft 5

    setkey 5 percent

    setkey minus 6

    setkey 6 caret

    setkey backquote 7

    setkey 7 ampersand

    setkey underscore 8

    setkey 8 asterisk

    setkey backslash 9

    setkey 9 parenleft

    setkey at 0

    setkey 0 parenright

    setkey parenright minus

    setkey numbersign underscore

    setkey a q

    setkey A Q

    setkey z w

    setkey Z W

    setkey caret bracketleft

    setkey dollar bracketright

    setkey q a

    setkey Q A

    setkey m semicolon

    setkey M colon

    setkey bracketleft quote

    setkey percent doublequote

    setkey asterisk backslash

    setkey bracketright bar

    setkey w z

    setkey W Z

    setkey comma m

    setkey question M

    setkey semicolon comma

    setkey period less

    setkey colon period

    setkey slash greater

    setkey exclam slash

    setkey bar question

  2. ludoon 07 Aug 2004 at 12:40 am

    Debian includes the update-grub program which manager menu.lst and add new entries

  3. Jkxon 07 Aug 2004 at 12:59 am

    grubconf is a nice Gtk GUI too :)

  4. harlocKon 09 Nov 2004 at 6:40 pm

    ..sure!
    upgrade-grub work fine!..
    this was my way:

    apt-get install grub
    grub-install /dev/hdaXX

    update-grub

    apt-get remove –purge lilo

    shutdown -r now

    and the box was rebooting fine with grub!

    all via ssh

    enjoy linux

  5. c0rg1on 23 Dec 2004 at 11:00 am

    Did anyone try this on IBM ThinkPad T23? Lilo 22.6 from Testing is crashing and GRUB can’t find the init…

    thanx -> mail.

Comments RSS

Leave a Reply