Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Format a USB Flash Drive in Ubuntu

Learn how to format a uSB flash drive in ubuntu with clear steps, practical context, and useful troubleshooting guidance.

Table of Contents

This updated guide examines How to Format a USB Flash Drive in Ubuntu and organizes the essential facts, background, and practical takeaways in clear American English.

Method 1of 2:

Using the Disks Utility

  1. How to Format a USB Flash Drive in Ubuntu — contextual image 1 Click the Dash button and search for"disks." You'll see Disks appear in the Applications results.
  2. How to Format a USB Flash Drive in Ubuntu — contextual image 2 Launch Disks from the search results. A list of connected devices will appear in the left frame.
  3. How to Format a USB Flash Drive in Ubuntu — contextual image 3 Select your USB drive from the list of devices. Its details will appear in the right frame.
  4. How to Format a USB Flash Drive in Ubuntu — contextual image 4 Select at least one volume on the USB drive. Most USB drives will only have one volume, but if yours has multiple volumes you can select one or all of them.
  5. How to Format a USB Flash Drive in Ubuntu — contextual image 5 Click the Gear button underneath the Volumes and select"Format." This will open the formatting options.
  6. How to Format a USB Flash Drive in Ubuntu — contextual image 6 Select what you want to erase. A Quick format will not erase any data on the drive. A Slow format will erase all of the data and check for errors on the drive.
  7. How to Format a USB Flash Drive in Ubuntu — contextual image 7 Select the file system. There are several different file systems that you can choose from.
    • For maximum compatibility with other devices, select "FAT" (FAT32). This will work on all computers and virtually any other device that works with USB drives.
    • If you're just planning on using the drive with Linux, select "ext3." This will allow you to use Linux's advanced file permissions.
  8. How to Format a USB Flash Drive in Ubuntu — contextual image 8 Format the drive. Click the Format button and wait for the USB drive to be formatted. This may take a while for larger drives, and erasing all of the data will add to the time it takes.[1]

Method 2of 2:

Using the Terminal

  1. How to Format a USB Flash Drive in Ubuntu — contextual image 9 Open the Terminal. You can open this from the Dash, or by pressingCtrl+Alt+T.
  2. How to Format a USB Flash Drive in Ubuntu — contextual image 10 Type. lsblk and press ?Enter . This will display a list of storage devices attached to the computer.
  3. How to Format a USB Flash Drive in Ubuntu — contextual image 11 Identify your USB drive. Use the SIZE column to find your USB drive in the list.
  4. How to Format a USB Flash Drive in Ubuntu — contextual image 12 Unmount your USB drive's partition. You'll need to unmount the drive before formatting. Type the following command, and replacesdb1with your USB drive's partition label.
    • sudo umount /dev/sdb1
  5. How to Format a USB Flash Drive in Ubuntu — contextual image 13 Erase all of the data on the drive (optional). You can delete everything on the drive by entering the following command. Replacesdbwith your USB drive's label.
    • sudo dd if=/dev/zero of=/dev/sdbbs=4k && sync
    • This will take a while to process and may appear frozen.
    • On Ubuntu 16.04 and later:sudo dd if=/dev/zero of=/dev/sdbbs=4k status=progress && sync.
  6. How to Format a USB Flash Drive in Ubuntu — contextual image 14 Create a new partition table. The partition table controls the volumes on the drive. Type the following command, replacingsdbwith your USB drive's label.
    • Typesudo fdisk /dev/sdband press?Enter. PressOto create an empty partition table.
  7. How to Format a USB Flash Drive in Ubuntu — contextual image 15 Press. N to create a new partition. Enter the size of the partition that you want to create. Enter the full size of the drive if you are just creating a single partition.
  8. How to Format a USB Flash Drive in Ubuntu — contextual image 16 Press. W to write the table and exit. This may take a moment.
  9. How to Format a USB Flash Drive in Ubuntu — contextual image 17 Run. lsblk again to view your new partition. It will be listed below your USB drive's label.
  10. How to Format a USB Flash Drive in Ubuntu — contextual image 18 Format your new volume. Now that you've created the new volume, you can format it with the file system of your choosing. Enter the following command to format the drive as FAT32, the most compatible file system. Replacesdb1with your partition's label:
    • sudo mkfs.vfat /dev/sdb1
  11. How to Format a USB Flash Drive in Ubuntu — contextual image 19 Eject your drive when finished. Once the format is complete, you can safely eject your device:[2]
    • sudo eject /dev/sdb

FAQ

What is How to Format a USB Flash Drive in Ubuntu about?

It provides a structured overview of drive, explains the main context, and highlights practical takeaways for readers.

Why does this topic matter?

Understanding the main concepts helps readers evaluate the issue, avoid common mistakes, and make better-informed decisions.

How should readers use this information?

Use the guidance as a practical starting point, confirm details that may have changed, and follow current product, safety, or security recommendations.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.