Formatting SD (Linux)
Required Reading
This is an add-on section for formatting an SD card to work with the 3DS.
If the 3DS already recognizes the SD card, this guide is not required.
WARNING
This page is for Linux users only. If you are not on Linux, check out the Formatting SD (Windows) or Formatting SD (Mac) pages.
WARNING
Formatting an SD card will remove all of its contents. If you have files that you wish to keep, back them up to your computer before following these instructions.
INFO
Several Linux distributions provide more user-friendly methods for formatting SD cards than this guide provides, some of which can be found here. In particular, if you are on SteamOS (e.g. Steam Deck, Steam Machine), check out the Formatting SD (KDE Partition Manager) page.
Instructions
Make sure your SD card is not inserted
Open a Terminal window, type
watch lsblk, then press EnterInsert 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-FFFFTake note of the name of the device that now appears. In the example above, it was
mmcblk0p1, but it could also show up assdaorsdbif you are using a USB adapter- If
ROis set to 1, make sure the SD card lock switch is not engaged (in the 'down' position)
- If
Press CTRL + C to exit lsblk
If necessary, install the
partedanddosfstoolspackages using your package manager- These packages are preinstalled on most distributions
- You can check if they are installed by running
sudo parted --helpandsudo mkfs.vfat, respectively
Type
sudo parted /dev/<device name> mklabel msdos, then press EnterType
sudo parted -a opt /dev/<device name> mkpart primary fat32 0% 100%, then press EnterDepending on the size of your SD card, type the following, then press Enter to reformat the new partition:
- 2GB or smaller:
sudo mkfs.vfat /dev/<device name> -s 64 -F 16 - 4GB to 64GB:
sudo mkfs.vfat /dev/<device name> -s 64 -F 32 - 128GB or larger:
sudo mkfs.vfat /dev/<device name> -s 128 -F 32
- 2GB or smaller:
Type
sudo eject /dev/<device name>, press Enter, then remove and reinsert the SD cardIf the SD card had any files and folders on it before the format, copy everything from your backup to the SD card
Troubleshooting
- SD card remains undetected by console or continues to display the wrong capacity after formatting
- Your SD card may be partitioned or have unallocated space. Follow the instructions here to reformat your SD card.