DEV Community

CP
CP

Posted on

3

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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay