Grub Small adjustment under Ubuntu14.04

Source: Internet
Author: User

The dual-system installation sequence in the computer is ubuntu->windows.


After the restart, the first entry is the Grub interface, which shows the approximate starting order in the interface:
Ubuntu
Ubuntu Advanced Options
......
Windows..

On how to modify the boot order method, most of the internet can be found to modify the "set default" after the relevant parameters, but there are two main problems:
(1) from the visual, the general hope that the most commonly used options can be placed in front;
(2) Since grub cannot jump directly from the last item to the first item, the replacement option is more troublesome.
So, from my point of view, I want the boot order as follows:
Windows..
Ubuntu
Ubuntu Advanced Options
......

1. Open GRUB Configuration file
(1) Get write file permissions

$sudo chmod +w/boot/grub/grub.cfg

(2) Backup files

$CD/boot/grub/$sudo CP grub.cfg grub00.cfg

(3) Open file

$sudo VI grub.cfg

2. Modify the sequence
(1) Find the "# # # # # # Begin/etc/grub.d/30_os-prober" Comment Line
(2) Find the "# # # # # # End/etc/grub.d/30_os-prober" Comment Line
(3) The middle section of the above two lines of comments is related to Windows Startup items
(4) Find the "# # # # # # begin/etc/grub.d/10_linux" Comment Line
(5) Change note the following are the contents of Ubuntu Startup items
(5) Cut the contents of Windows startup item before moving to Ubuntu boot content
3. Modify the Grub interface background color
(1) Find "Background_color" parameter
(2) Change the background color by modifying the first three digits (r,g,b,0)
4. Change the countdown value
(1) Find the "if [X$feature_timeout_style = xy]" statement
(2) Change the countdown value by modifying its internal statement "set timeout"

Grub Small adjustment under Ubuntu14.04

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.