SD Clean/Linux

This is an add-on section for completely recreating an SD card's filesystem using fdisk and mkfs. This should only be done if formatting does not fix your issue or is not possible for some reason.

This page is for Linux users only. If you are not on Linux, see the Windows and/or Mac pages instead.

Instructions

 * 1) Make sure your SD card is not inserted
 * 2) Launch the linux terminal and type.
 * 3) Observe the output. It should match something like this:
 * 4) Take note of the device name. In our example above, it was
 * 5) * If  is set to 1, make sure the lock switch is not slid down
 * 6) Hit CTRL + C to exit the menu
 * 7) For each partition of the disk, type.
 * 8) * Replace  with the partition number you are unmounting.
 * 9) Type.
 * 10) Type , then type   and press ENTER on all prompts.
 * 11) * If it asks whether to remove a VFAT signature, choose to remove it.
 * 12) Once you are back at fdisk's main menu, type   and then type.
 * 13) Type   and then  . Observe the output and make sure the device is now formatted correctly.
 * 14) If there are no issues, type  . This will save changes and exit the fdisk prompt.
 * 15) Type   to reformat the new partition.
 * 16) * If the SD card is over 32GB in size, change 64 to.
 * 17) Type , then remove and reinsert the SD card.
 * 18) Copy your data back onto the SD card.