- 论坛徽章:
- 0
|
一、grub出错,手动进入linux
开机进入grub命令符下,依次输入:
cat (hd0,2)/grub/grub.conf 显示grub配置文件
root(hd0,2) 确认boot分区
kernel (hd0,2)/vmlinuz-version root=LABEL=1 rhgb
载入内核
initrd (hd0,2)/initrd-version.img 载入映像
boot 启动linux
二、修复grub
进入linux后,依次输入:
grub 进入grub
root (hd0,2) 确认boot分区
setup(hd0) 安装grub
quit 退出grub
reboot 重新启动linux
三、在grub中启动Windows
在/boot/grub/grub.conf文件中输入:
title Windows XP
rootnoverify (hd0,2)
chainloader +1
注意:chainloader和+1之间一定要有一个空格,不然就会出错,我就是在此栽了个大根头,搞了许久。
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/23193/showart_159619.html |
|