Igor Kromin |   Consultant. Coder. Blogger. Tinkerer. Gamer.

Usually when it comes to formatting a USB stick, SD card or an external hard disk on macOS I would use the Disk Utility app that comes with the OS. However if you want to format your storage as FAT32, the app will not always oblige. There is a generic 'FAT' or 'exFAT' option but you have no control on wether the disk will be formatted as FAT16 or FAT32.

To be able to control exactly which FAT type is selected will require using diskutil from the Terminal. Here's how.

First you need to check which device the disk you're trying to format is. This is done with the diskutil list command. Open the Terminal app and run the command before plugging in your SD card/USB disk/stick. That will give you a list of disks and their device numbers.
 Terminal
diskutil list


Then, plug in the disk you want to format and run the command again. The list of disks will be updated with the one you're wanting to format - likely the last in the list. Take a note of its device number e.g. /dev/disk3 in the example here.
macosfat32_1.png


To format that disk as FAT32, run the following command (change the device number as required)...
 Terminal
sudo diskutil eraseDisk FAT32 USB MBR /dev/disk3


You will be asked to enter your password, then the disk will be formatted and the name "USB" assigned to it. If you want to assign a different name, replace it in the command - make sure to surround it with quotes if you want a space in the name.
macosfat32_2.png


Running diskutil list after formatting will confirm that the disk is indeed formatted as FAT32.
macosfat32_3.png




-i

A quick disclaimer...

Although I put in a great effort into researching all the topics I cover, mistakes can happen. Use of any information from my blog posts should be at own risk and I do not hold any liability towards any information misuse or damages caused by following any of my posts.

All content and opinions expressed on this Blog are my own and do not represent the opinions of my employer (Oracle). Use of any information contained in this blog post/article is subject to this disclaimer.
Hi! You can search my blog here ⤵
NOTE: (2022) This Blog is no longer maintained and I will not be answering any emails or comments.

I am now focusing on Atari Gamer.