- 论坛徽章:
- 0
|
很多朋友现在都慢慢开始使用xp和linux的双系统了。这样就很可能会遇到这样的问题,xp中毒或者其他原因需要重新安装。但是当你安装完系统后你会发现找不到你的linux的系统了。这是因为重装xp后,mbr被xp写入信息导致grub无法工作。
我介绍一种重新找回你的linux的方法:
1 用Live CD从CD-ROM启动系统,进入linux桌面。
2 打开终端或者切换到一个tty(Ctrl+Alt+F1)。
3 在终端底下使用超级用户输入 grub,然后输入密码,就会进入grub>的提示符下。
4 再输入find /boot/grub/stage1查看你的linux所在的硬盘分区,例如我的如下:
grub> find /boot/grub/stage1
find /boot/grub/stage1
(hd0,八)
5 输入:root (hd0,八)(以我的为例)
6 输入:setup (hd0)
7 输入:quit
8 重新启动电脑.
这样就可以看到XP和linux的双系统引导了。
附:我的grub信息
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,六)
# kernel /boot/vmlinuz-version ro root=/dev/sda7
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=1
timeout=5
splashimage=(hd0,六)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora
root (hd0,六)
kernel /boot/vmlinuz-2.6.27.5-37.fc9.i686 ro root=UUID=737bfa82-62d6-42b4-856f-ef7881735764 rhgb quiet
initrd /boot/initrd-2.6.27.5-37.fc9.i686.img
title Windows XP
rootnoverify (hd0,零)
chainloader +1
把八,六,零换成数字。
[ 本帖最后由 潇潇鱼 于 2008-11-29 22:48 编辑 ] |
|