1.cat/boot/grub/grub.conf 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 http://xzb2015.blog.51cto.com/8796643/1695864
Linux system boot-grub.conf file