How to Format USB on Ubuntu

Use Disks Utility

How to Format USB on Ubuntu Picture 1

Click the Dash button and look for "disks" . Disks will appear in the returned application list.

How to Format USB on Ubuntu Picture 2

Run Disks from the search results. A list of connected devices will appear in the left pane.

How to Format USB on Ubuntu Picture 3

Select your USB from the device list. Detailed information of the USB will appear in the right pane.

How to Format USB on Ubuntu Picture 4

Select at least one drive. Most USBs have only one drive, but if your USB has more than one drive, you can choose one or all.

How to Format USB on Ubuntu Picture 5

Click the Gear button below the drives and select "Format . " Format options will be displayed.

How to Format USB on Ubuntu Picture 6

Select the content you want to delete. The Quick format option will erase all data on your drive. The Slow format option will erase all data and check for errors on the USB.

How to Format USB on Ubuntu Picture 7

Select file system format. There are several formats for you to choose from. However:

To maximize compatibility with other devices, select "FAT" (FAT32). This format is compatible with all computers and almost all devices that work with USB.

If you plan to use USB for Linux, select "ext3". This format gives you advanced Linux file access and write permissions.

How to Format USB on Ubuntu Picture 8

USB format. Click the format button and wait for the USB to finish formatting. With large capacity USBs, this process may take a while and deleting any data on it will further increase the waiting time.

Use Terminal

How to Format USB on Ubuntu Picture 9

Open Terminal. You can open Terminal from the Dash toolbar or with the key combination Ctrl+ Alt+ T.

How to Format USB on Ubuntu Picture 10

Type . lsblk and press ↵ Enter. A list of storage devices currently connected to the computer will be displayed.

How to Format USB on Ubuntu Picture 11

Identify your USB. Use the SIZE column to find the USB in the list.

How to Format USB on Ubuntu Picture 12

Unmount the partition on the USB. You will have to disconnect before proceeding to format the USB. Type the following command and replace it sdb1with the USB partition name.

sudo umount /dev/sdb1

How to Format USB on Ubuntu Picture 13

Erase all data on the USB (optional). You can erase everything on the USB by entering the following command. Replace sdbwith your USB name.

sudo dd if=/dev/zero of=/dev/sdb bs=4k && sync

This process will take a while and your computer may freeze for a bit.

For Ubuntu 16.04 and later: .sudo dd if=/dev/zero of=/dev/sdb bs=4k status=progress && sync

How to Format USB on Ubuntu Picture 14

Create a new partition table. The partition table controls the drives on the USB. Enter the following command, replacing it sdbwith your USB name.

Type and press . Click to create an empty partition table.sudo fdisk /dev/sdb↵ EnterO

How to Format USB on Ubuntu Picture 15

Press . N to create a new partition. Enter the size of the partition you want to create. If you only want a single partition, enter the full size of the entire USB.

How to Format USB on Ubuntu Picture 16

Press . W to write the table and exit. This process may take a while.

How to Format USB on Ubuntu Picture 17

Run . lsblk again to test your new partition. This partition will be listed under the USB name.

How to Format USB on Ubuntu Picture 18

Format the new drive. Now that the new drive has been created, you can format it with the type of file system you want. Enter the following command to format the USB as FAT32 – the most compatible file system format. Replace sdb1with your partition name:

sudo mkfs.vfat /dev/sdb1

How to Format USB on Ubuntu Picture 19

Disconnect the USB when finished. Once formatting is complete, you can safely disconnect the USB:

sudo eject /dev/sdb

5 ★ | 1 Vote

May be interested

  • How to Create and Edit Text Files Using Terminal on LinuxPhoto of How to Create and Edit Text Files Using Terminal on Linux
    in this article, tipsmake will show you how to use terminal software on linux to create text files. after creating the file, you can use pre-installed linux editing software to edit the text.
  • How to Create ISO Files on LinuxPhoto of How to Create ISO Files on Linux
    today's tipsmake will show you how to turn multiple files into one iso file on a linux computer. you need to use the linux command line to do it.
  • How to Find Files in LinuxPhoto of How to Find Files in Linux
    if you don't know how, finding files in linux can be quite difficult. here, the best way is to use a few different terminal commands. they are much more powerful than the simple search features on other operating systems, and when you know how to use them well, you will have complete control over your files.
  • How to Add or Change the Default Port on LinuxPhoto of How to Add or Change the Default Port on Linux
    the default gateway is the router's ip address. normally, the connection port will be automatically discovered by the operating system during the installation process, but you may need to change it, especially in cases where the computer has many adapters or routers on the network. .
  • How to Change Time Zone on LinuxPhoto of How to Change Time Zone on Linux
    today's tipsmake will show you how to change the time zone on your linux computer. you can change the time zone on any linux distribution using the command line or command line menu depending on the linux version. if you are using mint, ubuntu or another distribution with a simple user interface and settings menu, you can also change the time zone right here.
  • How to Use Wine on LinuxPhoto of How to Use Wine on Linux
    today's tipsmake will show you how to install and launch wine on a linux computer. the wine program allows users to run the windows operating system on computers using other operating systems.