我在从 CD 安装 ubuntu 14 和 win7 时遇到了一些问题。我在 Windows 的硬盘上留了一些可用空间(~50GB),然后开始启动 ubuntu。一切顺利,直到我意识到 ubuntu 无法识别分区。没关系,因为我留了一个可用空间。但我甚至无法从 ubuntu 创建新分区。我在 ubuntu 上打开了磁盘管理器,我可以看到所有分区和 50GB 未分配空间。当我尝试在那里创建分区时,我收到一条消息:
Error creating partition:
Error creating partition on /dev/sda: Command-line `parted --align optimal --script "/dev/sda" "mkpart primary ext2 903869MiB 1000204886015b"' exited with non-zero exit status 1: Warning: /dev/sda contains GPT signatures, indicating that it has a GPT table. However, it does not have a valid fake msdos partition table, as it should. Perhaps it was corrupted -- possibly by a program that doesn't understand GPT partition tables. Or perhaps you deleted the GPT table, and are now using an msdos partition table. Is this a GPT partition table?
Error: You requested a partition from 948GB to 1000GB.
The closest location we can manage is 948GB to 1000GB.
(udisks-error-quark, 0)
我可以读取堆栈跟踪并了解发生了什么,但对我来说这毫无意义。它怎么会包含 GPT 签名呢?因为它甚至不是一个分区,而只是一个可用空间。如果显然它确实包含,如何删除它,以便我可以简单地创建 ext4 分区?
答案1
默认安装需要两个分区,一个根分区和一个交换分区。您只能再容纳一个主分区,因此您需要将磁盘上的所有可用空间放入“扩展”分区(一种主分区)。然后,此扩展分区可以容纳称为“逻辑分区”的附加分区,以便安装程序可以创建所需的分区。