Formatting an SD card/Linux

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 Windows or Mac pages.

Instructions

 * -|fdisk=
 * 1) Make sure your SD card is not inserted
 * 2) Open a terminal window and type
 * 3) Insert the SD card and watch for a new device appearing in lsblk
 * 4) Observe the output for the new device. It should match something like this:
 * 5) Take note of the name of the device that now appears. In our example above, it was , but it could show up as   or  , if you use a USB adapter
 * 6) * If  is set to 1, make sure the lock switch is not slid down
 * 7) Hit CTRL + C to exit the menu
 * 8) Install the   and   packages using your package manager of choice
 * 9) Type
 * 10) Enter   and then enter
 * 11) Enter   and then   - observe the output, and make sure the device is now formatted correctly
 * 12) If there are no issues, enter   - this will save changes and exit the fdisk prompt
 * 13) Type   to reformat the new partition
 * 14) * If the SD card is over 32GB in size, change 64 to
 * 15) Type , then remove and reinsert the SD card
 * 16) Copy your data back onto the SD card
 * -|cfdisk=
 * 1) Make sure your SD card is not inserted
 * 2) Open a terminal window and type
 * 3) Insert the SD card and watch for a new device appearing in lsblk
 * 4) Observe the output for the new device. It should match something like this:
 * 5) Take note of the name of the device that now appears. In our example above, it was , but it could show up as   or  , if you use a USB adapter
 * 6) * If  is set to 1, make sure the lock switch is not slid down
 * 7) Hit CTRL + C to exit the menu
 * 8) Install the   and   packages using your package manager of choice
 * 9) Type
 * 10) Choose the   option and delete any existing partitions
 * 11) Choose the   option, keep partition size at the recommended size, and choose primary partition type
 * 12) Choose the   option, scroll up until you see   and select it
 * 13) Finally, choose the   option. This will overwrite any existing data. You have been warned.
 * 14) Choose the   option
 * 15) Type , then remove and reinsert the SD card
 * 16) Copy your data back onto the SD card
 * -|parted=
 * 1) Make sure your SD card is not inserted
 * 2) Open a terminal window and type
 * 3) Insert the SD card and watch for a new device appearing in lsblk
 * 4) Observe the output for the new device. It should match something like this:
 * 5) Take note of the name of the device that now appears. In our example above, it was , but it could show up as   or  , if you use a USB adapter
 * 6) * If  is set to 1, make sure the lock switch is not slid down
 * 7) Hit CTRL + C to exit the menu
 * 8) Install the   and   packages using your package manager of choice
 * 9) Type
 * 10) Type , then remove and reinsert the SD card.
 * 11) Copy your data back onto the SD card.
 * 1) Make sure your SD card is not inserted
 * 2) Open a terminal window and type.
 * 3) Insert the SD card and watch for a new device appearing in lsblk.
 * 4) Observe the output for the new device. It should match something like this:
 * 5) Take note of the name of the device that now appears. In our example above, it was
 * 6) * If  is set to 1, make sure the lock switch is not slid down
 * 7) Hit CTRL + C to exit the menu
 * 8) Type
 * 9) Enter   and then enter
 * 10) Enter   and then   - observe the output, and make sure the device is now formatted correctly.
 * 11) If there are no issues, enter   - this will save changes and exit the fdisk prompt.
 * 12) Type   to reformat the new partition.
 * 13) * If the SD card is over 32GB in size, change 64 to
 * 14) Type , then remove and reinsert the SD card.
 * 15) Copy your data back onto the SD card.