Skip to content

Instantly share code, notes, and snippets.

@nardhar
Created September 5, 2018 16:09
Show Gist options
  • Save nardhar/caa2c38ff4b886671257b21d1bd123e1 to your computer and use it in GitHub Desktop.
Save nardhar/caa2c38ff4b886671257b21d1bd123e1 to your computer and use it in GitHub Desktop.
format pendrive in linux

find usb drive

sudo fdisk -l

umount it

sudo umount /dev/sdxY

format it

sudo mkfs.vfat -n 'PENDRIVE_LABEL' -I /dev/sdxY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment