Compatible Support Forums: Removing GRUB Entries

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Removing GRUB Entries

#1 User is offline   DetroitBaseball 

  • stranger
  • Group: Members
  • Posts: 3
  • Joined: 19-July 06

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.
0

#2 User is offline   danleff 

  • Carpal Tunnel
  • Group: Moderators
  • Posts: 2903
  • Joined: 30-August 02

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.
0

#3 User is offline   DetroitBaseball 

  • stranger
  • Group: Members
  • Posts: 3
  • Joined: 19-July 06

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]

0

#4 User is offline   DetroitBaseball 

  • stranger
  • Group: Members
  • Posts: 3
  • Joined: 19-July 06

Posted 20 July 2006 - 10:02 AM

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

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users