Het probleem is NIET beperkt tot een kernel upgrade maar ook bij het wissen van een oude kernel. Bijgaand /boot/grub/menu.lst voor en na het wissen.
(voor de leesbaarheid heb ik overbodig commentaar gewist)
Voor het wissen:
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
default 2
timeout 10
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
title Ubuntu gutsy (development branch), kernel 2.6.22-12-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.22-12-generic root=/dev/hda3 ro quiet splash
initrd /boot/initrd.img-2.6.22-12-generic
quiet
### BEGIN AUTOMAGIC KERNELS LIST
title Ubuntu, kernel 2.6.20-16-generic
root (hd0,4)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=a1359b85-57d4-42ba-9dce-35cc2d7536ca ro quiet splash
initrd /boot/initrd.img-2.6.20-16-generic
quiet
savedefault
title Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root (hd0,4)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=a1359b85-57d4-42ba-9dce-35cc2d7536ca ro single
initrd /boot/initrd.img-2.6.20-16-generic
title Ubuntu, kernel 2.6.20-15-generic
root (hd0,4)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=a1359b85-57d4-42ba-9dce-35cc2d7536ca ro quiet splash
initrd /boot/initrd.img-2.6.20-15-generic
quiet
savedefault
title Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root (hd0,4)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=a1359b85-57d4-42ba-9dce-35cc2d7536ca ro single
initrd /boot/initrd.img-2.6.20-15-generic
title Ubuntu, memtest86+
root (hd0,4)
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
Vervolgens wis ik 2.6.20-15 met de opdracht:
sudo apt-get remove linux-image-2.6.20-15-generic linux-restricted-modules-2.6.20-15-generic
De nieuwe /boot/grub/menu.lst heeft een onjuiste root (hd0,6):
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
default 2
timeout 10
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
title Ubuntu gutsy (development branch), kernel 2.6.22-12-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.22-12-generic root=/dev/hda3 ro quiet splash
initrd /boot/initrd.img-2.6.22-12-generic
quiet
### BEGIN AUTOMAGIC KERNELS LIST
title Ubuntu, kernel 2.6.20-16-generic
root (hd0,6)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=a1359b85-57d4-42ba-9dce-35cc2d7536ca ro quiet splash
initrd /boot/initrd.img-2.6.20-16-generic
quiet
savedefault
title Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root (hd0,6)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=a1359b85-57d4-42ba-9dce-35cc2d7536ca ro single
initrd /boot/initrd.img-2.6.20-16-generic
title Ubuntu, memtest86+
root (hd0,6)
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
Zoals verwacht is de keuze voor 20.6.20-15-generic gewist maar geeft grub bij het starten van 20.6.20-16-generic Error 15: File not found

De oplossing is in /boot/grub/menu.lst alle regels (hd0,6) wijzigen in (hd0,4).
Maar hoe kan ik dit structureel oplossen?