Set GRUB default startup system and Menu. lst Parameters

Source: Internet
Author: User
Article Title: Set the GRUB default startup system and Menu. lst parameters. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open source, and other basic classification menu. lst files:
 
Sudo cp/boot/grub/menu. lst/boot/grub/menu. lst_backup and then open the menu. lst file:
 
Locate sudo gedit/boot/grub/menu. lst:
 
......
 
Default = 1
 
......
 
Replace the following line:
 
Default X_sequence save and exit
 
Recovery command:
 
Sudo mv/boot/grub/menu. lst_backup/boot/grub/menu. lstX_sequence refers to the number of items in your operating system entry (from 0, "Other operating system", and so on .) For example, if my windows vista startup items are 1st and Fedora is 0th, I will change default 1 to default 0.
 
From the very beginning, Fedora is the default startup Item.
 
The detailed introduction of GRUB and the menu. lst parameter are attached!
 
GRUB Introduction
 
GRUB (GRand uniied Bootloader) is a powerful Boot Loader installed by default. The boot loader is the first software running when the computer starts. It is responsible for loading the operating system kernel software and handing over the control to it. Then, the kernel software initializes the remaining operating systems. GRUB can load a variety of operating systems, including DOS, Windows, and Linux, through another chain loader.
 
GRUB configuration file
 
The configuration file of GRUB is located under/boot/grub/and is named grub. conf. There is a connection file with the same name under/etc. The content is as follows:
 
# Grub. conf generated by anaconda
 
#
 
# Note that you do not have to rerun grub after making changes to this file
 
# NOTICE: You have a/boot partition. This means that
 
# All kernel and initrd paths are relative to/boot/, eg.
 
# Root (hd0, 0)
 
# Kernel/vmlinuz-version ro root =/dev/hda2
 
# Initrd-version.img/initrd
 
# Boot =/dev/hda
 
Default = 0
 
Timeout = 5
 
Splashimage = (hd0, 0)/grub/splash.xpm.gz
 
Hiddenmenu
 
Title GreatTurbo Enterprise Server (2.6.18-8.2PAE)
 
Root (hd0, 0)
 
Kernel/vmlinuz-2.6.18-8.2PAE ro root = LABEL =/1 rhgb quiet
 
Initrd/initrd-2.6.18-8.2PAE.img
 
Title GreatTurbo Enterprise Server-base (2.6.18-8.2)
 
Root (hd0, 0)
 
Kernel/vmlinuz-2.6.18-8.2 ro root = LABEL =/1 rhgb quiet
 
Initrd/initrd-2.6.18-8.2.img
 
Title GreatTurbo Enterprise Server-xen (2.6.18-8.2xen)
 
Root (hd0, 0)
 
Kernel/xen.gz-BRL. 18-8.2
 
Module/vmlinuz-2.6.18-8.2xen ro root = LABEL =/1 rhgb quiet
 
Module/initrd-2.6.18-8.2xen.img
 
Title GreatTurbo Enterprise Server (2.6.9-8.11)
 
Root (hd0, 4)
 
Kernel/boot/vmlinuz-2.6.9-8.11 ro root = LABEL =/acpi = off noapic
 
Configuration Options for initrd/boot/initrd-2.6.9-8.11.imggrub.conf:
 
Default = 0 default system title (title) loaded after the Start Menu times out (timeout ). Here 0 refers to the first title, and so on.
 
Timeout = 5 after the Start menu appears, the default system title is loaded without any intervention ). The Unit is seconds.
 
Splashimage = (hd0, 0)/grub/splash.xpm.gz specifies the position of the splashimage file used for GRUB boot. Installed in/boot/grub/by default.
 
Before timeout, if we do not intervene in GRUB, we cannot see the GRUB menu. To display the standard GRUB menu, Press ESC.
 
Title GreatTurbo Enterprise Server (2.6.18-8.2PAE) the title of the system to be started can be written at will, but it is recommended to write a meaningful title.
 
Configure the GRUB root partition for root (hd0, 0). Here, root refers to the/boot partition. Hd0 indicates the first hard disk in the system;
 
(Hd0, 0) the value 0 after the comma indicates the order of the/boot partition, 0 indicates the first partition on the system, and so on.
 
Kernel/vmlinuz-2.6.18-8.2 ro root = LABEL =/1 rhgb quietkernel, specify the kernel file to be loaded when booting the operating system; ro root = LABEL =/1, mount the root partition of the system in read-only mode (its LABEL =/1 );
 
Initrd/initrd-2.6.18-8.2PAE.img specifies the initial RAMDISK file at boot, which contains the device driver module required by the kernel at startup.
 
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.