How To Partition USB/SD Storage Device
Jump to navigation Jump to search
Plug in your removable flash drive and run the ‘lsblk’ command to identify the device.
lsblkto list the block devices on the system and find your device in the list. We'll assume it's
/dev/sdhfor our purposes here.
sudo parted /dev/sdh
(parted) mklabel msdos
(parted) mkpart primary fat32 1MiB 100%
(parted) set 1 boot on
sudo mkfs.vfat -n "DISKLABEL" /dev/sdh1