Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Formatting an SD card/Linux: Difference between revisions

From Hacks Guide Wiki
add {{#translation:}}
Ajl721 (talk | contribs)
SDs over 64GB need 64KB cluster size (because 128 sectors * 512-byte sector size), not 32GB
 
Line 1: Line 1:
<languages/>
<languages />
 
<translate>
<translate>
<!--T:1-->
<!--T:1-->
Line 7: Line 8:
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.
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.


== Instructions == <!--T:3-->
==Instructions== <!--T:3-->
</translate>
</translate>
{{warning|text=<translate><!--T:4--> Before beginning these steps, copy all of your SD card's contents to a folder on your computer.</translate>}}
{{warning|text=<translate><!--T:4--> Before beginning these steps, copy all of your SD card's contents to a folder on your computer.</translate>}}


{{warning|<translate><!--T:5--> The commands in this guide are case-sensitive. Enter them exactly as written, or there may be unintended consequences.</translate>}}
{{warning|<translate><!--T:5--> The commands in this guide are case-sensitive. Enter them exactly as written, or there may be unintended consequences.</translate>}}
<tabber>
<tabber>|-|fdisk=
|-|fdisk=


<span>
<span>
Line 50: Line 50:
<li><translate><!--T:21--> If there are no issues, enter <code>w</code> - this will save changes and exit the fdisk prompt</translate></li>
<li><translate><!--T:21--> If there are no issues, enter <code>w</code> - this will save changes and exit the fdisk prompt</translate></li>
<li><translate><!--T:22--> Type <code>sudo mkfs.vfat /dev/<partition name> -s 64</code> to reformat the new partition</translate>
<li><translate><!--T:22--> Type <code>sudo mkfs.vfat /dev/<partition name> -s 64</code> to reformat the new partition</translate>
<ul><li><translate><!--T:23--> If the SD card is over 32GB in size, change <code>64</code> to <code>128</code></translate></li></ul></li>
<ul><li><translate><!--T:23--> If the SD card is over 64GB in size, change <code>64</code> to <code>128</code></translate></li></ul></li>
<li><translate><!--T:24--> Type <code>sudo eject /dev/<device name></code>, then remove and reinsert the SD card</translate></li>
<li><translate><!--T:24--> Type <code>sudo eject /dev/<device name></code>, then remove and reinsert the SD card</translate></li>
<li><translate><!--T:25--> If the SD card had any files and folders on it before the format, copy everything back from your computer, unless you were linked to this by another guide that needs the SD to be formatted and blank</translate></li>
<li><translate><!--T:25--> If the SD card had any files and folders on it before the format, copy everything back from your computer, unless you were linked to this by another guide that needs the SD to be formatted and blank</translate></li>
Line 77: Line 77:
<li><translate><!--T:35--> Type <code>sudo parted -a opt /dev/<device name> mkpart primary fat32 0% 100%</code></translate></li>
<li><translate><!--T:35--> Type <code>sudo parted -a opt /dev/<device name> mkpart primary fat32 0% 100%</code></translate></li>
<li><translate><!--T:36--> Type <code>sudo mkfs.vfat /dev/<partition name> -s 64</code> to reformat the new partition</translate>
<li><translate><!--T:36--> Type <code>sudo mkfs.vfat /dev/<partition name> -s 64</code> to reformat the new partition</translate>
<ul><li><translate><!--T:37--> If the SD card is over 32GB in size, change <code>64</code> to <code>128</code></translate></li></ul></li>
<ul><li><translate><!--T:37--> If the SD card is over 64GB in size, change <code>64</code> to <code>128</code></translate></li></ul></li>
<li><translate><!--T:38--> Type <code>sudo eject /dev/<device name></code>, then remove and reinsert the SD card</translate></li>
<li><translate><!--T:38--> Type <code>sudo eject /dev/<device name></code>, then remove and reinsert the SD card</translate></li>
<li><translate><!--T:39--> If the SD card had any files and folders on it before the format, copy everything back from your computer, unless you were linked to this by another guide that needs the SD to be formatted and blank</translate></li>
<li><translate><!--T:39--> If the SD card had any files and folders on it before the format, copy everything back from your computer, unless you were linked to this by another guide that needs the SD to be formatted and blank</translate></li>
Line 119: Line 119:
<li><translate><!--T:63--> Under "Type", select "For use with all systems and devices (FAT)", then click "Create"</translate></li>
<li><translate><!--T:63--> Under "Type", select "For use with all systems and devices (FAT)", then click "Create"</translate></li>
</ol>
</ol>
</span>
</span></tabber>
</tabber>
{{hg imported|Guide_3DS}}
{{hg imported|Guide_3DS}}


[[Category:General guides{{#translation:}}]]
[[Category:General guides{{#translation:}}]]