Toggle 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
m (oi, i deleted you already. stay deleted.)
m (format the partition, not the block device)
Tags: Mobile edit Mobile web edit
Line 23: Line 23:
# Enter <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, enter <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>1 -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.