This is an add-on section for checking your SD card for errors using F3.
<languages/>
<translate>
<!--T:1-->
This is an add-on section for formatting an SD card to FAT32.
Depending on the size of your SD card and the speed of your computer, this process can take up to several hours!
<!--T:3-->
This page is for Windows users only. If you are not on Windows, check out the [[Special:MyLanguage/Formatting an SD card/Linux|Linux]] or [[Special:MyLanguage/Formatting an SD card/Mac|Mac]] pages.
</translate>
This page is for Linux users only. If you are not on Linux, check out the [[Checking SD card integrity/Windows|Windows]] or [[Checking SD card integrity/Mac|Mac]] pages.
== Choose your SD card size ==
<tabber>
|-|<translate><!--T:40--> 64GB or larger</translate>=
== What You Need ==
=== What You Need ===
* The latest version of {{GitHub|AltraMayor/f3/releases/tag/v8.0|F3}} (the <code>.zip</code> file)
*<translate><!--T:4--> The latest version of <tvar name="sdformatter">[https://www.sdcard.org/downloads/formatter/sd-memory-card-formatter-for-windows-download/ SD Memory Card Formatter]</tvar></translate>
*<translate><!--T:5--> The latest version of <tvar name="guiformat">[http://ridgecrop.co.uk/index.htm?guiformat.htm guiformat]</tvar></translate>
== Instructions ==
<translate>
# Unzip the f3 <code>.zip</code>
=== Instructions === <!--T:39-->
# <code>cd</code> into the f3 directory
</translate>
# Run <code>make</code> to compile F3
# Insert your SD card into your computer
# Mount your SD card
# Run <code>./f3write <your SD card mount point></code>
# Wait until the process is complete. See below for an example output.
$ ./f3write /media/michel/6135-3363/
Free space: 29.71 GB
Creating file 1.h2w ... OK!
...
Creating file 30.h2w ... OK!
Free space: 0.00 Byte
Average Writing speed: 4.90 MB/s
# Run <code>./f3read <your SD card mount point></code>
# Wait until the process is complete. See below for an example output.
$ ./f3read /media/michel/6135-3363/
SECTORS ok/corrupted/changed/overwritten
Validating file 1.h2w ... 2097152/ 0/ 0/ 0
...
Validating file 30.h2w ... 1491904/ 0/ 0/ 0
...
Data OK: 29.71 GB (62309312 sectors)
Data LOST: 0.00 Byte (0 sectors)
Corrupted: 0.00 Byte (0 sectors)
Slightly changed: 0.00 Byte (0 sectors)
Overwritten: 0.00 Byte (0 sectors)
Average Reading speed: 9.42 MB/s
{{success|text=If the test shows the result <code>Data LOST: 0.00 Byte (0 sectors)</code>, your SD card is likely good. You can delete all <code>.h2w</code> files on your SD card.}}
<ol>
<li><translate><!--T:22--> Insert your SD card into your computer</translate></li>
<li><translate><!--T:23--> If the SD card has any files and folders on it, copy everything to a folder on your computer</translate></li>
<li><translate><!--T:43--> Run <code>SD Card Formatter Setup</code> (the <code>.exe</code> file) in the downloaded .zip file with Administrator privileges, then install the program</translate></li>
<li><translate><!--T:44--> Run <code>SD Card Formatter</code> from the Start Menu</translate></li>
<li><translate><!--T:45--> Select your SD card’s drive letter for "Select card"</translate>{{warning|<translate nowrap><!--T:46--> Make sure you choose the correct drive letter, otherwise you might accidentally erase the wrong drive!</translate>}}</li>
<li><translate><!--T:47--> Ensure that "Quick Format" is selected</translate></li>
<li><translate><!--T:50--> Wait for the format to finish</translate></li>
<li><translate><!--T:51--> Click "OK"</translate></li>{{info|<translate nowrap><!--T:52--> '''You're not done yet!''' Your SD card will be formatted to exFAT at this point. The following steps will format it to FAT32.</translate>}}
<li><translate><!--T:53--> Close SD Card Formatter</translate></li>
<li><translate><!--T:24--> Run <code>guiformat.exe</code></translate></li>
<li><translate><!--T:25--> Select your SD card’s drive letter for "Drive"</translate>{{warning|<translate nowrap><!--T:26--> Make sure you choose the correct drive letter, otherwise you might accidentally erase the wrong drive!</translate>}}</li>
<li><translate><!--T:27--> Select a size for "Allocation unit size"</translate>
<ul>
<li><translate><!--T:28--> If the SD card is 64GB, choose 32768</translate></li>
<li><translate><!--T:29--> If the SD card is larger than 64GB, choose 65536</translate></li>
</ul></li>
<li><translate><!--T:31--> Ensure that "Quick Format" is selected</translate></li>
<li><translate><!--T:36--> If the SD card had any files and folders on it before the format, copy everything back from your computer</translate></li>
</ol>
{{critical|text=If the test shows any other results, your SD card is failing. You will have to replace it!}}
<translate>
=== Common errors with guiformat === <!--T:37--> </translate>
==== Failed to open device: GetLastError()=32 ====
<translate>
<!--T:38-->
Close everything that may be using the SD card, such as any File Explorer windows. If it does not resolve the issue, try formatting the card to NTFS, then run GUIFormat again.
</translate>
==== GetLastError()=1117 ====
<translate>
<!--T:41-->
Your SD card write-protection switch may be [https://3ds.hacks.guide/images/sdlock.png enabled]. The lock must be flipped upwards to allow writing to the SD card (including formatting).
</translate>
|-|<translate><!--T:42--> 32GB or smaller</translate>=
=== What You Need ===
*<translate><!--T:56--> The latest version of <tvar name="sdformatter">[https://www.sdcard.org/downloads/formatter/sd-memory-card-formatter-for-windows-download/ SD Memory Card Formatter]</tvar></translate>
<translate>
=== Instructions === <!--T:55-->
</translate>
<ol>
<li><translate><!--T:7--> Insert your SD card into your computer</translate></li>
<li><translate><!--T:8--> If the SD card has any files and folders on it, copy everything to a folder on your computer</translate></li>
<li><translate><!--T:9--> Run <code>SD Card Formatter Setup</code> (the <code>.exe</code> file) in the downloaded .zip file with Administrator privileges, then install the program</translate></li>
<li><translate><!--T:10--> Run <code>SD Card Formatter</code> from the Start Menu</translate></li>
<li><translate><!--T:11--> Select your SD card’s drive letter for "Select card"</translate>{{warning|<translate nowrap><!--T:12--> Make sure you choose the correct drive letter, otherwise you might accidentally erase the wrong drive!</translate>}}</li>
<li><translate><!--T:14--> Ensure that "Quick Format" is selected</translate></li>
If the SD card has any files and folders on it, copy everything to a folder on 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"
You're not done yet! Your SD card will be formatted to exFAT at this point. The following steps will format it to FAT32.
Close SD Card Formatter
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!
Select a size for "Allocation unit size"
If the SD card is 64GB, choose 32768
If the SD card is larger than 64GB, choose 65536
Ensure that "Quick Format" is selected
Click "Start"
Click "OK"
Wait for the format to finish
Click "Close"
If the SD card had any files and folders on it before the format, copy everything back from your computer
Common errors with guiformat
Failed to open device: GetLastError()=32
Close everything that may be using the SD card, such as any File Explorer windows. If it does not resolve the issue, try formatting the card to NTFS, then run GUIFormat again.
GetLastError()=1117
Your SD card write-protection switch may be enabled. The lock must be flipped upwards to allow writing to the SD card (including formatting).