Linux system boot-grub.conf file

Source: Internet
Author: User View grub.conf

default=0      #默认第一个titletimeout =5      in #若  5  seconds , use the default Obituary menu to start splashimage= (hd0,0)/grub/splash.xpm.gz     #这儿使用的是grub的识别方式hiddenmenu                    # Whether the full menu screen is displayed during the second title centos  (2.6.18-92.EL5)          #第一个选单的内容      root  (hd0,0)         kernel / vmlinuz-2.6.18-92.el5 ro root=label=/1 rhgb quiet               #Linux内核的位置               #root =label=/1    represents the location of the Linux root directory               #rhgb  quiet      color, Quiet mode               #除了上面的命令之外还有很多可以使用的命令         initrd / initrd-2.6.18-92.el5.img      #RAM  disk Location #kernel /vmlinuz-2.6.18-92.el5    and   root  (hd0,0)/vmlinuz-2.6.18-92.el5  are equivalent, initrd the same.

2. Two representations of disks

1. Mode 1 for the GRUB program

For grub, all types of hard drives are HD, in the format (hd#,n);

hd#, #表示第几个磁盘; the last n indicates the partition of the corresponding disk;

For example: SDA is the first hard disk, to find the first partition is (hd0,0).

this is used when addressing kernel and initrd in the grub.conf file.

2. Mode 2 for Linux operating system

This is the same way as when we use the hard drive when we enter the operating system.

For example, the first partition to find SDA is/dev/sda1.

addressing root= in the grub.conf file ... The root directory of the Linux system is used this way.

3. Kernel and root partition in/DEV/HDA1

Linux Addressing: (/DEV/HDA1)/boot/vmlinuz

Grub Addressing: (hd0,0)/boot/vmlinuz

Kernel (hd0,0)/boot/vmlinuz root=/dev/hda1

4. Kernel and root not in one partition/dev/sda1 (/boot),/DEV/SDA5 (/)

Linux Devices: (/DEV/SDA1)/vmlinuz

Grub Device: (hd0,0)/vmlinuz

Kernel (hd0,0)/vmlinuz root=/dev/sda5 ...

This article is from "Linux Novice learning" blog, please be sure to keep this source

Linux system boot-grub.conf file

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: 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.