问小白 wenxiaobai
资讯
历史
科技
环境与自然
成长
游戏
财经
文学与艺术
美食
健康
家居
文化
情感
汽车
三农
军事
旅行
运动
教育
生活
星座命理

Mac系统下如何将APFS格式磁盘重新格式化为exFAT格式

创作时间:
作者:
@小白创作中心

Mac系统下如何将APFS格式磁盘重新格式化为exFAT格式

引用
CSDN
1.
https://blog.csdn.net/weixin_45827703/article/details/138345475

本文将介绍如何解决在Mac系统中无法手动格式化已存在的APFS容器磁盘的问题。通过具体的命令行操作步骤,你可以将APFS格式的磁盘重新格式化为exFAT格式,使其在不同操作系统间实现更好的兼容性。

步骤一:查看磁盘信息

首先,使用以下命令查看当前磁盘信息:

diskutil apfs list

从输出结果中,你可以看到disk5s1是挂载的一张TF卡,已经被格式化为APFS格式。

步骤二:删除APFS卷

使用以下命令删除APFS卷:

diskutil apfs deleteVolume /dev/disk5s1

执行结果如下:

Started APFS operation
Deleting APFS Volume from its APFS Container
Unmounting disk5s1
Erasing any xART session referenced by 5CEC7055-6985-4B7E-AAC2-62434BCD00E9
Deleting Volume
Removing any Preboot and Recovery Directories
Finished APFS operation

步骤三:删除APFS容器

接下来,删除APFS容器:

diskutil apfs deleteContainer /dev/disk5

执行结果如下:

Started APFS operation on disk5
Deleting APFS Container with all of its APFS Volumes
Unmounting Volumes
Deleting Volumes
Deleting Container
Wiping former APFS disks
Switching content types
1 new disk created or changed due to APFS operation
Disk from APFS operation: disk4s2
Finished APFS operation on disk5
Removing disk4s2 from partition map

步骤四:查看磁盘标识符

使用以下命令查看磁盘标识符:

diskutil list

步骤五:格式化为exFAT

使用以下命令将磁盘格式化为exFAT格式:

sudo diskutil eraseDisk exFAT SDCARD MBRFormat /dev/disk4

执行结果如下:

Started erase on disk4
Unmounting disk
Creating the partition map
Waiting for partitions to activate
Formatting disk4s1 as ExFAT with name SDCARD
Volume name      : SDCARD
Partition offset : 2048 sectors (1048576 bytes)
Volume size      : 61065216 sectors (31265390592 bytes)
Bytes per sector : 512
Bytes per cluster: 32768
FAT offset       : 2048 sectors (1048576 bytes)
# FAT sectors    : 8192
Number of FATs   : 1
Cluster offset   : 10240 sectors (5242880 bytes)
# Clusters       : 953984
Volume Serial #  : 66309196
Bitmap start     : 2
Bitmap file size : 119248
Upcase start     : 6
Upcase file size : 5836
Root start       : 7
Mounting disk
Finished erase on disk4

步骤六:确认格式化结果

最后,再次查看磁盘信息以确认格式化是否成功:

diskutil list

格式化后的磁盘信息如下图所示:

至此,你已经成功将APFS格式的磁盘重新格式化为exFAT格式。

© 2023 北京元石科技有限公司 ◎ 京公网安备 11010802042949号