Skip to content

Instantly share code, notes, and snippets.

@rakibulinux
Created January 16, 2020 00:02
Show Gist options
  • Save rakibulinux/ce1ea72752440fad23b189f6236ffccd to your computer and use it in GitHub Desktop.
Save rakibulinux/ce1ea72752440fad23b189f6236ffccd to your computer and use it in GitHub Desktop.
How to Format USB drive in Linux Ubuntu using terminal
#!/bin/sh
# 1st go SU
sudo su
# 2nd See the Disk list
fdisk -l
# 3rd Select the USB and umount usb. In my case /dev/sdc1 It can be different for you
umount /dev/sdc1
# 4th Formate the USB
mkfs.fat /dev/sdc1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment