Jump to content


Photo

Removing GRUB Entries


  • Please log in to reply
3 replies to this topic

#1 DetroitBaseball

DetroitBaseball

    stranger

  • Members
  • 3 posts

Posted 19 July 2006 - 08:05 PM

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.

#2 danleff

danleff

    Carpal Tunnel

  • Moderators
  • 2903 posts

Posted 20 July 2006 - 04:40 AM

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 [url=http://www.linuxquestions.org/questions/showthread.php?t=457013] 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.

#3 DetroitBaseball

DetroitBaseball

    stranger

  • Members
  • 3 posts

Posted 20 July 2006 - 07:49 AM

Does uninstalling the kernel from Synaptic remove the entry from GRUB as well?
[Edited by DetroitBaseball on 2006-07-20 02:07:02]


#4 DetroitBaseball

DetroitBaseball

    stranger

  • Members
  • 3 posts

Posted 20 July 2006 - 10:02 AM

Nevermind, I already took care of this. Solved. Thanks.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

IPB Skin By Virteq