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

SD Clean/Linux: Difference between revisions

From Hacks Guide Wiki
m nuke gparted because ew
wording fixes for additional clarity, standardize formatting
Line 22: Line 22:
#* Replace <code>i</code> with the partition number you are unmounting.
#* Replace <code>i</code> with the partition number you are unmounting.
# Type <code>fdisk /dev/<device name></code>.
# Type <code>fdisk /dev/<device name></code>.
# Type <code>o</code>, then type <code>n</code> and press ENTER on all prompts.
# Enter <code>o</code>, then enter <code>n</code> and go through all the resulting prompts without changing settings.
#* If it asks whether to remove a VFAT signature, choose to remove it.
#* If it asks whether to remove a VFAT signature, choose to remove it.
# Once you are back at fdisk's main menu, type <code>t</code> and then type <code>0c</code>.
# Once you are back at fdisk's main menu, enter <code>t</code> and then enter <code>0c</code>
# Type <code>a</code> and then <code>p</code>. Observe the output and make sure the device is now formatted correctly.
# Enter <code>a</code> and then <code>p</code> - observe the output, and make sure the device is now formatted correctly.
# If there are no issues, type <code>w</code>. This will save changes and exit the fdisk prompt.  
# If there are no issues, enter <code>w</code> - this will save changes and exit the fdisk prompt.
# Type <code>sudo mkfs.vfat /dev/(device name) -s 64</code> to reformat the new partition.
# Type <code>sudo mkfs.vfat /dev/<device name> -s 64</code> to reformat the new partition.
#* If the SD card is over 32GB in size, change </code>64</code> to <code>128</code>.
#* If the SD card is over 32GB in size, change </code>64</code> to <code>128</code>
# Type <code>sudo eject /dev/(device name)</code>, then remove and reinsert the SD card.
# Type <code>sudo eject /dev/<device name></code>, then remove and reinsert the SD card.
# Copy your data back onto the SD card.
# Copy your data back onto the SD card.