win7+centOS双系统

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值