PDA

View Full Version : Question about kernels


timelord726
March 13th, 2006, 08:05 AM
My GRUB menu.lst file contains the following options:

title Ubuntu, kernel 2.6.12-10-amd64-k8 Default
root (hd1,0)
kernel /boot/vmlinuz root=/dev/sdb1 ro quiet splash
initrd /boot/initrd.img
savedefault
boot

title Ubuntu, kernel 2.6.12-10-amd64-k8 Default (recovery mode)
root (hd1,0)
kernel /boot/vmlinuz root=/dev/sdb1 ro single
initrd /boot/initrd.img
boot

title Ubuntu, kernel 2.6.12-10-amd64-k8
root (hd1,0)
kernel /boot/vmlinuz-2.6.12-10-amd64-k8 root=/dev/sdb1 ro quiet splash
initrd /boot/initrd.img-2.6.12-10-amd64-k8
savedefault
boot

title Ubuntu, kernel 2.6.12-10-amd64-k8 (recovery mode)
root (hd1,0)
kernel /boot/vmlinuz-2.6.12-10-amd64-k8 root=/dev/sdb1 ro single
initrd /boot/initrd.img-2.6.12-10-amd64-k8
boot

I am curious to know, what is the difference between the kernel choices marked "Default" and those not marked "Default." Probably a silly question but I have been wondering this ever since I installed the AMD64 version of Ubuntu. Are either of these safe to remove? If I wanted to remove one, which should I remove?

Thanks very much!

Sutekh
March 13th, 2006, 07:48 PM
Can you boot these 'Default' kernels? I was just noticing these lines (the 'Default')
kernel /boot/vmlinuz root=/dev/sdb1 ro single
initrd /boot/initrd.img
as opposed to these lines (those without 'Default')
kernel /boot/vmlinuz-2.6.12-10-amd64-k8 root=/dev/sdb1 ro quiet splash
initrd /boot/initrd.img-2.6.12-10-amd64-k8

I don't think those 'Default' entires could actually do anything as they don't specify a kernel image to boot.

RAOF
March 13th, 2006, 07:56 PM
Can you boot these 'Default' kernels? I was just noticing these lines (the 'Default')
kernel /boot/vmlinuz root=/dev/sdb1 ro single
initrd /boot/initrd.img
as opposed to these lines (those without 'Default')
kernel /boot/vmlinuz-2.6.12-10-amd64-k8 root=/dev/sdb1 ro quiet splash
initrd /boot/initrd.img-2.6.12-10-amd64-k8

I don't think those 'Default' entires could actually do anything as they don't specify a kernel image to boot.
They do specify a kernel image to boot: they specify /boot/vmlinuz, which is a symlink which (should) always points to the most recently installed kernel. There's (generally) no difference between the "default" option and the non-default option, although it's possible that you could set it up so that there would be.

Sutekh
March 13th, 2006, 08:05 PM
They do specify a kernel image to boot: they specify /boot/vmlinuz, which is a symlink which (should) always points to the most recently installed kernel. There's (generally) no difference between the "default" option and the non-default option, although it's possible that you could set it up so that there would be.
Ok, there you go. Thanks for the info. Are the 'Default' kernel entries setup from the installation by default?

When a new kernel is installed, it usually updates the menu to include itself, doesn't it? Is there any advantage to keeping the 'Default' entry in this case, as the most recent kernel should be in the menu anyway?

RAOF
March 13th, 2006, 08:10 PM
...When a new kernel is installed, it usually updates the menu to include itself, doesn't it? Is there any advantage to keeping the 'Default' entry in this case, as the most recent kernel should be in the menu anyway?
I can't think of any good reason to keep the "default" around. Except, perhaps, that if you've got a lot of kernels making the top entry say "default" makes a bit of user-interface sense. The "Default" options don't give you access to anything you haven't already got.

timelord726
March 13th, 2006, 08:34 PM
Thank you guys very much! That's valuable information and I appreciate your speedy response. :)