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:


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

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

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

Related Posts

5 thoughts on “Grub install on Debian Howto

  1. 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. ..sure!
    upgrade-grub work fine!..
    this was my way:

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


    apt-get remove –purge lilo

    shutdown -r now

    and the box was rebooting fine with grub!

    all via ssh

    enjoy linux

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

    thanx -> mail.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>