Removing GRUB Entries
Hello, everytime I update my Ubuntu kernel, another entry is created on GRUB. How should I go about removing some entries? I think I can edit the menu. lst file and remove them, but I want to make sure I do it right.
Hello, everytime I update my Ubuntu kernel, another entry is created on GRUB. How should I go about removing some entries? I think I can edit the menu.lst file and remove them, but I want to make sure I do it right.
## ## End Default Options ##
title Ubuntu, kernel 2.6.15-26-686
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-26-686 root=/dev/sda3 ro quiet splash
initrd /boot/initrd.img-2.6.15-26-686
savedefault
boot
title Ubuntu, kernel 2.6.15-26-686 (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-26-686 root=/dev/sda3 ro single
initrd /boot/initrd.img-2.6.15-26-686
boot
title Ubuntu, kernel 2.6.15-26-386
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-26-386 root=/dev/sda3 ro quiet splash
initrd /boot/initrd.img-2.6.15-26-386
savedefault
boot
title Ubuntu, kernel 2.6.15-26-386 (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-26-386 root=/dev/sda3 ro single
initrd /boot/initrd.img-2.6.15-26-386
boot
title Ubuntu, kernel 2.6.15-23-386
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/sda3 ro quiet splash
initrd /boot/initrd.img-2.6.15-23-386
savedefault
boot
title Ubuntu, kernel 2.6.15-23-386 (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/sda3 ro single
initrd /boot/initrd.img-2.6.15-23-386
boot
title Ubuntu, memtest86+
root (hd0,2)
kernel /boot/memtest86+.bin
boot
### END DEBIAN AUTOMAGIC KERNELS LIST
I want to remove the 386 ones, leaving 686 and memtest.
## ## End Default Options ##
title Ubuntu, kernel 2.6.15-26-686
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-26-686 root=/dev/sda3 ro quiet splash
initrd /boot/initrd.img-2.6.15-26-686
savedefault
boot
title Ubuntu, kernel 2.6.15-26-686 (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-26-686 root=/dev/sda3 ro single
initrd /boot/initrd.img-2.6.15-26-686
boot
title Ubuntu, kernel 2.6.15-26-386
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-26-386 root=/dev/sda3 ro quiet splash
initrd /boot/initrd.img-2.6.15-26-386
savedefault
boot
title Ubuntu, kernel 2.6.15-26-386 (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-26-386 root=/dev/sda3 ro single
initrd /boot/initrd.img-2.6.15-26-386
boot
title Ubuntu, kernel 2.6.15-23-386
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/sda3 ro quiet splash
initrd /boot/initrd.img-2.6.15-23-386
savedefault
boot
title Ubuntu, kernel 2.6.15-23-386 (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/sda3 ro single
initrd /boot/initrd.img-2.6.15-23-386
boot
title Ubuntu, memtest86+
root (hd0,2)
kernel /boot/memtest86+.bin
boot
### END DEBIAN AUTOMAGIC KERNELS LIST
I want to remove the 386 ones, leaving 686 and memtest.
Participate on our website and join the conversation
This topic is archived. New comments cannot be posted and votes cannot be cast.
Responses to this topic
In Ubuntu, you can manually remove the Grub entriee, but this still leaves the actual older kernel-image instact on your system. Best to follow the suggestions noted on this thread] to do so.
But, make sure that your current (new) kernel is working properly first!
The older kernel entries are left there for a reson, if the new kernel fails for some reason, you have a fallback.
If you want to still manually edit the menu.lst file, I think the correct terminal command would be;
gksudo gedit /boot/grub/menu.lst as root user .
But, make sure that your current (new) kernel is working properly first!
The older kernel entries are left there for a reson, if the new kernel fails for some reason, you have a fallback.
If you want to still manually edit the menu.lst file, I think the correct terminal command would be;
gksudo gedit /boot/grub/menu.lst as root user .
Does uninstalling the kernel from Synaptic remove the entry from GRUB as well?
[Edited by DetroitBaseball on 2006-07-20 02:07:02]
[Edited by DetroitBaseball on 2006-07-20 02:07:02]
Nevermind, I already took care of this. Solved. Thanks.