Formatting an SD card/Linux: Difference between revisions

From Hacks Guide Wiki
(imported from 3dsguide:formatting-sd-(linux) and used pandoc)
 
No edit summary
Line 1: Line 1:
{% include toc title=“Table of Contents” %}
<span id="required-reading"></span>
=== Required Reading ===
This is an add-on section for formatting an SD card to work with the 3DS.
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.
If the 3DS already recognizes the SD card, this guide is not required.


This page is for Linux users only. If you are not on Linux, check out the [[formatting-sd-(windows)|Formatting SD (Windows)]] or [[formatting-sd-(mac)|Formatting SD (Mac)]] pages.
This page is for Linux users only. If you are not on Linux, check out the [[Special:MyLanguage/Formatting an SD card/Windows|Windows]] or [[Special:MyLanguage/Formatting an SD card/Mac|Mac]] pages.


<span id="instructions"></span>
== Instructions ==
=== Instructions ===


# Make sure your SD card is '''not''' inserted
# Make sure your SD card is '''not''' inserted
# Launch the Linux Terminal
# Launch the Linux Terminal
# Type <code>watch &quot;lsblk&quot;</code>
# Type <code>watch "lsblk"</code>
# Insert your SD card into your PC
# Insert your SD card into your PC
# Observe the output. It should match something like this:
# Observe the output. It should match something like this: {{#tag:syntaxhighlight|
 
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
<pre>NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
mmcblk0    179:0    0  3,8G  0 disk
mmcblk0    179:0    0  3,8G  0 disk
└─mmcblk0p1 179:1    0  3,7G  0 part /run/media/user/FFFF-FFFF</pre>
└─mmcblk0p1 179:1    0  3,7G  0 part /run/media/user/FFFF-FFFF
}}
# Take note of the device name. In our example above, it was <code>mmcblk0p1</code>
# Take note of the device name. In our example above, it was <code>mmcblk0p1</code>
 
#* If <code>RO</code> is set to 1, make sure the lock switch is not slid down
* If <code>RO</code> is set to 1, make sure the lock switch is not slid down
 
# Hit CTRL + C to exit the menu
# Hit CTRL + C to exit the menu
# Type in the following for your SD card:
# Type in the following for your SD card:

Revision as of 22:46, 11 June 2022

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.

This page is for Linux users only. If you are not on Linux, check out the Windows or Mac pages.

Instructions

  1. Make sure your SD card is not inserted
  2. Launch the Linux Terminal
  3. Type watch "lsblk"
  4. Insert your SD card into your PC
  5. Observe the output. It should match something like this:
    NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
    mmcblk0     179:0    0   3,8G  0 disk
    └─mmcblk0p1 179:1    0   3,7G  0 part /run/media/user/FFFF-FFFF
  6. Take note of the device name. In our example above, it was mmcblk0p1
    • If RO is set to 1, make sure the lock switch is not slid down
  7. Hit CTRL + C to exit the menu
  8. Type in the following for your SD card:
    • 2GB or lower: sudo mkfs.fat /dev/(device name from above) -s 64 -F 16
      • This creates a single FAT16 partition with 32 KB cluster size on the SD card
    • 4GB - 128GB: sudo mkfs.fat /dev/(device name from above) -s 64 -F 32
      • This creates a single FAT32 partition with 32 KB cluster size on the SD card
    • 128GB or higher: sudo mkfs.fat /dev/(device name from above) -s 128 -F 32
      • This creates a single FAT32 partition with 64 KB cluster size on the SD card