How To Partition USB/SD Storage Device

From Nearline Storage
Revision as of 22:51, 22 February 2020 by Dlk (talk | contribs) (Created page with "Plug in your removable flash drive and run the ‘lsblk’ command to identify the device. # Run <code>lsblk</code> to list the block devices on the system and find your devic...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Jump to navigation Jump to search

Plug in your removable flash drive and run the ‘lsblk’ command to identify the device.

  1. Run lsblk to list the block devices on the system and find your device in the list. We'll assume it's /dev/sdh for our purposes here.
  2. sudo parted /dev/sdh
  3. (parted) mklabel msdos
  4. (parted) mkpart primary fat32 1MiB 100%
  5. (parted) set 1 boot on
  6. (parted) quit
  7. sudo mkfs.vfat -n "DISKLABEL" /dev/sdh1