when I open computer there are many options in GRUB menu,is there any way to see only two options

Asked by suvala

when I open computer there are many options in GRUB menu,is there any way to see only two options? i.e. either ubuntu or xp windows. How can I set my computer to open in xp window by default instead of ubuntu? Because ubuntu is not allowing trader terminal to be installed. My xp is on sda1.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu grub2 Edit question
Assignee:
No assignee Edit question
Solved by:
delance
Solved:
Last query:
Last reply:
Revision history for this message
suvala (suvala-msn) said :
#1

I had upgraded my ubuntu to 10.10 by using update manager. The text in GRUB menu appears as below.

Ubuntu,with Linux 2.6.35-28-generic
Ubuntu,with Linux 2.6.35-28-generic (Recovery mode)
Ubuntu,with Linux 2.6.35-30-generic
Ubuntu,with Linux 2.6.35-30-generic (Recovery Mode)
Ubuntu,with Linux 2.6.35-29-generic
Ubuntu,with Linux 2.6.35-29-generic (Recovery Mode)
Ubuntu,with Linux 2.6.35-28-generic
Ubuntu,with Linux 2.6.35-28-generic (Recovery Mode)
Ubuntu,with Linux 2.6.35-27-generic
Ubuntu,with Linux 2.6.35-27-generic (Recovery Mode)
Ubuntu,with Linux 2.6.35-26-generic
Ubuntu,with Linux 2.6.35-26-generic (Recovery Mode)
Ubuntu,with Linux 2.6.35-25-generic
Ubuntu,with Linux 2.6.35-25-generic (Recovery Mode)
Ubuntu,with Linux 2.6.35-24-generic
Ubuntu,with Linux 2.6.35-24-generic (Recovery Mode)
Ubuntu,with Linux 2.6.35-23-generic
Ubuntu,with Linux 2.6.35-23-generic (Recovery Mode)
Ubuntu,with Linux 2.6.35-22-generic
Ubuntu,with Linux 2.6.35-22-generic (Recovery Mode)
Ubuntu,with Linux 2.6.35-21-generic
Ubuntu,with Linux 2.6.35-21-generic (Recovery Mode)
Memory test (mem test 86+)
Memory test (memtest86 +, Serial Console 115200)
Microsoft Windows XP Professional (On /dev/sda1)
Ubuntu,with Linux 2.6.32-21-generic (On /dev/sda9)
Ubuntu,with Linux 2.6.32-21-generic (Recovery Mode)(On /dev/sda9)

Use the /|\ and \|/ keys to select which entry is highlighted, press enter to boot the selected OS. 'e' to edit
commands before booting or 'c' for c command-line.

Revision history for this message
Selene ToyKeeper (toykeeper) said :
#2

The easiest way to get rid of the extra boot options is to remove the old kernels you're not using any more. You can do this in the package manager.

I'm not sure what the GUI method is for changing the default boot option, but it can be done by editing the GRUB menu file. I don't recommend doing this unless you know what you're doing though, since it could make your system fail to boot.

Reassigning this question to a more appropriate project; you can probably get a better answer there.

Revision history for this message
Best delance (olivier-delance) said :
#3

How to remove kernels from Grub2 menu.

--------------------------------------

In the Grub menu, you have for each kernel two lines:

- first one for normal boot

- second for recovery boot (usefull to manage issues like graphic driver)

Each time update-manager install a new kernel, it keeps the previous kernel.

Sometimes a new kernel doesn't support your hardware, and to be able to boot and fix issue, you need to use previous kernel. Unfortunately, it means that after some times you get lot of kernels in menu.

The best solution is to uninstall via packet management the previous kernels.

The solution is provided in:

   http://www.go2linux.org/clean-linux-kernel-images-grub-menu

Revision history for this message
suvala (suvala-msn) said :
#4

Yes This is correct one. Now only two kernels remained.

Revision history for this message
suvala (suvala-msn) said :
#5

Thanks delance, that solved my question.

Revision history for this message
suvala (suvala-msn) said :
#6

Options removal problem solved, but while trying it, one more partition created which shows as under
Ubuntu,with Linux 2.6.32-21-generic (On /dev/sda9)
Ubuntu,with Linux 2.6.32-21-generic (Recovery Mode)(On /dev/sda9)
It is not necessary for me. I tried to remove it as above but it can't be removed. Please guide me how can I remove it?

Revision history for this message
delance (olivier-delance) said :
#7

"Recovery" is not a partition, but a different way of booting kernel 2.6.32-21-generic. This option could become useful is a new delivered packet (e.g. a graphic packet) break something in Ubuntu configuration. Recovery mode is a more reliable way of booting, which can allow you to fix problems without to have to boot from Ubuntu installation media.
So I advise you to keep it. It uses any more resources on computer.