![无法在 ubuntu 14 上创建分区](https://linux22.com/image/877608/%E6%97%A0%E6%B3%95%E5%9C%A8%20ubuntu%2014%20%E4%B8%8A%E5%88%9B%E5%BB%BA%E5%88%86%E5%8C%BA.png)
我在从 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
默认安装需要两个分区,一个根分区和一个交换分区。您只能再容纳一个主分区,因此您需要将磁盘上的所有可用空间放入“扩展”分区(一种主分区)。然后,此扩展分区可以容纳称为“逻辑分区”的附加分区,以便安装程序可以创建所需的分区。