修复Grub rescue模式并启动
2015-11-13 00:00
399 查看
现在讲下我前段时间碰到的一个问题:前阵子我硬盘分区失误,导致系统启动时自动进入rescue模式。
此问题还需要分类解决,这里只介绍boot没有独立分区(包含在/下)的情况下如何解决。
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菜单,进入linux,打开终端。
输入两行命令:
1:sudo update-grub
2:sudo grub-install /dev/sda
OK
此问题还需要分类解决,这里只介绍boot没有独立分区(包含在/下)的情况下如何解决。
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菜单,进入linux,打开终端。
输入两行命令:
1:sudo update-grub
2:sudo grub-install /dev/sda
OK
相关文章推荐
- Linux socket 初步
- linux lsof详解
- linux 文件权限
- Linux 执行数学运算
- 10 篇对初学者和专家都有用的 Linux 命令教程
- Linux 与 Windows 对UNICODE 的处理方式
- Ubuntu12.04下QQ完美走起啊!走起啊!有木有啊!
- 解決Linux下Android开发真机调试设备不被识别问题
- 运维入门
- 运维提升
- Linux 自检和 SystemTap
- Ubuntu Linux使用体验
- c语言实现hashmap(转载)
- Linux 信号signal处理机制
- linux下mysql添加用户
- Scientific Linux 5.5 图形安装教程
- 基于 Linux 集群环境上 GPFS 的问题诊断
- 谁是桌面王者?Win PK Linux三大镇山之宝
- vivi下重新调整分区