Glossary · Operating Systems & Software

Disk Formatting

Disk formatting prepares a drive or partition for use by creating a file system on it, which in most cases erases the existing index of files.

Updated October 6, 2026

Disk formatting is the process of writing a file system structure, such as NTFS, exFAT, FAT32, ext4 or APFS, onto a drive or partition so the operating system can store and find files. A quick format rebuilds the file table, while a full format also checks for bad sectors.

Why it matters

A new drive is unusable until formatted, and the file system you choose decides compatibility. FAT32 works almost everywhere but cannot hold a single file over 4 GB. exFAT suits USB drives shared between Windows and macOS. NTFS is the Windows default, and ext4 is common on Linux. Formatting is also used to wipe a drive before reuse.

Example

Formatting a USB stick on Linux:

sudo mkfs.exfat -n SHARED /dev/sdb1

Choosing the wrong device name here would erase the wrong disk, so always double-check with lsblk first.

Common mistakes

  • Assuming a quick format securely erases data. Files can often be recovered until overwritten; secure erasure needs different tools.
  • Formatting the wrong drive because of unclear labels.
  • Using FAT32 for large video files and hitting the 4 GB limit.

Get notified when this term updates

Plus occasional practical tips on uptime and monitoring, nothing else. Unsubscribe anytime.

This page is general information written by our editorial team and updated when documentation changes. Servers and providers differ, so test changes safely first. See our editorial policy and disclaimer.