因为想学学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!