too many ubuntu lines too chose on start up

Asked by William H Fader

At start up...I have 6 lines of ubuntu to choose from...the 1st one works just fine...the 2nd line is the same with (recovery)....the last line is to log on with windows xp....how do I remove the other duplicates in between....thank you....bill

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Elfy (elfy) said :
#1

You can edit a file called menu.lst

Backup first

sudo cp /boot/grub/menu.lst /boot/grub/menu.lst.bak

Then open to edit it

gksudo gedit /boot/grub/menu.lst

Go down the file to

## ## End Default Options ##
Ther you will see the boot options you get - to lose an option from the list you could delete or comment them out with an # before where it says title

For example

#title Ubuntu 8.04, kernel 2.6.24-16-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=ccf8f1c4-97d0-4544-a0ee-04088d5d67a9 ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
quiet

#title Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=ccf8f1c4-97d0-4544-a0ee-04088d5d67a9 ro single
initrd /boot/initrd.img-2.6.24-16-generic

title Ubuntu 8.04, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
quiet

I would not comment all the options out - just the oldest kernel option, I assume you now have -16, -17 and -18

Leave 2 accessible is a good idea.

Later when you are sure you can remove the old kernels with synaptic and it will clean up the menu list.

Revision history for this message
William H Fader (whf1130) said :
#2

Thank you for the info....I should have mentioned that I'm a idiot....and although I tried to figure out your directions....it still didn't remove the 2 extra versions of ubuntu on my start up....if you had the time too give me step by step instructions I would appreciate it....thanks again...bill

Revision history for this message
Murali Krishna Marimekala (murali-marimekala) said :
#3

Hi William,

Easy way to solve your issue.

First note down the 6 lines which are being displayed when you start up Ubuntu in grub menu. (These lines will be present in menu.lst as title along with boot details).

Backup menu.lst first

sudo cp /boot/grub/menu.lst /boot/grub/menu.lst.bak

Then open to edit it

sudo gedit /boot/grub/menu.lst

Go down the file to
...........................................................................................................................................................

## ## End Default Options ##
Ther you will see the boot options you get - to lose an option from the list you could delete or comment them out with an # before where it says title

For example

#title Ubuntu 8.04, kernel 2.6.24-16-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=ccf8f1c4-97d0-4544-a0ee-04088d5d67a9 ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
quiet

#title Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=ccf8f1c4-97d0-4544-a0ee-04088d5d67a9 ro single
initrd /boot/initrd.img-2.6.24-16-generic

title Ubuntu 8.04, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
quiet

...........................................................................................................................................................

In your menu.list, if you grep for title you will get 6 lines highlighted. Just go on checking one by one and decide weather you need them or not. usually, Ubuntu kernel on root(hda0,0) and recovery partition can be left as it is and the other can be removed.

Note: Used forestpixie description also while explaining the problem. Thanks forestpixie.

If this doesnt resolve your problem, send me menu.lst and mail details about which options you need at boot up. I can help customorize it and send you back. Which you just need to dump t relevant path and reboot your pc.

Thank you,
Murali

Revision history for this message
Elfy (elfy) said :
#4

This is the problem with using the answers at launchpad instead of the forum.

The time delay in geetting things done is prohibitive - there are hundreds of thes threads at the forum, and people there who'll answer questions most times - then, rather than hours later.

You can post the contents of files like this there so people can see what you did wrong :)

Can you help with this problem?

Provide an answer of your own, or ask William H Fader for more information if necessary.

To post a message you must log in.