DEV Community

CP
CP

Posted on

How to format SD Card to APFS on Mac

When I tried to format a SD card to APFS, the newer MacOS disk format, using the disk utility, I received the following error:

A GUID Partition Table (GPT) partitioning scheme is required.

Enter fullscreen mode Exit fullscreen mode

Apparently, the default format (ExFAT) on the SD Card does not have a partition, and it requires a command line to fix it.

Open the terminal, and type:

diskutil partitionDisk disk6 GPT APFSX SDDRIVE 0

Note: replace disk6 with the actual disk id, and SDDRIVE is the name you use for your drive.

This will create the proper partition.

This is the available file systems. Type diskutil listFilesystems to view it on your terminal:

Image description

Top comments (0)