Linux中国 Linux中国门户站!
设为主页 设为主页
收藏本站 收藏本站
 
当前位置 :首页 ->Linux技术 ->网络应用 ->正文

实用技巧:Linux系统硬盘安装的通用引导

来源: 作者:Webmaster 时间:2008-01-20 点击: [收藏] [投稿]

下载grub for dos,提取grldr复制到系统根目录,然后再载系统根目录建立文件夹grub,在文件夹里面建立menu.lst文件,用记事本打开,复制粘贴一下内容:

# This is a sample menu.lst file. You should make some changes to it.
# The old install method of booting via the stage-files has been removed.
# Please install GRLDR boot strap code to MBR with the bootlace.com
# utility under DOS/Win9x or Linux.

color black
timeout 30
default /default

title linux install 
kernel (hd0,5)/vmlinuz root=/dev/ram ramdisk_size=20000 devfs=mount,dall 
initrd (hd0,5)/initrd
boot

大概解释下,color black定义了启动画面得颜色,timeout 30是定义启动画面的持续时间,这几句不是主要的。主要的是最后的四句,倒数第四句定义启动的名字,随便起;倒数第三句定义启动的内核文件的存放位置;倒数第二句定义启动的初始化文件的存放位置;最后几句就是启动了!记住两个位置一定要与你实际存放的位置一致。

(责任编辑:云子)



 如果您对本文有任何疑问或者建议,请到讨论区发表您的意见: >> 论坛入口 <<



上一篇:Tcpdump:Linux下基于命令行的抓包工具   下一篇:Linux操作系统下NTP服务器简单配置过程

文章评论】 【收藏本文】 【推荐好友】 【打印本文】 【我要投稿】 【论坛讨论
更多相关文章
Power by linux-cn.com 粤ICP备05006655号