How to Format USB Drives in Linux @EzeeLinux
How to Format USB Drives in Linux  @EzeeLinux
Uploaded February 2023 | Updated September 2026, 3 weeks ago
Here are three ways to format a USB drvie or SD card in Linux:

Intro: 0:00
Use Gnome Disks: 0:39
Use Gparted: 6:54
Use Command Line: 13:49

NOTES FOR THE COMMAND LINE:

Find out drive letter:

lsblk

(This example assumes that it is /dev/sdb.)

Erase the disk:

sudo dd if=/dev/zero of=/dev/sdb bs=1024k count=2048

Force the system to write to the disk:

sync

Create a partition table:

sudo parted /dev/sdb mklabel msdos

Create a partition taking up the entire disk:

sudo parted /dev/sdb mkpart primary 1Mb 100%

Format the new partition:

sudo mkfs.ext4 /dev/sdb1

Label the new ext4 file system:

sudo e2label /dev/sdb1 64_GB_USB

sync

Unplug the drive and plug back in to mount it

Set permissions on the new partition:

sudo chmod 777 .

(WARNING! Run only while PWD is the new partition!)
How to Format USB Drives in LinuxEzeeLinux News | June 6, 2020JCs Favorite Terminal ToolsTurntable Tools | What Youll Need to Setup Your Turntable like a ProUnleash the Awesome Power of SSHTesting My New Dell Latitude 3300 | Super Slick LMDE 6 Install!My Pro-Ject Debut Carbon EVO TurntableMind Blowing Super Cool Linux CommandsUpgrading to Linux Mint 19.2 TinaLiving with LMDE 6 and Fooling Around with VMsMy Realistic/Shure R25XT Phono Cartridge | A Blast From the Past!Funky 45 RPM Record Scores - Summer, 2023 Part 1 | Picture Sleeves!
Joe Collins (EzeeLinux) |

How to Format USB Drives in Linux

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER