Created
January 16, 2020 00:02
-
-
Save rakibulinux/ce1ea72752440fad23b189f6236ffccd to your computer and use it in GitHub Desktop.
How to Format USB drive in Linux Ubuntu using terminal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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