首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Grub2错误:在引导13.0.4时没有这样的分区

Grub2错误:在引导13.0.4时没有这样的分区
EN

Ask Ubuntu用户
提问于 2013-06-15 14:14:05
回答 1查看 797关注 0票数 0

-更新--所以我发现了一些奇怪的东西。如果我在reffit中选择SDA4,就会得到一个错误--没有分区找到下面描述的错误。如果我在DVD驱动器中使用PLOP引导管理器并选择SDA4,那么我就可以正确地加载grub。

因此,Reffit正在使用的MBR被破坏了。它使用的是混合引导加载程序,因此这可能是OSX在调整大小期间搞砸了的问题。有人知道怎么恢复这个吗?

安装程序: OSX /dev/sda2 2

Ubuntu /dev/sda4 4

Reffit已安装并仍在工作。我可以选择Linux,它会引导到Grub,然后选择Ubuntu,它就会启动。

我是如何引起这个问题的:调整OSX中磁盘实用程序中的OSX分区大小,以便为Ubuntu腾出空间。

Ubuntu没有安装在efi模式下,因为我使用自定义的Nvidia驱动程序。

我已经能够使用grub救援启动,但使用启动修复工具,让我回到我开始的地方,所以一定有什么地方是错误的地方,是找不到那个工具。

要从Grub手动启动,我使用以下命令:

代码语言:javascript
复制
set prefix=(hd0,gpt4)/boot/grub
set root=(hd0,gpt4)
insmod (hd0,gpt4)/boot/grub/i386-pc/linux.mod
linux /vmlinuz root=/dev/sda4 ro
initrd /initrd.img
boot

我的grub.cfg文件在这里:http://pastebin.com/m2juq2aJ

代码语言:javascript
复制
sudo fdisk -l /dev/sda

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00001168

Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1      409639      204819+  ee  GPT
/dev/sda2          409640   377176047   188383204   af  HFS / HFS+
/dev/sda3       377176048   378445583      634768   ab  Darwin boot
/dev/sda4   *   412082176   488392703    38155264   83  Linux


sudo gdisk -l /dev/sda
GPT fdisk (gdisk) version 0.8.5

Partition table scan:
MBR: hybrid
BSD: not present
APM: not present
GPT: present

Found valid GPT with hybrid MBR; using GPT.
Disk /dev/sda: 488397168 sectors, 232.9 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 000049BC-4A60-0000-F27F-0000207E0000
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 488397134
Partitions will be aligned on 8-sector boundaries
Total free space is 33636933 sectors (16.0 GiB)

Number  Start (sector)    End (sector)  Size       Code  Name
1              40          409639   200.0 MiB   EF00  EFI system partition
2          409640       377176047   179.7 GiB   AF00  Customer
3       377176048       378445583   619.9 MiB   AB00  Recovery HD
4       412082176       488392703   36.4 GiB    EF02  
5       488392704       488396799   2.0 MiB     8200

)任何关于如何恢复我的grub的帮助都很感激:)

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2013-06-23 20:08:25

我发现处理这个问题的最简单的方法是删除我的Ubuntu并重新安装。我尝试了我所能想到的一切来恢复混合MBR,但这些都没有起到任何作用。

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/308540

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档