引导异常

ubuntu经常由于各种原因导致系统引导异常,不能正常开机,不能进入到grub界面,或者不管选择任何一种内核和模式进入都出现error: attempt to read or write outside of disk 'hd0’错误。针对这个情况,我采取过两种方式。

https://help.ubuntu.com/community/BootPartition

准备工具:
1、具备EFI格式的ubuntu启动盘;
2、一个不能正常引导的系统

测试环境:ubuntu16.04, nvidia 显卡及驱动
tips:引导修复后如果出现循环登陆的问题,可以alt+ctrl+f2进行命令行模式,对nvidia显卡驱动进行卸载,同时记录自己显卡驱动的版本,重启后再安装一次驱动即可。

sudo apt purge nvidia-*  //remove nvidia driver
sudo apt-get install nvidia-驱动型号(nvidia-384)  //install nvidia driver

一 仅使用boot-repair修复(时而失败)

  • Step 1 - Boot on a liveCD or liveUSB

Boot your computer either on:

  • a Linux-Secure-Remix liveCD or liveUSB, then choose “Try Ubuntu”, then go directly to Step 3 below.

  • or a Ubuntu live-CD or live-USB, choose “Try Ubuntu”, then go to Step 2 below.
    使用启动盘或者光盘开机。
    Step 2 - Install Boot-Repair in the live-session
    Once in the Ubuntu live session, install Boot-Repair this way:

Connect internet
Open a terminal (Ctrl+Alt+T) and type :
打开终端输入如下指令,安装boot-repair

sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get updatesudo apt-get install -y boot-repairsudo boot-repair

然后按照提示进行操作并重启。如果正常启动就不用看下一步了,若还是不行,则为系统重装一个引导。

二. 在磁盘头新建一个引导,(也是使用boot-repair修复)

step1 step2安装以上操作仅安装boot-repair工具,但不需要运行。
接下来的工作为将硬盘中的所有资料全部向后移动一定大小,而后在磁盘头新建一个free space,然后通过boot-repair在这个空的分区中新建一个引导。
Step 3 - Run gParted
Launch gParted from either:

  • the Dash (Ubuntu 11.04 and next): click the Ubuntu logo in the top-left corner of the screen, then type gparted and click on the gParted icon that will appear.

  • or System->Administration->gParted menu (Ubuntu 10.04)

  • or by typing gksudo gparted in a terminal
    打开工具gParted
    Step 4 - Create a 1GB partition at the start of the disk
    Via gParted:

  • Reduce one of the first partitions of the disk in order to create 1GB (=1000MiB) of free space at the start of the disk where Ubuntu is installed. This free space must be located inside the first 100GB of the disk (its end must not be located at more than 100GB from the start of the disk). Important: to resize Windows Vista/7/8 partitions, don’t use gParted but Windows tools instead.

  • In this free space, create a 1GB partition formatted in EXT4.

  • On a paper, note the name of this new 1GB partition. This is generally something like /dev/sdXY (X is a letter, Y is a number).
    通过这个工具在ubuntu系统的磁盘头创建1G的ext4分区,并记住这个分区的名字。
    Step 5 - Run Boot-Repair
    Launch Boot-Repair from either:

  • the Dash (Ubuntu 11.04 and next): click the Ubuntu logo in the top-left corner of the screen, then type boot and click on the Boot-Repair icon that will appear.

  • or System->Administration->Boot-Repair menu (Ubuntu 10.04)

  • or by typing boot-repair in a terminal
    打开boot-repair
    Step 6 - Choose the right option
    In Boot-Repair:

  • Click on Advanced Options

  • Go to the GRUB location tab

  • Tick the “Separate /boot partition: sdXY” option (sdXY must be your 1GB partition)


选择advanced-options,然后按照上图将Separate /boot partition设置到刚刚新建的分区中。这一步可能需要等待很长时间,因此需要将所有文件剪切到1G的磁盘后。所以可以在之前将不需要用的日志等冗余数据删除或者早点拷贝出来。

  • Click “Apply”

  • Note on a paper the URL (paste.ubuntu.com/XXXXXX/) that will appear.

  • Shutdown the computer

  • Remove the liveCD and/or liveUSB

  • Start the computer. You should now be able to boot into Ubuntu.

多种ubuntu引导修复方法相关推荐

  1. Ubuntu引导修复

    转载自:https://blog.csdn.net/u012260238/article/details/52713724 安装完双系统,如果在使用过程中不小心删除了Ubuntu引导向,则会导致开机后 ...

  2. Ubuntu引导修复(Boot Repair)

    第一步: 还是需要进入Ubuntu界面,但是并不需要安装(如果直接安装的话,以前在Ubuntu里面的文件可全部都没有了,所以万不得已,千万别这样做). 如何进入Ubuntu界面呢,相信装过Ubuntu ...

  3. 双系统Ubuntu 引导修复(Boot Repair)

    安装完双系统,如果在使用过程中不小心删除了Ubuntu引导向,则会导致开机后无法选择进入Ubuntu系统.或者当我们重装了windows系统后,也会发现原来的Ubuntu引导不见了,当出现这两种情况之 ...

  4. Ubuntu引导修复问题

    Ubuntu和Win7双系统,一不小心在Ubuntu下把Win7 C盘的boot目录给删了(手贱呀),然后Win7就没了,后来找了张WinPE启动盘修复了Win7引导结果,Ubuntu系统的引导没了. ...

  5. 双系统引导失败,windows的引导修复方法

    本文同步更新与我的个人博客:https://blog.hizrd.top,欢迎访问! 本文在我的个人博客上的链接:https://blog.hizrd.top/2019/01/12/%E5%8E%9F ...

  6. Ubuntu引导修复/Ubuntu的暴力安装方法

    Linux操作系统拥有很多Windows系统所无法比拟的优势,并且深受专业人士的喜爱.在Linux的众多发行版中,Ubuntu是十分受欢迎一款.然而,很多朋友却因为无法正常安装Ubuntu而难以继续往 ...

  7. win10+ubuntu双系统,重装win10后修复ubuntu引导的方法

    笔记本型号:联想拯救者Y7000P 2019版 操作系统:Windows 10+Ubuntu 18.04 LTS 问题:重装系统后发现没办法进入到Ubuntu 解决办法: 首先,我们需要准备一个Ubu ...

  8. Win10和Ubuntu的引导修复,Ubuntu引导Win10

    文章目录 1. Win10启动失败,bootmgr is missing(启动项管理器文件丢失) 1.1 错误原因: 1.2 解决方法: 2. Ubuntu引导修复 2.1 问题描述: 2.2 解决方 ...

  9. linux删除win分区工具,Win 10 和 Linux 双系统,从硬盘删除Linux分区,Win 10引导修复...

    由于安装双系统后,Linux 用的比较少.因此,从Win 10 磁盘管理中删除了linux 占用的磁盘空间,重启后无法进入win 10 ,出现如下情况: 有人提出,此时需要重装系统,并不用如此麻烦,通 ...

最新文章

  1. 导购网站 服务器,导购网站云服务器配置
  2. kmp模板(HD1711)
  3. Hive中视图机制的初步使用及分析
  4. 计算机视觉基础---图像处理(几何变换)cpp+python
  5. 构件与构架,我的理解
  6. [加密]SSL/TLS原理详解
  7. python求和1到100_python实现1加到100
  8. 从碧桂园和兴海物联看物业信息化、数字化和智能化
  9. iOS_44_导入第3方APP内的文件_UTI
  10. C语言函数递归调用实验报告,C语言函数的递归和调用实例分析
  11. Python如何下载网页上的视频
  12. 任天堂 虚拟主机服务器,任天堂不计划在Switch上推出虚拟主机
  13. Redis网站热搜关键词加载实践,建议收藏
  14. python爬取bilibili弹幕_用Python爬取B站视频弹幕
  15. 【已解决】电脑插网线可以上网,但是显示黄色感叹号
  16. windows,ubuntu,代码三种方式制作Android开机动画 bootanimation.zip
  17. 用74HC165读8个按键状态
  18. 关于Recycle.exe病毒的分析
  19. Oracle定时job 规定时间调用存储过程 每天凌晨执行
  20. 服务器性能测试方法,服务器性能测试方法

热门文章

  1. 【Python基础语法记录】
  2. linux之wait函数
  3. Ubuntu 安装Trac
  4. 市面上的护眼灯真的护眼吗?护眼灯作用大不大
  5. 数学_矩阵求逆/伪逆计算
  6. 1. 关于系统架构师
  7. 程序员之间的战争,某宁测试和开发干架,鼠标线勒脖子都来了!
  8. 反恐精英代码_CS:GO和军团要塞2源代码泄漏,Valve:稳住
  9. adlds文件服务器,WinServer2008之ADLDS轻型目录服务解析
  10. html蒙尘效果,vr看车.html