grub修复问题集锦
2011-02-21 16:48
459 查看
团队的补充 2010-12-16 14:561. Grub Rescue双系统重装windows造成grub2被改写的修复
方法一 grub4dos0.4.4
在Windows启动项上加上grub4dos启动(不多说了,看置顶贴),重启选择进入grub,在命令行下输入(/boot单独分区的去掉 /boot)
代码:
grub>find --set-root /boot/grub/core.img
grub>kernel /boot/grub/core.img
grub>boot进入grub2菜单,进入系统后再执行代码:
sudo grub-install /dev/sd?方法二 Grub Rescue进入Livecd 后修复引用:
sudo -i
mount 你的根分区 /mnt
mount 你的/boot 分区 /mnt/boot #如果有的话
#挂载你其他的分区,如果有的话
# 重建grub到sda的mbr
grub-install --root-directory=/mnt /dev/sda
2. 由于root分区uuid改变造成的不能正常启动,只能进入grub rescue模式的修复代码:
grub rescue>set
grub rescue>prefix=(hd?,?)/grub
grub rescue>root=hd?,?
grub rescue>set root=hd?,?
grub rescue>set prefix=(hd?,?)/boot/grub
grub rescue>set
grub rescue>root=hd?,?
grub rescue>prefix=(hd?,?)/boot/grub
grub rescue>insmod /boot/grub/normal.mod
grub rescue>normal这时就可以调出 /boot/grub/grub.cfg,修改相应uuid,
改到命令行下
grub>insmod /boot/grub/linux.mod
grub>set root=hd?,?
grub>linux /boot/vmlinuz-*** root=/dev/sd??
grub>initrd /boot/initrg.img-****
进入系统
hd?,? 是grub文件所在分区 sda? 是/分区。3. Grub Rescuegrub模块和配置文件grub.cfg受损无法启动时修复
Livcd启动进入试用引用:
sudo -i
mount 你的根分区 /mnt
mount 你的/boot 分区 /mnt/boot #如果有的话
# 挂载你其他的分区,如果有的话
# 重建grub到sda的mbr
grub-install --root-directory=/mnt /dev/sda
# 重建grub.cfg
mount --bind /proc /mnt/proc
mount --bind /dev /mnt/dev
mount --bind /sys /mnt/sys
chroot /mnt update-grub
umount /mnt/sys
umount /mnt/devumount /mnt/proc
参考网址http://bbs.ylmf.net/forum.php?mod=viewthread&tid=1559469http://tech.ccidnet.com/art/738/20100803/2140203_1.htmlhttp://os.51cto.com/art/201006/205349.htmhttp://forum.ubuntu.org.cn/viewtopic.php?t=255746http://forum.ubuntu.org.cn/viewtopic.php?t=284189http://blog.csdn.net/qyq24836910000/archive/2008/11/11/3267330.aspxhttp://doggou.javaeye.com/?page=2&show_full=true
方法一 grub4dos0.4.4
在Windows启动项上加上grub4dos启动(不多说了,看置顶贴),重启选择进入grub,在命令行下输入(/boot单独分区的去掉 /boot)
代码:
grub>find --set-root /boot/grub/core.img
grub>kernel /boot/grub/core.img
grub>boot进入grub2菜单,进入系统后再执行代码:
sudo grub-install /dev/sd?方法二 Grub Rescue进入Livecd 后修复引用:
sudo -i
mount 你的根分区 /mnt
mount 你的/boot 分区 /mnt/boot #如果有的话
#挂载你其他的分区,如果有的话
# 重建grub到sda的mbr
grub-install --root-directory=/mnt /dev/sda
2. 由于root分区uuid改变造成的不能正常启动,只能进入grub rescue模式的修复代码:
grub rescue>set
grub rescue>prefix=(hd?,?)/grub
grub rescue>root=hd?,?
grub rescue>set root=hd?,?
grub rescue>set prefix=(hd?,?)/boot/grub
grub rescue>set
grub rescue>root=hd?,?
grub rescue>prefix=(hd?,?)/boot/grub
grub rescue>insmod /boot/grub/normal.mod
grub rescue>normal这时就可以调出 /boot/grub/grub.cfg,修改相应uuid,
改到命令行下
grub>insmod /boot/grub/linux.mod
grub>set root=hd?,?
grub>linux /boot/vmlinuz-*** root=/dev/sd??
grub>initrd /boot/initrg.img-****
进入系统
hd?,? 是grub文件所在分区 sda? 是/分区。3. Grub Rescuegrub模块和配置文件grub.cfg受损无法启动时修复
Livcd启动进入试用引用:
sudo -i
mount 你的根分区 /mnt
mount 你的/boot 分区 /mnt/boot #如果有的话
# 挂载你其他的分区,如果有的话
# 重建grub到sda的mbr
grub-install --root-directory=/mnt /dev/sda
# 重建grub.cfg
mount --bind /proc /mnt/proc
mount --bind /dev /mnt/dev
mount --bind /sys /mnt/sys
chroot /mnt update-grub
umount /mnt/sys
umount /mnt/devumount /mnt/proc
参考网址http://bbs.ylmf.net/forum.php?mod=viewthread&tid=1559469http://tech.ccidnet.com/art/738/20100803/2140203_1.htmlhttp://os.51cto.com/art/201006/205349.htmhttp://forum.ubuntu.org.cn/viewtopic.php?t=255746http://forum.ubuntu.org.cn/viewtopic.php?t=284189http://blog.csdn.net/qyq24836910000/archive/2008/11/11/3267330.aspxhttp://doggou.javaeye.com/?page=2&show_full=true
相关文章推荐
- win7与Ubuntu双系统win7重装后修复Grub文件问题
- linux_grub引导修复问题
- U盘安装Ubuntu10.04出现Grub问题修复
- 双系统GRUB修复中碰到的问题
- 修复Ubuntu分区挂载错误,Grub引导错误,ubuntu升级后不能显示桌面等问题
- ubuntu修复grub,u盘引导问题
- linux常见问题案例总结(root密码忘记,设置grub密码,grub修复)
- CentOS6启动过程总结与GRUB问题修复
- Ubuntu+Win7双系统grub的修复问题
- Grub Rescue来修复Grub 问题
- Ubuntu使用LiveCD修复grub问题
- 在同一台机器上装两个不同版本的CentOS后Grub的修复问题
- ubuntu安装光盘修复grub-rescue引导失败问题
- CentOS6启动过程总结与GRUB问题修复 推荐
- ubuntu安装光盘修复grub-rescue引导失败问题
- 修复"The symbol grub xputs not found"问题
- window+fedora19 grub修复问题
- linux_grub引导修复问题
- win7 ubuntu 14.04 双系统grub修复问题-2015-4-2
- ubuntu/win7 双系统,重新装win7,系统卡在grub终端的问题修复