lsblk
to check which drive to format.sudo fdisk -l
can be used too for more details.- Unmount drive:
umount /dev/sdb1
- Select the drive, without the number (sdc instead of sdc1):
sudo fdisk /dev/sdc
g
to create new GPT partitionn
to write new partition- press enter to use default value, entire drive
w
to to write.lsblk
again to confirm.- Set filesystem type e.g. fat32. Select the partition, this time with the number (sdc1):
sudo mkfs.fat -F 32 -n LABEL /dev/sdc1