How to Format a USB Pen Drive in Linux Ubuntu Using Terminal Commands and Disks App

quite easy. You can format your pen drive using two ways:
  1. Using Terminal commands
  2. Using Disks app
Let us learn how to use both these methods to format a pen drive:

Format a USB pen drive using Terminal commands

1. Insert the USB pen drive into the system
2. Open the Terminal
3. Type the following command
You can see the directory path of all the available drives for Linux Ubuntu PC.
4. Look for the name and file-system of your pen drive.
5. In this tutorial, the name of the pen drive is 4D56-8966 and the file system is /dev/sdb1
(screenshot below)
6. Now unmount the pen drive using the following command
sudo umount /dev/sdb1
(/dev/sdb1 is the file-system for the USB pen drive)
7. Run the following command to format the USB pen drive
sudo mkfs.vfat -n 'Ubuntu' -I /dev/sdb1
Once the USB drive is formatted, run df command again to see the changes.

Format a USB Pen Drive Using Disks App

Disks is a Linux utility app to manage disk drive, other media and partitions. Disks app can be used to format and partition drives, mount and unmount partitions, edit partitions and create startup disk.
1. Insert your USB pen drive into your Ubuntu PC
2. Open Disks app
3. To open Disks utility app, open Dash and type Disks. Now you can see Disks app icon, click on it to open.
4. You can see the entire disk drive partitions and other media such as pen drive.

5. Select your pen drive from the left column.
6. Click on the settings icon (right side of the box).
see the screenshot below.

7. Select format option.

8. You will be asked for some additional details, select it and click OK.
9. Once everything is done, you can see your pen drive being formatted.
10. That all. Remove your pen drive when its formatted.

Leave a Comment

Your email address will not be published. Required fields are marked *

Open chat