Mac 使用终端对U盘分区

Mac 使用终端对U盘分区

注意 - 执行此活动将清除U盘上的所有内容

步骤1 插入U盘

步骤2 查找有关Mac上所有磁盘/驱动器的信息

打开终端,使用diskutil list命令查找有关所有磁盘的详细信息:

$ diskutil list

/dev/disk0 (internal, physical):

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *1.0 TB disk0

1: EFI EFI 209.7 MB disk0s1

2: Apple_CoreStorage Untitled 249.9 GB disk0s2

3: Apple_Boot Recovery HD 650.0 MB disk0s3

4: Apple_CoreStorage disk2 749.2 GB disk0s4

5: Apple_Boot Boot OS X 134.2 MB disk0s5

/dev/disk1 (internal, virtual):

#: TYPE NAME SIZE IDENTIFIER

0: Apple_HFS disk1 +249.5 GB disk1

Logical Volume on disk0s2

21111116-B31C-41F0-A0E0-511111183735

Unlocked Encrypted

/dev/disk2 (internal, virtual):

#: TYPE NAME SIZE IDENTIFIER

0: Apple_HFS disk2 +748.8 GB disk2

Logical Volume on disk0s4

02222220-CDFD-47D1-85C7-F222222867E6

Unlocked Encrypted

/dev/disk3 (external, physical):

#: TYPE NAME SIZE IDENTIFIER

0: FDisk_partition_scheme *750.2 GB disk3

1: Windows_NTFS Secure_HDD 750.2 GB disk3s1

注意:disk3是我想要创建两个FAT32分区的那个。

注意:disk3格式为NTFS。 您可以先使用Mac Disk Utility擦除磁盘,然后使用正确的格式重新格式化。

注意:disk3目前无法分区。 看到灰色的图标。 在练习结束时,您将能够对其进行分区。

步骤3 使用Mac 自带的磁盘工具擦除U盘

使用Mac 自带的磁盘工具擦除U盘,选择ExFAT格式

步骤4 从NTFS重新格式化为FAT32

使用下面的命令,擦除U盘

$ diskutil eraseDisk JHFS+

$ diskutil eraseDisk JHFS+ Secure_HDD disk3

Started erase on disk3

Unmounting disk

Creating the partition map

Waiting for partitions to activate

Formatting disk3s2 as Mac OS Extended (Journaled) with name BlackDrive

Initialized /dev/rdisk3s2 as a 931 GB case-insensitive HFS Plus volume with a 81920k journal

Mounting disk

Finished erase on disk3

步骤5 U盘分区(disk3)

现在你可以用苹果自带的磁盘工具对U盘进行分区了。

注意

如果报错,例如: MediaKit reports not enough space on device for requested operation.

那么运行下面的命令:

$ diskutil unmountDisk force disk3

Forced unmount of all volumes on disk3 was successful

Write zeros to the boot sector:

$ sudo dd if=/dev/zero of=/dev/disk3 bs=1024 count=1024

Password:

1024+0 records in

1024+0 records out

1048576 bytes transferred in 0.516867 secs (2028716 bytes/sec)

Remove the disk (detach the USB) and plug it in.

You will get message like The disk you inserted was not readable by this computer.

Initialize the Disk

相关典藏

泓樽付最新版
仿bus365

泓樽付最新版

📅 07-19 👁️‍🗨️ 1811
汽水音乐怎么上传翻唱
365bet大陆华人的网站

汽水音乐怎么上传翻唱

📅 07-07 👁️‍🗨️ 1845
怎样查手机话费消费明细(在手机上怎么查话费清单记录)