Зарегистрируйтесь сейчас для лучшей персонализированной цитаты!

Новости по теме

How to format USB drives on Linux, MacOS, and Windows

Feb, 18, 2025 Hi-network.com
How to format USB drives on Linux, MacOS, and Windows
PNY/

I regularly use USB flash drives. Whether it's for installing Linux, carrying files with me, backing up certain important data, or any number of other reasons, those drives have become an important part of my digital life.

Also: How to set up 2FA for Linux desktop logins for added security

Because of that, I need to know how to format them, no matter the operating system I have before me. To that end, I thought I'd walk you through the process of formatting such a drive on Linux, MacOS, and Windows.

Ready, steady -- let's go.

How to format a USB drive on Linux

What you'll need: The only things you'll need for this are a running instance of Linux, a user with sudo privileges, and a USB flash drive.

Although it's fairly easy to format a USB flash drive on Linux from the command line, I'm going to show you how to do it from the GNOME Disks utility, because everyone likes a good GUI. I'll also add the directions for formatting from the command line as well.

1. Insert the drive

The first step is to insert the USB drive into your Linux-powered desktop or laptop.

Show more

2. Open GNOME Disks

Next, open GNOME Disks (it might be called "Disks," depending on your distribution), and then select the USB flash drive you just plugged in from the sidebar.

Show more

3. Format the drive

With the drive selected, click the gear icon in the main pane and, from the drop-down, select Format Partition. In the resulting pop-up, give the drive a name, select the desired type (if you want to use this drive across different platforms, select FAT), and click Next. When prompted, click Format, and the process will begin and complete fairly quickly. Once it's done, close Disks, eject the drive, and you're ready to go.

Also: How to use Linux without ever touching the terminal

Show more
The GNOME Disks utility used to format a USB drive.

The GNOME Disks utility makes it easy to manage your drives.

Jack Wallen/

If you want to know how to do this from the command line, here are the general steps:

  1. Locate the USB drive using the commandlsblk.
  2. Unmount the USB drive withsudo umount /dev/[device_name].
  3. Format the drive with the commandsudo mkfs.vfat /dev/[device_name].

Also: The Linux tool you forgot about: How Synaptic makes software installation a breeze

Where [device_name] is the name of the USB device found with the lsblk command. Note that you can format the drive to NTFS with mkfs.ntfs or exFAT with mkfs.exfat.

How to format a USB drive on MacOS

Here's how it's done on a MacOS desktop or laptop.

1. Insert the USB drive

Insert the USB drive into your MacBook or iMac

2. Open the Disks utility

Click the Launchpad icon on the dock, search for Disk Utility, and hit Enter on your keyboard to open the app.

3. Select and format the drive

Select the USB drive from the sidebar and then click Erase in the top toolbar. You'll then be prompted to give the drive a name and select the format. You can also click Security Options and adjust the security level of the drive (which defines how much effort the utility will put into erasing the data that's on the drive). Click Erase and the process will begin and finish fairly quickly. 

The MacOS Disk Utility app.

Formatting a USB drive on MacOS is incredibly simple.

Jack Wallen/

You can then close Disk Utility and safely eject the drive.

How to format a USB drive on Windows

Finally, we'll format a USB drive with Windows.

1. Insert the USB drive

First, insert the USB drive to be formatted into your desktop or laptop machine.

2. Open the file manager

Open the Windows file manager and right-click the drive in the left sidebar.

3. Format the drive

Select Format from the menu and, in the resulting pop-up, leave everything as the default, give the Volume Label a name, and click Start. When the formatting completes, safely eject the drive and close the file manager.

The Windows 11 format disk pop-up.

Formatting a USB drive in Windows should be immediately familiar.

Jack Wallen/

And that, my friends, is how you format a USB flash drive with the three major operating systems.

tag-icon Горячие метки: Технологии и оборудование Вычислительная техника и оборудование Портативные компьютеры Главная страница

Copyright © 2014-2024 Hi-Network.com | HAILIAN TECHNOLOGY CO., LIMITED | All Rights Reserved.
Our company's operations and information are independent of the manufacturers' positions, nor a part of any listed trademarks company.