Vista和Fedora 10雙啟動

來源:互聯網
上載者:User

適用於先安裝vista,再裝linux

 

1.下載Grub4dos

 

2.下載Fedora10的iso檔案

 

3.從Grub4dos中解壓出grldr、grldr.mbr、menu.lst檔案待用

 

4.從fedora10的iso檔案的isolinux解壓出vmlinuz(核心檔案)和initrd.img檔案待用

 

注意:以下要以administrator運行

5.添加啟動菜單bcdedit

   bcdedit /create /d "Grub4Dos" /application bootsector                    ------返回一個GUID
   bcdedit /set {GUID} device boot
   bcdedit /set {GUID} path /grldr.mbr
   bcdedit /displayorder {GUID} /addlast

 

6.將grldr.mbr、menu.lst、vmlinuz、initrd.img放入c盤根目錄下

   將grldr放入除了c盤以外的其它盤的根目錄下(如果放到c盤,不會出現vista啟動選擇菜單,直接跳到了grub4dos的菜單)

 

7.編輯menu.lst檔案

   color black/cyan yellow/cyan
   timeout 30
   default 0
   title Install Fedora Linux 10
   kernel (hd0,1)/vmlinuz ro root=LABEL=/ rhgb quiet
   initrd (hd0,1)/initrd.img

 

   其中hd0表示第一塊硬碟,1代表你的第二個分區(第一個分區是0),請根據情況修改

 

8.安裝前準備

   在系統的FAT32分區,放入linux安裝檔案

   系統目錄結構如下:

  

   其中images和isolinux是從Fedora-10-i386-DVD.iso中解壓出來的

  

   否則會報錯:missing iso 9660 image問題,具體出現步驟是在劃分磁碟分割的時候。
   問題根源就是沒有將images檔案夾和Fedora-10-i386-DVD.iso檔案沒有放在同級目錄,導致安裝的時候系統找不到檔案。

 

9.重新啟動,會出現啟動選擇菜單;選"grub4dos",則會啟動grub菜單,再啟動“install fedora linux 10",就可以安裝了

 

   安裝時要注意:

      至少要將/、/boot、swap放在不同的3個分區,否則安裝後配置用Grub啟動時:會報"Error:2 bad file or directory”;

     另外,將grub不要裝入mbr中

 

10.安裝好後,在grub4dos中是沒有啟動到你剛安裝的linux的選項的,需要添加

     先進入vista,找到/boot所在分區,將/boot/grub/grub.conf中的內容複寫到c:/menu.lst中,即可

    

    類似於:

color black/cyan yellow/cyan
timeout 30
default 0
splashimage=(hd0,7)/grub/splash.xpm.gz
hiddenmenu
title Install Fedora Linux 10
kernel (hd0,1)/vmlinuz ro root=LABEL=/ rhgb quiet
initrd (hd0,1)/initrd.img

title Fedora (2.6.27.5-117.fc10.i686)
 root (hd0,7)
 kernel /vmlinuz-2.6.27.5-117.fc10.i686 ro root=UUID=ceb708e6-1944-4165-9a3c-f0563d83a045 rhgb quiet
 initrd /initrd-2.6.27.5-117.fc10.i686.img
title Other
 rootnoverify (hd0,1)
 chainloader +1

11.再次重啟,就可用了

 

 

 

 

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.