menu.ls文件内容。
1 # Modified by YaST2. Last modification on Thu Oct 27 08:25:49 CST 2011
2 # THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
3 # Configure custom boot parameters for updated kernels in /etc/sysconfig/boo
tloader
4
5 default 0
6 timeout 1
7 ##YaST - generic_mbr
8 gfxmenu (hd0,5)/boot/message
9 ##YaST - activate
10
11 ###Don't change this comment - YaST2 identifier: Original name: linux###
12 title openSUSE 11.4 - 2.6.37.1-1.2
13
root (hd0,5)
14
kernel /boot/vmlinuz-2.6.37.1-1.2-default root=/dev/disk/by-id/ata-Hitac
hi_HTS542512K9SA00_080513BB6200WBEWRUDG-part6 devfs=mount,dall resume=/dev/d
isk/by-id/ata-Hitachi_HTS542512K9SA00_080513BB6200WBEWRUDG-part5 splash=sile
nt quiet showopts vga=0x31A
15
initrd /boot/initrd-2.6.37.1-1.2-default
16
17 ###Don't change this comment - YaST2 identifier: Original name: failsafe###
18 title Failsafe -- openSUSE 11.4 - 2.6.37.1-1.2
19
root (hd0,5)
20
kernel /boot/vmlinuz-2.6.37.1-1.2-default root=/dev/disk/by-id/ata-Hitac
hi_HTS542512K9SA00_080513BB6200WBEWRUDG-part6 showopts apm=off noresume nosm
p maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate
=1 nomodeset x11failsafe vga=0x31A
21
initrd /boot/initrd-2.6.37.1-1.2-default
22
23 ###Don't change this comment - YaST2 identifier: Original name: floppy###
24 title Floppy
25
rootnoverify (fd0)
26
chainloader +1
这个文件是从命令行里复制出来的,文本颜色都没有了,有点不太好看,凑合了。
我的系统每次开机的时候都会让选择视频模式,然后等待30秒。网上查的时候说是默认的显卡模式没弄好。今天有空,看看这个文件,分析一下好了。
default 0 暂时不知道是什么东西。timeout 1是在说,grub菜单的等待时间为1秒。
8 gfxmenu (hd0,5)/boot/message
这里我的硬盘分区搞乱了,所以会成了 (hd0,5),message文件是一个包含文字信息和图片的文件,它是grub菜单的背景。
11 ###Don't change this comment - YaST2 identifier: Original name: linux###
12 title openSUSE 11.4 - 2.6.37.1-1.2
13
root (hd0,5)
14
kernel /boot/vmlinuz-2.6.37.1-1.2-default root=/dev/disk/by-id/ata-Hitac
hi_HTS542512K9SA00_080513BB6200WBEWRUDG-part6 devfs=mount,dall resume=/dev/d
isk/by-id/ata-Hitachi_HTS542512K9SA00_080513BB6200WBEWRUDG-part5 splash=sile
nt quiet showopts vga=0x31A
15
initrd /boot/initrd-2.6.37.1-1.2-default
这几行配置了一个开机选项。12行就是选项的名字,可以自己改成一个自己喜欢的名字。13行是系统所在的硬盘,root是根目录的意思。14行比较重要了,是具体的加载方法。kernel为系统内核,root为系统根设备,vga是视频模式(1024x768, 24 bits (mode 0x318)),
Devfs
devfs=mount表示内核使用devfs (Device File System) dall是所有类型。第15行initrd为
初始化的内存盘。