QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 980|回复: 6

如何让grub启动原来的windows

[复制链接]
发表于 2006-7-29 16:33:17 | 显示全部楼层 |阅读模式
原来我的系统是win2000,在安装redhat9时,grub的启动项没有选择DOS,结果现在没有办法进入win2000了,怎么办?
发表于 2006-7-29 16:37:20 | 显示全部楼层
在出现grub时按c进入命令行模式
grub>rootnoverify (hd0,0)
grub>chainloader +1
如果你的win2000装在第一个主分区的话。如不是,把(hd0,0)换成你装win2000的分区
回复

使用道具 举报

 楼主| 发表于 2006-7-29 16:53:33 | 显示全部楼层
刚才用yhlfh的方法,第一行没错,当输入chainloader + 1时,提示
Error: File name must be either an absolute pathname or blocklist.
重启,在Grub中和原来一样,还是只有一个系统.这时怎么回事?
回复

使用道具 举报

发表于 2006-7-29 17:02:11 | 显示全部楼层
你现在能进入RH9吗,能的话就在/boot/grub/menu.lst里把win2000的选项加上试试。我的借你参考参考。
[root@MagicLinux yhlfh]# 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.3  ro 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试试。
回复

使用道具 举报

 楼主| 发表于 2006-7-29 17:04:46 | 显示全部楼层
我现在就在RH9中,我再试试这个方法.
回复

使用道具 举报

发表于 2006-7-29 17:21:11 | 显示全部楼层
行了吗?
回复

使用道具 举报

 楼主| 发表于 2006-7-29 17:24:08 | 显示全部楼层
哈哈,太帅了,多谢yhlfh。我现在已经在windows2000里了。
第一次装Linux,很多问题还请多多指教哦。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-22 17:34 , Processed in 0.147430 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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