Switch the startup sequence of Grub2 under Ubuntu9.10

Source: Internet
Author: User
I installed Ubuntu9.10 on my desktop yesterday, but before that, Windows was installed on this machine, mainly for movie watching. So I hope that even after Ubuntu is installed, Grub's preferred startup project is Windows, Because Bunny may be completely confused when facing Grub. According to the previous knowledge, I went to/boot/grub/to find the menu. lst file to modify the default startup project. But the result is that there is no such file. After searching for Ubuntuwik

I installed Ubuntu 9.10 on my desktop yesterday, but before that, Windows was installed on this machine, mainly for movie watching. So I hope that even after Ubuntu is installed, Grub's preferred startup project is Windows, Because Bunny may be completely confused when facing Grub.
According to the previous knowledge, I went to/boot/grub/to find the menu. lst file to modify the default startup project. But the result is that there is no such file. After searching for Ubuntu wiki, I know that the default menu. lst file has been centrally managed by/boot/grub. cfg. Grub. cfg cannot be modified directly. To modify Gurb, you must first modify the/etc/default/grub file. For example:

I modified GRUB_DEFAULT = 0 to GRUB_DEFAULT = 4 (my Windows startup Item is 5th, so select 4 ).
In addition, I added GRUB_GFXMODE = 1024 × 768 to improve the Grub interface resolution.

Of course, this is not over yet. After saving the file, you need to execute

View sourceprint? 1 $ sudo update-grub

This script is used to update/boot/grub. cfg.
After the restart, Windows becomes the default startup item, and the display resolution reaches 1024 × 768.

Ubuntu's segment management design can be seen everywhere. From Apache site management to Grub configuration management, an indirect management layer is added on the basis of directly modifying the configuration file.

I personally think that although this design was not easy to understand at the beginning, indirect management can verify the configuration file before officially enabling the modified configuration, this prevents the service from being started or even the system from being started due to incorrect modifications. Such a small place does reflect the considerate Design of Ubuntu users, for example, it would be perfect to describe the correct configuration file modification method in the original configuration file.

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.