How to modify the startup sequence of Ubuntu after installation

Source: Internet
Author: User
In fact, it is easy to modify the dual-system startup sequence after Ubuntu is installed. Modify the/boot/grub/menu. lst file to change the default value. The process is as follows: 1. Open the command line terminal; 2. Enter sudocp/boot/grub/menu. lst/boot/grub/menu. lst. baksudogedit/boot/grub/menu. lst note: the first statement is used for backup.

In fact, it is easy to modify the dual-system startup sequence after Ubuntu is installed. Modify the/boot/grub/menu. lst file to change the default value.

The process is as follows:

1. Open the command line terminal;

2. input:

Sudo cp/boot/grub/menu. lst/boot/grub/menu. lst. bak

Sudo gedit/boot/grub/menu. lst

Note: The first statement is used for backup.

3. Assume that the file content is as follows:

# Menu. lst-See: grub (8), info grub, update-grub (8)

# Grub-install (8), grub-floppy (8 ),

# Grub-md5-crypt,/usr/share/doc/grub

# And/usr/share/doc/grub-doc /.

# Default num

# Set the default entry to the entry number NUM. Numbering starts from 0, and

# The entry number 0 is the default if the command is not used.

#

# You can specify 'saved' instead of a number. In this case, the default entry

# Is the entry saved with the command 'savedefault '.

# WARNING: If you are using dmraid do not change this entry to 'saved' or your

# Array will desync and will not let you boot your system.

Default 0

# Timeout sec

# Set a timeout, in SEC seconds, before automatically booting the default entry

# (Normally the first entry defined ).

Timeout 10

# Hiddenmenu

# Hides the menu by default (press ESC to see the menu)

# Hiddenmenu

#### End Default Options ##

Title Ubuntu, kernel BRL. 15-23-386

Root (hd0, 2)

Kernel/boot/vmlinuz-2.6.15-23-386 root =/dev/hda3 ro quiet splash

Initrd/boot/initrd. img-2.6.15-23-386

Savedefault

Boot

Title Ubuntu, kernel 2.6.15-23-386 (recovery mode)

Root (hd0, 2)

Kernel/boot/vmlinuz-2.6.15-23-386 root =/dev/hda3 ro single

Initrd/boot/initrd. img-2.6.15-23-386

Boot

Title Ubuntu, memtest86 +

Root (hd0, 2)

Kernel/boot/memtest86 +. bin

Boot

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian

# Ones.

Title Other operating systems:

Root

# This entry automatically added by the Debian installer for a non-linux OS

# On/dev/hda1

Title Microsoft Windows XP Professional

Root (hd0, 0)

Savedefault

Makeactive

Chainloader + 1

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.