DEV Community

Full Stack Hacker
Full Stack Hacker

Posted on

13 1

Format USB FAT32 in Ubuntu

Step 1: Locate USB Drive

Open the terminal and run the following command: df

Step 2: Unmount and Format USB Drive

Unmount the USB drives before formatting. To do so, run this command:



sudo umount /dev/sdb1


Enter fullscreen mode Exit fullscreen mode


After unmounting, format the USB drive using the preferred file system (replace sdb1 with the name of your device):

  • To format a USB drive with FAT32 file system, use: ```

sudo mkfs.vfat /dev/sdb1

## Step 3: Verify USB Drive Formatting
Confirm the formatting process has completed successfully:
Enter fullscreen mode Exit fullscreen mode

sudo fsck /dev/sdb1

![](https://i.imgur.com/Pb4xYQg.png)

Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay