Modify the grub startup sequence

Source: Internet
Author: User


CD/boot/GRUB/
Sudo Emacs menu. lst

# 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 use 'savedefault' or your
# Array will desync and will not let you boot your system.
Default 0<==============Change this!

# 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

# Pretty colours
# Color cyan/blue white/blue

# Password ['-- md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# Control (menu entry editor and command-line) and entries protected by
# Command 'lock'
# E.g. Password topsecret
# Password -- MD5 $1 $ glhu0/$ aw78khk11_v3p2b2znuoe/
# Password topsecret

#
# Examples
#
# Title Windows 95/98/NT/2000
# Root (hd0, 0)
# Makeactive
# Chainloader + 1
#
# Title Linux
# Root (hd0, 1)
# Kernel/vmlinuz root =/dev/hda2 Ro
#

#
# Put static boot stanzas before and/or after automagic kernel list

### Begin automagic kernels list
# Lines between the automagic kernels list markers will be modified
# By the Debian Update-grub script failed t for the default options below

# Do not uncomment them, just edit them to your needs

#### Start default options ##
# Default kernel options
# Default kernel options for automagic boot options
# If you want special options for specific kernels use kopt_x_y_z
# Where x. y. Z is kernel version. Minor versions can be omitted.
# E.g. kopt = root =/dev/hda1 Ro
# Kopt_2_6_8 = root =/dev/hdc1 Ro
# Kopt_2_6_8_2_686 = root =/dev/hdc2 Ro
# Kopt = root = UUID = 41cca974-8634-42ff-8c6e-bc148ea757a7 Ro locale = zh_cn

# Default grub root device
# E.g. Groot = (hd0, 0)
# Groot = 41cca974-8634-42ff-8c6e-bc148ea757a7

# Shocould Update-grub create alternative automagic boot options
# E.g. Alternative = true
# Alternative = false
# Alternative = true

# Shocould Update-grub lock alternative automagic boot options
# E.g. lockalternative = true
# Lockalternative = false
# Lockalternative = false

# Additional options to use with the default boot option, but not with
# Alternatives
# E.g. defoptions = VGA = 791 resume =/dev/hda5
# Defoptions = quiet splash

# Shocould Update-grub lock old automagic boot options
# E.g. lockold = false
# Lockold = true
# Lockold = false

# Xen hypervisor options to use with the default xen boot Option
# Xenhopt =

# Xen Linux kernel options to use with the default xen boot Option
# Xenkopt = console = tty0

# Altoption boot targets Option
# Multiple altoptions lines are allowed
# E.g. altoptions = (extra menu suffix) Extra boot options
# Altoptions = (recovery) single
# Altoptions = (recovery mode) single

# Controls how many kernels shoshould be put into the menu. lst
# Only counts the first occurence of a kernel, not
# Alternative kernel options
# E.g. howtasks = all
# Howtasks = 7
# Howtasks = all

# Shocould Update-grub create memtest86 boot Option
# E.g. memtest86 = true
# Memtest86 = false
# Memtest86 = true

# Shocould Update-grub adjust the value of the default booted System
# Can be true or false
# Updatedefaultentry = false

# Shocould Update-grub add savedefault to the default options
# Can be true or false
# Savedefault = false

#### End default options ##

Title Ubuntu 8.10, kernel 2.6.27-15-generic
UUID 41cca974-8634-42ff-8c6e-bc148ea757a7
Kernel/boot/vmlinuz-2.6.27-15-generic root = UUID = 41cca974-8634-42ff-8c6e-bc148ea757a7 Ro locale = zh_cn quiet splash
Initrd/boot/initrd. img-2.6.27-15-generic
Quiet

Title Ubuntu 8.10, kernel 2.6.27-15-generic (recovery mode)
UUID 41cca974-8634-42ff-8c6e-bc148ea757a7
Kernel/boot/vmlinuz-2.6.27-15-generic root = UUID = 41cca974-8634-42ff-8c6e-bc148ea757a7 Ro locale = zh_cn single
Initrd/boot/initrd. img-2.6.27-15-generic

Title Ubuntu 8.10, kernel 2.6.27-14-generic
UUID 41cca974-8634-42ff-8c6e-bc148ea757a7
Kernel/boot/vmlinuz-2.6.27-14-generic root = UUID = 41cca974-8634-42ff-8c6e-bc148ea757a7 Ro locale = zh_cn quiet splash
Initrd/boot/initrd. img-2.6.27-14-generic
Quiet

Title Ubuntu 8.10, kernel 2.6.27-14-generic (recovery mode)
UUID 41cca974-8634-42ff-8c6e-bc148ea757a7
Kernel/boot/vmlinuz-2.6.27-14-generic root = UUID = 41cca974-8634-42ff-8c6e-bc148ea757a7 Ro locale = zh_cn single
Initrd/boot/initrd. img-2.6.27-14-generic

Title Ubuntu 8.10, kernel 2.6.27-13-generic
UUID 41cca974-8634-42ff-8c6e-bc148ea757a7
Kernel/boot/vmlinuz-2.6.27-13-generic root = UUID = 41cca974-8634-42ff-8c6e-bc148ea757a7 Ro locale = zh_cn quiet splash
Initrd/boot/initrd. img-2.6.27-13-generic
Quiet

Title Ubuntu 8.10, kernel 2.6.27-13-generic (recovery mode)
UUID 41cca974-8634-42ff-8c6e-bc148ea757a7
Kernel/boot/vmlinuz-2.6.27-13-generic root = UUID = 41cca974-8634-42ff-8c6e-bc148ea757a7 Ro locale = zh_cn single
Initrd/boot/initrd. img-2.6.27-13-generic

Title Ubuntu 8.10, kernel 2.6.27-7-generic
UUID 41cca974-8634-42ff-8c6e-bc148ea757a7
Kernel/boot/vmlinuz-2.6.27-7-generic root = UUID = 41cca974-8634-42ff-8c6e-bc148ea757a7 Ro locale = zh_cn quiet splash
Initrd/boot/initrd. img-2.6.27-7-generic
Quiet

Title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
UUID 41cca974-8634-42ff-8c6e-bc148ea757a7
Kernel/boot/vmlinuz-2.6.27-7-generic root = UUID = 41cca974-8634-42ff-8c6e-bc148ea757a7 Ro locale = zh_cn single
Initrd/boot/initrd. img-2.6.27-7-generic

Title Ubuntu 8.10, memtest86 +
UUID 41cca974-8634-42ff-8c6e-bc148ea757a7
Kernel/boot/memtest86 +. Bin
Quiet

### 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/sda1
Title Microsoft Windows XP Professional
Root (hd0, 0)
Savedefault
Makeactive
Chainloader + 1


From: http://hi.baidu.com/hy6356/blog/item/5e61130328186e054afb5130.html

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.