grub4dos 備忘

參考網址:

http://blog.csdn.net/shell_picker/article/details/5945940

——————————
#win 7開機
title Windows 7
fallback 1
find –set-root /bootmgr
chainloader /bootmgr

#Vista 開機
title Windows Vista
fallback 1
find –set-root /bootmgr
chainloader /bootmgr

#dos開機
title dos
find –set-root /io.sys
chainloader /io.sys

隱藏硬碟—————————————————————————————————————-
##注释:dos在sda2,对gurb来说,就是(hd0,1)。首先要unhide,然后再makeactive,这样dos就可以启动了。这是关键。
title DOS 7.1
unhide (hd0,1)
rootnoverify (hd0,1)
makeactive
chainloader +1

# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
##注释:windows在sda1,对grub来说,就是(hd0,0)。为了防止在windows下看到dos分区,首先要把dos分区hide了。然后再把windows分区给makeactive了。记得在makeactive之前和rootnoverify之后加上savedefault。这样经常进windows时,不用每次都手动选择了。
title Microsoft Windows XP Professional
hide (hd0,1)
rootnoverify (hd0,0)
savedefault
makeactive
chainloader +1
—————————————
想把grub4dos寫進MBR來启動的,三選一:

i>用bootlace.com在DOS/linux下:DOS:bootlace 0×80 Linux:bootlace /dev/hda

ii>用grub4nt中的grubinst.exe在NT以上的windows/linux命令行下:grubinst (hd0)

iii>用GUI版(圖形界面)grubinst_gui.exe在windows下(當然WinPE也行)方便地安裝(附件)。

本篇發表於 未分類 並標籤為 。將永久鍊結加入書籤。

發表迴響

您的電子郵件位址並不會被公開。 必要欄位標記為 *

*

您可以使用這些 HTML 標籤與屬性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>