首页 > 其他 > 详细

error: attempt to read or write outside of disk 'hd0'

时间:2019-09-02 01:10:23      阅读:544      评论:0      收藏:0      [点我收藏+]

介绍

某些情况(例如BIOS限制或此GRUB错误)可能需要在磁盘的开头创建单独的/启动分区,并设置Ubuntu以使用它。 

以下是如何轻松完成的方法:

 

程序

 

第1步 - 在liveCD或liveUSB上启动

启动计算机:

Linux-Secure-Remix liveCD或liveUSB,然后选择“Try Ubuntu”,然后直接进入下面的步骤3

- 或者是Ubuntu live-CD或live-USB,选择“Try Ubuntu”,然后转到下面的第2步

 

第2步 - 在实时会话中安装Boot-Repair

进入Ubuntu实时会话后,以这种方式安装Boot-Repair

  • 连接互联网
  • 打开终端(Ctrl + Alt + T)并键入:

 

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

 

sudo apt-get install -y boot-repair

 

第3步 - 运行gParted

从以下任一方面启动gParted:

- Dash(Ubuntu 11.04和下一个):单击屏幕左上角的Ubuntu徽标,然后键入gparted并单击将出现gParted图标。

- 或系统 - >管理 - > gParted菜单(Ubuntu 10.04)

- 或者在终端中键入gksudo gparted

 

步骤4 - 在磁盘的开头创建1GB分区

通过gParted:

- 减少磁盘的第一个分区之一,以便安装Ubuntu 的磁盘的开头创建1GB(= 1000MiB)的可用空间此可用空间必须位于磁盘的前100GB内(其末端的磁盘起始位置不得超过100GB)。重要提示:要调整Windows Vista / 7/8分区的大小,请不要使用gParted而是使用Windows工具。

技术分享图片

 

- 在此可用空间中,创建一个格式为EXT41GB分区

- 在纸上,记下这个新的1GB分区的名称。这通常类似于/ dev / sdXY(X是一个字母,Y是一个数字)。

 

第5步 - 运行引导修复

从以下任一方面启动Boot-Repair:

- Dash(Ubuntu 11.04和下一个):单击屏幕左上角的Ubuntu徽标,然后键入boot并单击将出现Boot-Repair图标。

- 或System-> Administration-> Boot-Repair菜单(Ubuntu 10.04)

- 或者在终端中键入boot-repair

 

第6步 - 选择正确的选项

在引导修复中:

- 单击“ 高级选项”

- 转到GRUB位置选项卡

- 勾选“Separate / boot partition:sdXY”选项(sdXY必须是你的1GB分区)

技术分享图片

 

- 点击“申请”

- 在纸上注意将出现的URL(paste.ubuntu.com/XXXXXX/)。

- 关闭计算机

- 删除liveCD和/或liveUSB

- 启动电脑。你现在应该可以启动到Ubuntu了。

 

英文原版 

Introduction

Some situations (eg BIOS limitations, or this GRUB bug) may require to create a separate /boot partition at the start of the disk, and setup Ubuntu to use it. 

Here is how to do it very easily:

 

Procedure

 

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 :

 

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

 

sudo apt-get install -y 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

 

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).

 

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

 

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)

技术分享图片

- 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.

 

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

error: attempt to read or write outside of disk 'hd0'

原文:https://www.cnblogs.com/jinlin-2018/p/11443925.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!