用liveCD/USB安装完Ubuntu12.04系统,重启后出现 error:out of disk grub rescue 解决方法

来源:互联网 发布:飞升元武核心突破数据 编辑:程序博客网 时间:2024/05/21 10:01

用liveCD/USB安装完Ubuntu12.04系统,重启后出现 error:outof disk grub rescue,解决方法如下:

 

① Boot on a liveCD or liveUSB   用liveCD/USB启动,然后选择“Try UbuntuWithout Install”;

 

② Install Boot-Repair in the live-session   进入系统,联网后打开一个终端(Ctrl+Alt+T),输入:

 

       sudo add-apt-repositoryppa:yannubuntu/boot-repair && sudo apt-get update

 

       sudo apt-get install -yboot-repair

 

③ Run gParted   在Dash输入gparted然后点击gParted图标;

 

④ 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(Ubuntu所安装盘的大小) of the disk(its end must not be located at more than 100GB from the start of the disk). (该过程会持续较长时间)

Important: to resize WindowsVista/7/8 partitions, don't use gParted but Windows tools instead.


- In this free space, createa 1GB partition formatted in EXT4.

- On a paper, note the name of this new 1GB partition. This isgenerally something like /dev/sdXY(X为字母, Y为数字).

 

⑤ Run Boot-Repair  在Dash输入boot然后点击Boot-Repair图标;

 

⑥ Choose the right option

 

In Boot-Repair: 点击 Advanced Options,然后进入 GRUB location 标签

 

- Tick the "Separate /boot partition: sdXY" option (sdXY mustbe your 1GB partition)

 

- 点击 "Apply",然后关闭计算机,取出liveCD/USB,重启电脑即可进入Ubuntu。

0 0