Appearance
Format USB Stick in Arch
To securely wipe all data in USB stick, see here
+++
Erase the partition table with wipefs
sudo wipefs -a /dev/sdXIf you get a "Resource Busy" error, add the force option -f
See additional guidance on wipefs here
+++
Then run the following:
sudo fdisk /dev/sdXOnce in the fdisk menu:
- Create a partition table. In most cases, we will use GPT parition table. Use DOS partition table only if we need to use this USB drive in older systems.
- Create a new partition. The default 'Linux filesystem' type partition will do.
+++
Format Partition
sudo mkfs.vfat /dev/sdXn -n VOLUME_NAME
# Take note to include the parition number, e.g. /dev/sdb1This last step will format the partition by creating a FAT filesystem. The -n option allows you to set the volume label and is optional.