Friday, January 29, 2010

Selecting a Default Kernel to Boot (GRUB2)

A recent Kernel upgrade (2.6.32) brought with it a nasty regression: the Kernel does not detect that my USB cable modem link is up.

But I still have the previous Kernel (2.6.30) installed, so the workaround is rather simple - make this Kernel the default one in GRUB2.

I didn't bother looking this up anywhere, but the following procedure works for me (as root):
  1. open /etc/default/grub for editing
  2. modify GRUB_DEFAULT:
    GRUB_DEFAULT=2
    the number in red is the number of the GRUB2 menu entry you wish to make default (the first menu entry number is 0)
  3. run
    update-grub

No comments:

Post a Comment