linux /boot/grub/menu.ls

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
 
  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秒。网上查的时候说是默认的显卡模式没弄好。今天有空,看看这个文件,分析一下好了。

  5 default 0
  6 timeout 1 
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为 初始化的内存盘。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值