How To Format SD Card as FAT32 Using Mac Command Line

If You want to format SD Card Please follow step by step, but before you follow step by step please make sure your SD Card Has Been ready.

Open Terminal

For Quick Shortcut Open Terminal please Hit cmd + space for Launch Spotligh, type Terminal hit Enter.

Insert SD Card

I use my Mac’s SD slot, but it could also be an external USB card reader, an external USB hard disk or whatever.

Identify SD Card

In Terminal Please type syntak 

$ diskutil list

After that, you can look response list all disk on your mac

/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *750.2 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                  Apple_HFS HDD750                  749.3 GB   disk0s2

/dev/disk1 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *240.1 GB   disk1
   1:                        EFI EFI                     209.7 MB   disk1s1
   2:                 Apple_APFS Container disk2         239.8 GB   disk1s2

/dev/disk2 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +239.8 GB   disk2
                                 Physical Store disk1s2
   1:                APFS Volume SSD - Data              89.6 GB    disk2s1
   2:                APFS Volume Preboot                 24.6 MB    disk2s2
   3:                APFS Volume Recovery                525.4 MB   disk2s3
   4:                APFS Volume VM                      2.1 GB     disk2s4
   5:                APFS Volume SSD                     11.1 GB    disk2s5

/dev/disk3 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *15.9 GB    disk3
   1:             Windows_FAT_32 2FE7585F                524.3 MB   disk3s1
   2:                 Linux_Swap                         536.9 MB   disk3s2
   3:                      Linux                         2.1 GB     disk3s3

/dev/disk5 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        +245.5 MB   disk5
   1:                  Apple_HFS balenaEtcher 1.5.95     245.5 MB   disk5s1

In This case my SD Card identity device /dev/disk3

Format SD card

I format the SD card as FAT32 giving it the name SDCARD using the following command:

$ 	
sudo diskutil eraseDisk FAT32 SDCARD MBRFormat /dev/disk2

sudo gives me super user rights. diskutil calls the disk utility program. eraseDisk is the command for formating. FAT32 sets the file system. SDCARD is the to be given name of my choice. MBRFormat tells the disk utility program to format with a Master Boot Record. /dev/disk2 is the location of my SD card.

I then am asked for my password. After confirming the formatting is runned.

Verify formatting

To check if the formatting had been successful I use above command again:

diskutil list

Just Simple.

Related Articles

Comments