Modify the default startup sequence of grub

Source: Internet
Author: User

Modify the default startup sequence of grub

Grub now has two versions, one grub and one grub2, which have different operations.

A friend installed centos may be grub. I installed ubuntu14.04 on my computer, grub2. I will demonstrate the grub2 process.

Modify the default startup sequence of GRUB

Modify the default startup sequence of GRUB2

First, we cd it to the/boot/grub directory of ubuntu. There is a file grub. cfg in this directory, which is the file set to start by default.

Friends who just installed ubuntu may encounter such problems. This is because ubuntu makes this file unwritable.

View the permissions of the grub. cfg file as follows. Read-Only files.

Modify the permission and execute the command sudo chmod a + w./grub. cfg full + write.

Now the File Permission is changed to this.

Below is the grub boot item on my computer. There are 5th Windows systems. Because its first index is 0, the next 5th indexes are 4.

In the grub. cfg file, find set default = "0" and change 0 to the index of your computer's windows System (here I am 4)

Save, restart, OK!

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.