ubuntu出现grub rescue
2016-04-07 07:35
411 查看
摘要: 种种原因,用着的是win10+ubuntu这样的双系统,尼玛啊不知道怎么的win10自动升级(话说我当时还玩着英雄联盟结果直接升级还被举报了)然后升级完晚上进入ubuntu的时候就出现问题,unknown filesystem。心中瞬间万只草泥马在奔腾。win10自动更新直接将写在硬盘mbr的linux的启动项给破坏掉?
出现grub rescue的解决方法:
1 grub rescue>ls
罗列所有硬盘分区信息,如
(hd0) (hdo,msdos3) (hd0,msdos2)(hd0,msdos1)
我另外加装了一块固态硬盘,所以我的后面还有(hd1)......
2 grub rescue>ls (hd0,msdos3)/boot/grub
linux distrubution差异可能会找不到grub,路径不一样
3 我的linux安装在(hd0,msdos3),所以我在该分区找到了我的grub,显示了文件夹的内容
4 grub rescue>set root=(hd0,msdos3)
grub rescue>set prefix=(hd0,msdos3)/boot/grub
grub rescue>insmod normal
grub rescue>normal
至此,开机已经完成,
但是此时进行重启,还会出现这种情况,所以要对grub进行修复
sudo update-grub
sudo grub-install /dev/sda
sda是硬盘号,不能指定硬盘分区,如sda1,sda5是不正确的
出现grub rescue的解决方法:
1 grub rescue>ls
罗列所有硬盘分区信息,如
(hd0) (hdo,msdos3) (hd0,msdos2)(hd0,msdos1)
我另外加装了一块固态硬盘,所以我的后面还有(hd1)......
2 grub rescue>ls (hd0,msdos3)/boot/grub
linux distrubution差异可能会找不到grub,路径不一样
3 我的linux安装在(hd0,msdos3),所以我在该分区找到了我的grub,显示了文件夹的内容
4 grub rescue>set root=(hd0,msdos3)
grub rescue>set prefix=(hd0,msdos3)/boot/grub
grub rescue>insmod normal
grub rescue>normal
至此,开机已经完成,
但是此时进行重启,还会出现这种情况,所以要对grub进行修复
sudo update-grub
sudo grub-install /dev/sda
sda是硬盘号,不能指定硬盘分区,如sda1,sda5是不正确的
相关文章推荐
- FluentData
- 96. Unique Binary Search Trees
- light7ui 刷新子页面 js不能加载的问题
- 96. Unique Binary Search Trees
- android中出现"androidsdk/build-tools/23.0.2/aapt.exe"finished with...错误以及drawable/下的图片命名格式
- 一个关于tableView的footerView的子控件y 坐标的 BUG
- Android-Ui常见的几种布局管理器
- 第66课:SparkSQL下Parquet中PushDown的实现学习笔记
- 关于BooleanQuery在搜索中的用处
- hue-3.7.0安装+ hadoop2.6.3目前使用的hue配置
- A cycle was detected in the build path of project
- IOS开发之UI中的坐标相关内容
- IOS开发之UIButton的介绍
- iOS中的所有字体和UILabel
- iOS中的UITextField
- UIView子视图调整
- hadoop自定义key,value
- 232. Implement Queue using Stacks
- 使用自定义ui的ShareSDK短信验证码功能
- Ueditor 前后端数据交互