Modify the Grub boot dish of Ubuntu9.10

Source: Internet
Author: User
Previously, my Ubuntu system used to modify the grub menu by modifying the/boot/Grub/menu. lst file, but modifying the grub menu in Ubuntu9.10 is invalid. Later, I found that Ubuntu9.10 uses Grub2 and no longer uses the original menu. lst. Instead, it is changed to the grub. cfg read-only file in the same directory. Later I remembered that when I installed Ubuntu9.10, the original system partition was not formatted, so some original system file security

Previously, my Ubuntu system used to modify the grub menu by modifying the/boot/Grub/menu. lst file, but modifying this file in Ubuntu 9.10 became invalid. Later, I found out that Ubuntu 9.10 uses Grub2 and no longer uses the original menu. lst, but changes it to the grub. cfg read-only file in the same directory. Later I remembered that when I installed Ubuntu 9.10, the original system partition was not formatted, so some original system files were not cleared during installation, resulting in the existence of these two files in my system at the same time. It is easy to understand the cause, but the file cannot be modified by default using the sudo command, because it is also read-only for root.

Therefore, you must modify the attributes first. You can run the following command on the terminal to make them writable:

Sudo chmod + w/boot/grub. cfg

Or

Sudo chown a = wr/boot/grub. cfg

Then you can use the following command to modify the content of grub. cfg.

Sudo gedit/boot/grub. cfg

The content is different from the previous menu. lst format, but the writing format is relatively standard and easy to understand. You can modify the code to modify the menu.

Related Article

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.