歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Linux資訊 >> 更多Linux >> grub scsi硬盤 mbr

grub scsi硬盤 mbr

日期:2017/2/27 14:30:50   编辑:更多Linux
  主題詞 grub scsi硬盤 MBR 我有2個硬盤,1個SCSI硬盤裝WIN2K,1個IDE硬盤Redhat7.3,先裝的win2k,後裝的redhat (grub引導,我忘了是否裝在MBR上了)。現在我可以通過bios中修改硬盤啟動順序啟動 win2k和Linux。 fdisk -l顯示如下 Device Boot Start End Blocks Id System /dev/sda1 * 1 1020 8193118+ 7 HPFS/NTFS /dev/sda2 1021 4462 27647865 7 HPFS/NTFS IDE盤省略 現在修改grub.conf,加入 title win root(sd0,0)或(sd1,0) chainloader +1 選擇啟動win2k時顯示error 23:error while parsing number 這是否是因為我的grub沒有安裝在MBR上? 如果我現在想把grub安裝在MBR上該如何做? 終於搞定! 環境: IDE--Redhat 7.3 SCSI--Win2K 過程: 用啟動盤啟動,進入/boot/grub,敲擊grub進 grub>rootnoverify (hd0,0) grub>setup (hd0) 顯示sUCess了 表明我的grub裝入到我啟linux的IDE硬盤中的MBR了 修改grub.conf title win map (hd0) (hd1) map (hd1) (hd0) rootnoverify (hd1,0) chainloader +1 重啟計算機,成功 還有幾個問題值得討論 1. 看來grub是不分scsi和ide的都是hdx,但好像是ide先行 2. root和rootnoverify,我每次運行root (hdx,x),都顯示filesystem type unknown, partition type 0x7,改為rootnoverify後就沒問題。到底root和rootnoverify有什麼區別 3. map 轉貼 如何從非第一個硬盤(指主硬盤)引導Windows (或DOS)。 使用map命令,交換虛擬BIOS驅動,如下: grub> map (hd0) (hd1) grub> map (hd1) (hd0) GRUB 不會分辨 IDE 或 SCSI. 正常程況下SCSI先行。所以 (hd0)為SCSI硬盤, (hd1)為IDE硬盤.




Copyright © Linux教程網 All Rights Reserved