因爲想學學linux,所以在網上下載了centOS6.3鏡像文件進行安裝,按照http://soft.chinabyte.com/os/377/12375877.shtml的步驟,一步步安裝下來,貌似在磁盤劃分時直接用win7自帶的分區功能就行,DiskTool可以棄之,呵呵。在設置多系統啓動後,重啓,提示找不到isolinux/vmlinuz,最後發現是 (hd0,0)kernel (hd0,0)/isolinux/vmlinuz和initrd (hd0,0)/isolinux/initrd.img裏面的(hd0,0)寫得不對,改成(hd0,7),果然,進入正軌!(注意:我的磁盤分爲:C、D、E、F、H、I六個盤,centOS是放在I盤下面的),搞不懂爲什麼是(hd0,7)???
重啓,界面只顯示CentOS和other兩個選項,點擊other時顯示:[SOLVED] BOOTMGR is missing
糾結了好久,最終在一個外國站點上找到了答案:
To give other grub newbies like me the advatage of time-saving.
I have found out that, after I installed Windows 7, CentOS installation could'nt find at what exact partition my windows was installed on.
After installing CentOS opened a terminal
# fdisk -l
Device Boot Start End Blocks Id System
/dev/sda1 1 21673 174080000 7 HPFS/NTFS
/dev/sda2 21673 21736 512000 83 Linux
/dev/sda3 * 38245 121601 669558784 7 HPFS/NTFS
/dev/sda4 21736 38245 132608000 5 Extended
/dev/sda5 21736 38245 132606976 8e Linux LVM
The results contained two NTFS partitions, my guess is that it marked the first NTFS partition as the "Other" boot option
While the second NTFS (third in the list) partition was my Windows installation partition.
So opened grub.conf
And changed hd0,0 to hd0,2 (say first physical disk, third partition) saved and rebooted.
After trying other (Yes!) it booted me to windows.
title Other
rootnoverify (hd0,2)
chainloader +1
And done...
Thanks YBellefeuille for your help.
Greets.
上面的大意是:有兩個NTFS分區,系統默認第一個NTFS分區爲“Other”啓動項,而實際上第二個NTFS分區纔是windows系統所在,所以將/boot/grub/grub.cof裏面的
title Other
rootnoverify (hd0,0)
chainloader +1
改爲:
title Other
rootnoverify (hd0,2) //排在第三個的,所以是“2”,/boot/grub/menu.lst裏面的貌似會自動更改,所以不用管它。
chainloader +1
按照這個方法進行了設置,重啓,OK!