Formatting a microSD Card
Info
Choose the tab corresponding to the operating system you are using to format your SD card. Windows or Linux systems are recommended, but MacOS should work as well if it's your only choice.
ChromeOS/Android/iOS are NOT reliable devices to format your SD card with!
Operating System:
Warning
Make sure to use the correct tab for your SD card size. This is important, or you may end up formatting to the wrong filesystem by choosing the wrong tab!
Formatting an SD card will WIPE ALL FILES on it. If you have any data on the SD card that you would like to keep, back it up your PC before formatting.
-
Download the latest version of SD Memory Card Formatter.
- Accept the End User License Agreement to start the download
-
Insert your SD card into your computer.
-
Run
SD Card Formatter Setup
(the.exe
file) in the downloaded.zip
file with Administrator privileges, then install the program. -
Run
SD Card Formatter
from the Start Menu. -
Select your SD card’s drive letter for
Select Card
.- Make sure you choose the correct drive letter, otherwise you might accidentally erase the wrong drive!
-
Ensure that
Quick Format
is selected. -
Click
Format
. -
Click
OK
. -
Wait for the format to finish.
-
Click
OK
. -
Close the SD Card Formatter program.
-
Download the latest version of SD Memory Card Formatter.
- Accept the End User License Agreement to start the download
-
Insert your SD card into your computer.
-
Run
SD Card Formatter Setup
(the.exe
file) in the downloaded.zip
file with Administrator privileges, then install the program. -
Run
SD Card Formatter
from the Start Menu. -
Select your SD card’s drive letter for
Select card
.- Make sure you choose the correct drive letter, otherwise you might accidentally erase the wrong drive!
-
Ensure that
Quick Format
is selected. -
Click
Format
. -
Click
OK
. -
Wait for the format to finish.
-
Click
OK
. -
Close the SD Card Formatter program.
Note
You're not done yet! Your SD card will be formatted to exFAT at this point. The following steps will format it to FAT32.
-
Download GUIFormat.
-
Run
guiformat.exe
. -
Select your SD card’s drive letter for
Drive
.- Make sure you choose the correct drive letter, otherwise you might accidentally erase the wrong drive!
-
Set
Allocation unit size
to32768
. -
Ensure that
Quick Format
is selected. -
Click
Start
. -
Click
OK
.Errors in GUIFormat
You may encounter an error while using GUIFormat. See below for possible codes and solutions:
Failed to open device: GetLastError()=32
- Close everything that may be using the SD card, such as any File Explorer windows.
GetLastError()=1117
- Your SD card write-protection switch may be enabled. The lock switch must be flipped upwards to allow writing to the SD card. (including formatting)
-
Wait for the format to finish.
-
Click
Close
.
Warning
The commands in this guide are case-sensitive. Enter them exactly as written, or there may be unintended consequences.
Formatting an SD card will WIPE ALL FILES on it. If you have any data on the SD card that you would like to keep, back it up your PC before formatting.
-
Make sure your SD card is not inserted.
-
Open a terminal window and run the command
watch lsblk
-
Insert the SD card and watch for a new device appearing in lsblk.
-
Observe the output for the new device. It should match something like this:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT mmcblk0 179:0 0 29.7G 0 disk └─mmcblk0p1 179:1 0 29.5G 0 part /run/media/user/FFFF-FFFF
-
Take note of the name of the device that now appears. In the example above, it was
mmcblk0
, but it could show up assda
orsdb
, if you use a USB adapter.- If
RO
is set to1
, make sure the lock switch is not slid down. - Device name is not the partition name. In the example above, the device name is
mmcblk0
, and the partition name ismmcblk0p1
.
- If
-
Hit CTRL + C to exit the menu.
-
Run
sudo umount /dev/<device name>*
(do not replace the*
) -
Install the
fdisk
anddosfstools
packages using your package manager of choice, if they are not installed already. -
Run
sudo fdisk /dev/<device name>
-
Enter
o
. This will create a new MBR partition scheme. -
Enter
n
, then press enter until you're returned to the prompt.- The default values will work fine for all consoles.
-
Enter
t
, then enter0c
-
Enter
a
, and thenp
. Observe the output, and make sure the device is now formatted correctly:Disk /dev/mmcblk0: 29.72 GiB, 31914983424 bytes, 62333952 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x######## Device Boot Start End Sectors Size Id Type /dev/<partition name> 8192 62333951 62325760 29.7G c W95 FAT32 (LBA)
-
If there are no issues, enter
w
. This will save changes and exit the fdisk program. -
Run
sudo mkfs.vfat /dev/<partition name> -s 64
to format the new partition to FAT32. -
Run
sudo eject /dev/<device name>
, then remove the SD. You're done!
-
Make sure your SD card is not inserted.
-
Open a terminal window and run the command
watch lsblk
-
Insert the SD card and watch for a new device appearing in lsblk.
-
Observe the output for the new device. It should match something like this:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT mmcblk0 179:0 0 29.7G 0 disk └─mmcblk0p1 179:1 0 29.5G 0 part /run/media/user/FFFF-FFFF
-
Take note of the name of the device that now appears. In the example above, it was
mmcblk0
, but it could show up assda
orsdb
, if you use a USB adapter.- If
RO
is set to1
, make sure the lock switch is not slid down. - Device name is not the partition name. In the example above, the device name is
mmcblk0
, and the partition name ismmcblk0p1
.
- If
-
Hit CTRL + C to exit the menu.
-
Install the
parted
anddosfstools
packages using your package manager of choice, if they are not already installed. -
In your terminal, run
sudo parted /dev/<device name> mklabel msdos
-
Run
sudo parted -a opt /dev/<device name> mkpart primary fat32 0% 100%
-
Run
sudo mkfs.vfat /dev/<partition name> -s 64
to format the new partition to FAT32. -
Run
sudo eject /dev/<device name>
, then remove the SD. You're done!
-
Make sure your SD card is not inserted.
-
Open KDE Partition Manager, inputting your password as needed.
-
Insert your SD card and click
Refresh Devices
. The new device that shows up in the left pane is your SD card. -
Click your SD card, then click the
New Partition Table
button at the top of the window. -
When asked, choose
MS-Dos
. Do NOT useGPT
. (1) -
Right click the
unallocated
space in the right pane, and selectNew
. -
When selecting your filesystem, choose
FAT32
from the drop-down menu. (2) -
Click
OK
, then clickApply
, and thenApply Pending Operations
. -
Eject your SD card. You're done!
Warning
Make sure to use the correct tab for your SD card size. This is important, or you may end up formatting to the wrong filesystem by choosing the wrong tab!
Formatting an SD card will WIPE ALL FILES on it. If you have any data on the SD card that you would like to keep, back it up your PC before formatting.
-
Download the latest version of SD Memory Card Formatter.
- Accept the End User License Agreement to start the download
-
Insert your SD card into your computer.
-
Run
Install SD Card Formatter
(the.mpkg
file) in the downloaded.zip
file. -
Run
SD Card Formatter
-
Select your SD card for
Select Card
.- Make sure you choose the correct device, otherwise you might accidentally erase the wrong drive!
-
Ensure that
Quick Format
is selected. -
Click
Format
. -
Wait for the format to finish.
-
Click
OK
, then close the SD Card Formatter program. -
Eject your SD card, and then you're done!
-
Download the latest version of SD Memory Card Formatter.
- Accept the End User License Agreement to start the download
-
Insert your SD card into your computer.
-
Run
Install SD Card Formatter
(the.mpkg
file) in the downloaded.zip
file. -
Run
SD Card Formatter
-
Select your SD card for
Select Card
.- Make sure you choose the correct device, otherwise you might accidentally erase the wrong drive!
-
Ensure that
Quick Format
is selected. -
Click
Format
. -
Wait for the format to finish.
-
Click
OK
, then close the SD Card Formatter program.Note
You're not done yet! Your SD card will be formatted to exFAT at this point. The following steps will format it to FAT32.
-
Choose a tab below based on the version of MacOS your computer is running to continue:
-
Launch the Disk Utility application.
-
Select
Show All Devices
in the top-leftView
panel. -
Select your SD card from the sidebar.
- Make sure you choose the correct device, otherwise you might accidentally erase the wrong drive!
-
Click
Erase
at the top. -
Ensure that
Format
is set toMS-DOS (FAT32)
.- On El Capitan (10.11) through Catalina (10.15) choose
MS-DOS (FAT)
.
- On El Capitan (10.11) through Catalina (10.15) choose
-
Ensure that
Scheme
is set toMaster Boot Record
.- If
Scheme
does not appear, clickCancel
and make sure to choose the device instead of a volume.
- If
-
Click
Erase
, then clickClose
. -
Eject your SD card, and then you're done!
-
Launch the Disk Utility application.
-
Select your SD card from the sidebar.
- Make sure you choose the correct device, otherwise you might accidentally erase the wrong drive!
-
Click
Partition
at the top.- If
Partition
does not appear, make sure to choose the device instead of a volume.
- If
-
Ensure that
Partition Layout
is set to1 Partition
. -
Ensure that
Format
is set toMS-DOS (FAT)
. -
From the
Options
button (below the partition table), selectMaster Boot Record
. -
Click
OK
, thenApply
, and thenPartition
. -
Eject your SD card, and then you're done!