How to Format USB Drive in the Terminal

Plug your USB drive into your computer. Make sure it is properly detected before proceeding to the next steps.

Connect Your USB Drive

Open the terminal on your Ubuntu/Linux Mint system by pressing Ctrl + Alt + T or by searching 'Terminal' in your applications.

Open Terminal

Use the following command to list all storage devices and identify the USB drive: lsblk Look for your USB drive (usually listed as /dev/sdb or similar).

Identify the USB Drive

Before formatting, unmount the USB drive by typing sudo umount /dev/sdX   Replace /dev/sdX with your USB drive’s identifier.

Unmount the USB Drive

To format the USB drive to the FAT32 file system, use the following command: sudo mkfs.vfat /dev/sdX Again, replace /dev/sdX with the correct identifier for your USB drive.

Format the USB Drive

For more Linux tutorials and tips, visit UnixMen.com, your go-to resource for everything Linux!

Learn More with unixmen.com/