Multiplying Ubuntu's in Grub menu, Ubuntu 8.10

Asked by Tirrex_Falcon

So over the course of a couple months, after I do a system update and reboot my system, I have been greeted with more and more Ubuntu versions in my GRUB menu. I now have 3 different version numbers of Ubuntu, My question is...

Is this normal or am I doing something wrong?

Also is there a way to remove the older version entries before they push windows completely off the menu screen?

Thanks,

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu grub Edit question
Assignee:
No assignee Edit question
Solved by:
Tirrex_Falcon
Solved:
Last query:
Last reply:
Revision history for this message
juancarlospaco (juancarlospaco) said :
#1

Its normal.

theres a way to remove the older version entries, open a Terminal, type and press ENTER :

sudo apt-get autoremove ; sudo apt-get autoclean

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#2

The items you see into Grub menu are different release of installed kernels

http://en.wikipedia.org/wiki/Kernel_%28computer_science%29

on your pc.

They are not different Ubuntu versions.

So removing old kernels you will remove also the unwanted items from Grub menu.

Hope this helps

Revision history for this message
Joker Wild (lajjr-deactivatedaccount) said :
#3

Tirrex_Falcon,

Like you were told by others it is normal, but if you would like to remove the menu items only then you can do this.

open a terminal type sudo gedit /boot/grub/menu.lst

go down the list the menu it will look like this.

title Ubuntu 8.04.2, kernel 2.6.24-23-generic
root (hd1,0)
kernel /boot/vmlinuz-2.6.24-23-generic root=UUID=033d3ddd-9128-4f27-a7d2-d305bb0ac27b ro quiet splash apparmor.enabled=0 selinux=1
initrd /boot/initrd.img-2.6.24-23-generic
quiet

title Ubuntu 8.04.2, kernel 2.6.24-23-generic (recovery mode)
root (hd1,0)
kernel /boot/vmlinuz-2.6.24-23-generic root=UUID=033d3ddd-9128-4f27-a7d2-d305bb0ac27b ro single
initrd /boot/initrd.img-2.6.24-23-generic

title Ubuntu 8.04.2, kernel 2.6.24-22-generic
root (hd1,0)
kernel /boot/vmlinuz-2.6.24-22-generic root=UUID=033d3ddd-9128-4f27-a7d2-d305bb0ac27b ro quiet splash apparmor.enabled=0 selinux=1
initrd /boot/initrd.img-2.6.24-22-generic
quiet

title Ubuntu 8.04.2, memtest86+
root (hd1,0)
kernel /boot/memtest86+.bin
quiet

you can make look like this.

 title Ubuntu 8.04.2, kernel 2.6.24-23-generic
root (hd1,0)
kernel /boot/vmlinuz-2.6.24-23-generic root=UUID=033d3ddd-9128-4f27-a7d2-d305bb0ac27b ro quiet splash apparmor.enabled=0 selinux=1
initrd /boot/initrd.img-2.6.24-23-generic
quiet

title Ubuntu 8.04.2, kernel 2.6.24-23-generic (recovery mode)
root (hd1,0)
kernel /boot/vmlinuz-2.6.24-23-generic root=UUID=033d3ddd-9128-4f27-a7d2-d305bb0ac27b ro single
initrd /boot/initrd.img-2.6.24-23-generic

title Ubuntu 8.04.2, memtest86+
root (hd1,0)
kernel /boot/memtest86+.bin
quiet

what you have to keep is the latest main boot kernel, recovery, memtest section then delete the other ones.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#4

To remove grub menu items without removing old installed kernels (not suggested) you can install and use:

Please first enable the universe and multiverse repository:

Open System → Administration → Software sources → [ Tab Ubuntu software ]

enable "Community-mainteined Open Source software ( universe )"
enable "Proprietary drivers for devices ( restricted )"
enable "Software restrictecd by copyright or legal issue ( multiverse )"

Close and confirm the repository reload.

Then open a Terminal from the menu Applications → Accessories → Terminal and type:

sudo apt-get update
sudo apt-get install startupmanager

you will find startupmanger menu under System → Administration → StartUp-Manager

Hope this helps

Revision history for this message
george (gk-joimail) said :
#5

Another fix is
I will explain here how to do that:
.1. open a terminal window (in your menu <Applications>,... <Accesoires>,... <Terminal>,...
.2. in that windows enter the next command, what will ask you for your password (this is normal)

   sudo nano /boot/grub/menu.lst

.3. you now see the Nano-Editor, we skip to line 98/100 (page 3) by entering the next command; note that ^W here means pressing Ctrl-W ...

   ^Whowmany=

.4. you will see 3 lines with the word how many, explaining how it works...
change the LAST of those lines, so that the word ALL is replaced by the digit 2, then it says:

   # how many=2

.5. in the end you want to SAVE the grub.menu, do that by pressing Ctrl-Ooh

   ^O

.6. close the nano-editor bij the key-combination Ctrl-X

   ^X

.7. close the terminal window, you can choose between the quick-combination
   ^D
or type in the command
   exit

Now reboot the system; today you see no change (because you already had 2 kernels in the list). But after the next update of your Ubuntu, you will see that the first line changed.

George

Revision history for this message
Tirrex_Falcon (matthew-tidd) said :
#6

I'll have to give it a shot and see what happens. I'll let you know what happens.

Thanks

Revision history for this message
Joker Wild (lajjr-deactivatedaccount) said :
#7

Tirrex,

The kernels are not deleted by startup manager. But it does remove the extra kernels in menu.list

Best Regards,
Leo

Revision history for this message
Tirrex_Falcon (matthew-tidd) said :
#8

So the consensus is that they aren't hurting anything leave them be. Works for me I guess. Thanks.