% diskutil list
# this will get you the information needed to complete the next command.
# you should get something like the following:
# NOTE the '/dev/disk4' is the important part:
/dev/disk4 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *31.9 GB disk4
1: Microsoft Basic Data SOMENAME 31.7 GB disk4s1
-- OR MAYBE THIS: --
/dev/disk4 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *63.9 GB disk4
1: Windows_NTFS 63.8 GB disk4s1
以下是从命令行运行的(即
Terminal.app
或等效的)。知道 SD 卡的位置(在本例中为 /dev/disk4)允许您使用
eraseDisk
动词来格式化驱动器/卷diskutil
:请注意,命令
GPT
中的diskutil eraseDisk
意思是GUID 分区表;如果您更喜欢主引导记录,只需将上面的命令更改为以下命令: