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


下载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是定义启动画面的持续时间,这几句不是主要的。主要的是最后的四句,倒数第四句定义启动的名字,随便起;倒数第三句定义启动的内核文件的存放位置;倒数第二句定义启动的初始化文件的存放位置;最后几句就是启动了!记住两个位置一定要与你实际存放的位置一致

本文作者:
« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3