LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 740|回复: 1

grub特殊情况分析.

[复制链接]
发表于 2005-1-1 16:11:03 | 显示全部楼层 |阅读模式
原来的primary master硬盘上装了win2000, gentoo,可以用grub双启动. 现在新加一块硬盘做primary master,原来的设成slave. 在新硬盘上装gentoo后, 新的linux可以引导. 原来的win2000引导不了. 设置是:
root (hd1,0)
makeactive
chainloader +1

如果从bios里设置从ide1引导, 能从原先的grub正常进入win2000.
 楼主| 发表于 2005-1-1 16:36:25 | 显示全部楼层
我再自问自答吧.  ^_^

在info grub中找到答案了.


  1.    If you have installed DOS (or Windows) on a non-first hard disk, you
  2. have to use the disk swapping technique, because that OS cannot boot
  3. from any disks but the first one. The workaround used in GRUB is the
  4. command `map' (*note map::), like this:

  5.      grub> map (hd0) (hd1)
  6.      grub> map (hd1) (hd0)
复制代码


经过测试, 我的配置为:

  1. map (hd1) (hd0)
  2. rootnoverify (hd1,0)
  3. makeactive
  4. chainloader +1
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表