Ubuntu boot does not display the Ubuntu kernel selection menu

Source: Internet
Author: User
Ubuntu kernel selection menu is displayed by default in Ubuntu 11.04 or earlier versions. However, this option is not selected by default after the upgrade from Ubuntu 11.10 to Ubuntu. This is the case when I install my own notebook. However, after the Ubuntu kernel is installed on the desktop, the Ubuntu kernel selection menu still appears. It is found that there are many options during the upgrade process from 11.04 to 11.10, one of which is about whether to display the Ubuntu kernel selection menu, however, I chose to retain the display. Is there any way to make it invisible? Solution

The Ubuntu kernel selection menu is displayed by default in the system before Ubuntu 11.10, but this option is not available by default after the upgrade from 11.04 to 11.10. This is the case when I install my own notebook.

However, after the Ubuntu kernel is installed on the desktop, the Ubuntu kernel selection menu still appears. It is found that there are many options during the upgrade process from 11.04 to 11.10, one of which is about whether to display the Ubuntu kernel selection menu, however, I chose to retain the display. Is there any way to make it invisible? The solution is as follows:

1. Enable Terminal. The default path is home/your user name. We need to convert the path. Enter the following command:Cd ../(Note that there are spaces)And then enter the following command:Cd ../(Note that there are spaces). In this way, go to the "/" directory.

2. Enter the following command:Sudo gedit boot/grub. cfgYou can see the grub boot file in the open gedit.

3. Drag the file to the end and you will find code similar to the following:

 1 ### BEGIN /etc/grub.d/30_os-prober ###
2 menuentry "Microsoft Windows XP Professional (on /dev/sda2)" --class windows --class os {
3 insmod part_msdos
4 insmod ntfs
5 set root='(hd0,msdos2)'
6 search --no-floppy --fs-uuid --set=root 5E64DD5464DD300F
7 drivemap -s (hd0) ${root}
8 chainloader +1
9 }
10 ### END /etc/grub.d/30_os-prober ###

Explanation: I installed XP and Ubuntu dual-systems.

Then what we need to do at www.linuxidc.com is### BEGIN/etc/grub. d/30_os-prober ###And### END/etc/grub. d/30_os-prober ###This generation of friends code is replaced with the following code(Backup is recommended):

 1 if [ "x${timeout}" != "x-1" ]; then
2 if keystatus; then
3 if keystatus --shift; then
4 set timeout=-1
5 else
6 set timeout=0
7 fi
8 else
9 if sleep --interruptible 3 ; then
10 set timeout=0
11 fi
12 fi
13 fi

Then clickSave, Close gedit, and finally close Terminal. You can restart your system immediately.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.