Windows 下硬碟安裝CentOS Linux 5.3

來源:互聯網
上載者:User

 

 

1、開啟鏡像檔案CentOS-5.3-i386-bin-DVD.iso(我的CentOS鏡像檔案放在D盤),找到isolinux目錄,右鍵選擇"解壓到指定檔案夾",選擇D盤,確定。進入D:/solinux目錄,只保留initrd.img和vmlinuz兩個檔案,其它的全部刪除。(若保留其它檔案,可能會出現中途安裝退出的情況)

【note】我的D盤是ntfs格式,安裝開始前提示找不到鏡像檔案。於是,用分區工具Norton PartitionMagic將D盤轉成了fat32格式。

 

 

2、win + R 鍵 運行"c:/boot.ini",斷行符號。我的boot.ini檔案內容如下:

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)/WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)/WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect

在檔案末添加一行如下,儲存並退出。

C:/GRLDR="Install CentOS Linux"

 

3、下載grub4dos,解壓,將其中的grldr,grldr.mbr以及menu.lst放入到C盤根目錄下。(我下載的是grub4dos-0.4.4-2009-01-11.zip)

 

 

4、win + R 鍵 運行"c:/menu.lst".(有的可能是c:/grub/menu.lst)

,在檔案末添加如下:(我的鏡像檔案放在D盤,即/dev/hda5)

title Install CentOS Linux

root(hd0,1)        

kernel /isolinux/vmlinuz ro root=/dev/hda5

initrd /isolinux/initrd.img

 

[NOTE]如果鏡像檔案放在E盤,上面的第二行和第三行都要相應的修改.

5、重啟電腦,選擇菜單,開始安裝。安裝前注意選擇"Hard Drive"、"/dev/hda5"。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.