Chinaunix首页 | 论坛 | 博客
  • 博客访问: 101975078
  • 博文数量: 19283
  • 博客积分: 9968
  • 博客等级: 上将
  • 技术积分: 196062
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 14:28
文章分类

全部博文(19283)

文章存档

2011年(1)

2009年(125)

2008年(19094)

2007年(63)

分类: LINUX

2008-05-11 15:09:41

             说明:以我自己使用Ubuntu以来对其的理解和参阅其他资料的补充,写出以下文章。其中的不确定之处我会随时修改。同时希望大家能够互相交流。
   
           首先要说的是menu.lst文件。
           下面是(我的)menu.lst文件的相关内容,其中所有以“;”开头的为我的翻译及注释,而以"#"开头的为系统的注释。
# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default        0
;表示默认启动的第0号的操作系统,在GRUB中,title定义了启动的操作系统,从第1个开始,GRUB中是0,而第2个是1,依次类推.

## timeout sec
;延时多少 秒
# Set a timeout, in SEC seconds, before automatically booting the default entry
;在自动引导默认的操作系统之前设置一个延时,以便在没有手动选择时自动进入默认系统
# (normally the first entry defined).
timeout        10
;此处系统设置的延时为10秒


;中间生去了大量的系统注释

;下面开始刚引导进入操作系统时所出现的选项的设置。一般情况下,linux系统的启动配置要包含四
;行:  title 行;root行;kernel 行;initrd 行;
;title行,就是显示的标题,自己随便设置都行,但是最好是英文,好像不支持中文
;root行,用来指定从哪个设备引导linux或者其他系统。其格式为root(hd*,*),*为从0开始的数字。root指定
;的位置不是根分区,而是/boot分区,因为/boot分区中存储了引导linux的镜像。以下面的(hd0,5)为例说明
;是从第一块硬盘的第六个分区引导系统。
;kernel行,指定linux引导内核,ro即为read only,以只读模式加载
;initrd行,这是指定initrd.img文件
title        Ubuntu, kernel 2.6.20-15-generic  ;此处名称可以随便改
root        (hd0,5)
kernel        /boot/vmlinuz-2.6.20-15-generic root=UUID=3740308e-719d-41f4-a273-19a23fbbf1de ro quiet splash
initrd        /boot/initrd.img-2.6.20-15-generic
quiet
savedefault    ;如果不用光标选择,默认进入此系统

title        Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root        (hd0,5)
kernel        /boot/vmlinuz-2.6.20-15-generic root=UUID=3740308e-719d-41f4-a273-19a23fbbf1de ro single
initrd        /boot/initrd.img-2.6.20-15-generic

title        Ubuntu, memtest86+
root        (hd0,5)
kernel        /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
;其他的非linux系统从此处开始
title        Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
;windwos系统
title        Microsoft Windows XP Professional
root        (hd0,0)
savedefault
makeactive
chainloader    +1





引用通告地址:
阅读(605) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~