歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux服務器 >> 實用技巧:Linux系統硬盤安裝的通用引導

實用技巧:Linux系統硬盤安裝的通用引導

日期:2017/3/2 16:55:07   编辑: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 © Linux教程網 All Rights Reserved