91467 发表于 2006-7-29 16:33:17

如何让grub启动原来的windows

原来我的系统是win2000,在安装redhat9时,grub的启动项没有选择DOS,结果现在没有办法进入win2000了,怎么办?

yhlfh 发表于 2006-7-29 16:37:20

在出现grub时按c进入命令行模式
grub>rootnoverify (hd0,0)
grub>chainloader +1
如果你的win2000装在第一个主分区的话。如不是,把(hd0,0)换成你装win2000的分区

91467 发表于 2006-7-29 16:53:33

刚才用yhlfh的方法,第一行没错,当输入chainloader + 1时,提示
Error: File name must be either an absolute pathname or blocklist.
重启,在Grub中和原来一样,还是只有一个系统.这时怎么回事?

yhlfh 发表于 2006-7-29 17:02:11

你现在能进入RH9吗,能的话就在/boot/grub/menu.lst里把win2000的选项加上试试。我的借你参考参考。
# cat /boot/grub/grub.conf
# grub.conf generated by MagicInstaller.

# Note that you do not have to rerun grub after making changes to this file.
default=1
timeout=10
splashimage=(hd0,6)/boot/grub/splash.xpm.gz
title WindowsXP
      rootnoverify (hd0,0)
      chainloader +1
title MagicLinux
      root (hd0,6)
      kernel /boot/vmlinuz-2.6.15.3ro root=/dev/hda7 vga=791 splash=silent
      initrd /boot/initrd-2.6.15.3.img
title MagicLinux (Graphics Mode)
      root (hd0,6)
      kernel /boot/vmlinuz-2.6.15.3 init 5 ro root=/dev/hda7 vga=791 splash=silent
      initrd /boot/initrd-2.6.15.3.img
title MagicLinux (Console Mode)
      root (hd0,6)
      kernel /boot/vmlinuz-2.6.15.3 init 3 ro root=/dev/hda7 vga=791 splash=silent
      initrd /boot/initrd-2.6.15.3.img
title MagicLinux (Single Mode)
      root (hd0,6)
      kernel /boot/vmlinuz-2.6.15.3 init 1 ro root=/dev/hda7 vga=791 splash=silent
      initrd /boot/initrd-2.6.15.3.img
你看看在适当的位置加上win2000的选项,在重启选win2000试试。

91467 发表于 2006-7-29 17:04:46

我现在就在RH9中,我再试试这个方法.

yhlfh 发表于 2006-7-29 17:21:11

行了吗?

91467 发表于 2006-7-29 17:24:08

哈哈,太帅了,多谢yhlfh。我现在已经在windows2000里了。
第一次装Linux,很多问题还请多多指教哦。
页: [1]
查看完整版本: 如何让grub启动原来的windows