Formatting an SD card/Linux/en: Difference between revisions
From Hacks Guide Wiki
More actions
Updating to match new version of source page |
Updating to match new version of source page |
||
| Line 1: | Line 1: | ||
<languages/> | <languages /> | ||
This is an add-on section for formatting an SD card to FAT32. | This is an add-on section for formatting an SD card to FAT32. | ||
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 == | ==Instructions== | ||
{{warning|text=Before beginning these steps, copy all of your SD card's contents to a folder on your computer.}} | {{warning|text=Before beginning these steps, copy all of your SD card's contents to a folder on your computer.}} | ||
{{warning|The commands in this guide are case-sensitive. Enter them exactly as written, or there may be unintended consequences.}} | {{warning|The commands in this guide are case-sensitive. Enter them exactly as written, or there may be unintended consequences.}} | ||
<tabber> | <tabber>|-|fdisk= | ||
|-|fdisk= | |||
<span> | <span> | ||
| Line 46: | Line 46: | ||
<li>If there are no issues, enter <code>w</code> - this will save changes and exit the fdisk prompt</li> | <li>If there are no issues, enter <code>w</code> - this will save changes and exit the fdisk prompt</li> | ||
<li>Type <code>sudo mkfs.vfat /dev/<partition name> -s 64</code> to reformat the new partition | <li>Type <code>sudo mkfs.vfat /dev/<partition name> -s 64</code> to reformat the new partition | ||
<ul><li>If the SD card is over | <ul><li>If the SD card is over 64GB in size, change <code>64</code> to <code>128</code></li></ul></li> | ||
<li>Type <code>sudo eject /dev/<device name></code>, then remove and reinsert the SD card</li> | <li>Type <code>sudo eject /dev/<device name></code>, then remove and reinsert the SD card</li> | ||
<li>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</li> | <li>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</li> | ||
| Line 73: | Line 73: | ||
<li>Type <code>sudo parted -a opt /dev/<device name> mkpart primary fat32 0% 100%</code></li> | <li>Type <code>sudo parted -a opt /dev/<device name> mkpart primary fat32 0% 100%</code></li> | ||
<li>Type <code>sudo mkfs.vfat /dev/<partition name> -s 64</code> to reformat the new partition | <li>Type <code>sudo mkfs.vfat /dev/<partition name> -s 64</code> to reformat the new partition | ||
<ul><li>If the SD card is over | <ul><li>If the SD card is over 64GB in size, change <code>64</code> to <code>128</code></li></ul></li> | ||
<li>Type <code>sudo eject /dev/<device name></code>, then remove and reinsert the SD card</li> | <li>Type <code>sudo eject /dev/<device name></code>, then remove and reinsert the SD card</li> | ||
<li>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</li> | <li>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</li> | ||
| Line 115: | Line 115: | ||
<li>Under "Type", select "For use with all systems and devices (FAT)", then click "Create"</li> | <li>Under "Type", select "For use with all systems and devices (FAT)", then click "Create"</li> | ||
</ol> | </ol> | ||
</span> | </span></tabber> | ||
</tabber> | |||
{{hg imported|Guide_3DS}} | {{hg imported|Guide_3DS}} | ||
[[Category:General guides{{#translation:}}]] | [[Category:General guides{{#translation:}}]] | ||