2009年11月21日 星期六

難搞的grub menu.lst

  想說i7買了那麼久,也應該好好來裝一下gentoo了,基本上不是太難裝,最後gentoo是裝好了,雖然問題還是一堆。但最大的問題是,裝好gentoo後,我的windows竟然進不去了...囧。

環境:
目前有兩顆sata硬碟(/dev/sda為原本的windows,/dev/sdb為gentoo),grub是安裝在sdb(i.e., 在gentoo的live cd執行"grub" command進入grub的console環境並執行 "setup(hd1)")


C1: To boot any Dos or Windows from 1st bootable disk by Grub floppy
Note : For system in 2nd, 3rd or 4th primary partition use (hd0,1), (hd0,2) and (hd0,3) in the root statement. Makeactive statement is only needed if there is another system using the bootable flag in the same drive. MS System is in the first partition of the bootable drive.

Code:
root (hd0,0)
chainloader +1
makeactive
boot
C2: To boot any Dos or Windows from 2nd bootable disk by Grub floppy
Note : System installed in 1st bootable drive but later moved to 2nd drive. The two map statements let the MS system reclaim the 1st bootable disk status.

Code:
root (hd1,0)
map (hd1) (hd0)
map (hd0) (hd1)
chainloader +1
makeactive
boot
C3: To boot multiple installations of Dos and Windows by Grub floppy
Note : System was originally installed in 1st bootable drive 2nd partition and has another MS system in front. Later the disk was moved to 4th disk position.

Code:
root (hd3,1)
hide (hd3,0)
unhide (hd3,1)
map (hd3) (hd0)
map (hd0) (hd3)
chainloader +1
boot
根據我的環境,我是用C2這個solution,最後終於開進windows了~~~~XD

沒有留言:

張貼留言