FreeBSD 下的 Gpart(非 gparted)在使用 GPT(适用于 MBR)时添加 FAT32 分区有问题。
这是磁盘:
% gpart show /dev/da0
=> 40 15257520 da0 GPT (7.3G)
40 15257520 - free - (7.3G)
Run Code Online (Sandbox Code Playgroud)
但现在我收到一个错误:
% gpart add -t fat32 /dev/da0
gpart: Invalid argument
Run Code Online (Sandbox Code Playgroud)
如何在 FreeBSD 下创建带有 GUID 分区表的 FAT32 分区?
man gpart, 部分PARTITION TYPES指出:
ms-basic-data A basic data partition (BDP) for Microsoft
operating systems. In the GPT this type is
the equivalent to partition types fat16, fat32
and ntfs in MBR.
Run Code Online (Sandbox Code Playgroud)
因此,由于您使用的是GPTscheme,您必须使用ms-basic-datatype 而不是fat32.