How to modify the default system of the Startup menu in Ubuntu 10.04

Source: Internet
Author: User

How to modify the default system of the Startup menu in Ubuntu 10.04

Ubuntu 10.04 has been installed recently. Because Windows 7 and other systems have been installed before, the Startup menu is displayed after Ubuntu is installed. By default, Ubuntu is started. I have found many ways to modify the startup options on the Internet, and there are different opinions. The summary is as follows:

I,The best way to access the Internet is to install startupmanager.-- Graph startup Item Manager

Open the terminal and enter sudo apt-get install startupmanager.
Install the startup Manager
System-system management-start manager, select the default boot operating system.

II,The most convenient method is to adjust the default startup sequence of Windows (grub. cfg does not need to be modified)

The file names of script files in the/etc/grub. d directory start with numbers, which determines the order in which each file content is executed when update-grub is executed.

1. Run the sudo nautilus command to open the file browser with the root permission. Find the file 30_os-prober and change the number 30 of the file name 30_os-prober to a number ranging from 05 to 10 (not many options are 06, 07, 08, AND 09). For example, change it to 08_os-prober, the created grub. the menu items in cfg are automatically sorted before ubuntu;

2. Run the sudo update-grub command. As you can see, Windows 7 has ranked first.

Iii. Methods most described on the Internet (modify grub. cfg)

Run the sudo gedit/boot/grub. cfg command to open the grub. cfg file,

One way is to change the value 0 in the set default = "0" file to the sequence number of the operating system to be started by default (starting from 0 ). Save the settings;

Another method is to cut the start instruction section corresponding to Windows to the beginning of the Start instruction section;

Windows can be started by default in both methods, but grub can be modified. note: When you use the update-grub command or system upgrade or grub upgrade, grub. the cfg file will be restored. You need to modify it again.

If you are lazy to modify the grub. cfg file after each update-grub operation, you can perform the following operations:

Use sudo gedit/etc/grub. b/00_header command to open the file 00_header and find the ser default = "$ {GRUB_DEFAULT}" line, replace $ {GRUB_DEFAULT} with the serial number of the operating system to be started by default (starting from 0), save the settings, and then update-grub. In this way, the grub. cfg generated after each update-grub is automatically changed to what we want.

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.