测试
gdisk
。
它在Ubuntu Trusty Tahr 14.04.1 Live Iso中可用。
打开终端。
执行:
sudo su
gdisk /dev/sd?
gdisk
程序采用类似于Linux的
fdisk
的用户界面,但
gdisk
修改GPT分区。它还具有将MBR分区或BSD磁盘标签转换为GPT分区的能力。与原始的
fdisk
程序一样,
gdisk
在您明确将其写入磁盘之前不会修改磁盘结构,因此如果出现错误,您可以使用
q
选项退出程序,以保持分区不受修改。
在创建新的分区表时,可能需要考虑以下几点:
对于数据磁盘以及在使用GRUB作为引导加载程序的基于BIOS的计算机上用作引导磁盘的情况,可以按照任意顺序和任意大小创建分区。
基于EFI的系统的引导磁盘需要一个格式为FAT-32的EFI系统分区(gdisk内部代码0xEF00)。
一些基于BIOS的系统的引导加载程序使用BIOS引导分区(gdisk内部代码0xEF02),其中存储了次级引导加载程序,可能没有文件系统的好处。
如果Windows要从GPT磁盘引导,建议使用Microsoft Reserved类型的分区(gdisk内部代码0x0C01)。该分区的大小应为约128 MiB。它通常位于EFI系统分区之后,紧接着是Windows数据分区。
一些操作系统的GPT工具在每个分区之后创建一些空白空间(通常为128 MiB)。目的是为了使未来的磁盘工具能够利用这个空间。GPT磁盘不需要这样的空闲空间,但创建它可能有助于未来的磁盘维护。
选项:
-l List the partition table for the specified device and then exits.
b Save partition data to a backup file.
c Change the GPT name of a partition.
d Delete a partition.
i Show detailed partition information.
l Display a summary of partition types.
n Create a new partition.
o Clear out all partition data.
p Display basic partition summary data.
q Quit from the program without saving your changes.
r Enter the recovery & transformation menu.
s Sort partition entries.
t Change a single partition's type code.
v Verify disk.
w Write data.
? Print the menu.
dd
速度慢的原因是因为您没有指定块大小。加上bs=1M
(或者10M),应该能够大大提高速度,并将所需时间缩短到几个小时这样更合理的范围。 - user249743