Does Formatting Data Delete the OS? What a Reset Removes
Formatting a drive does not always delete the operating system, and a factory reset does not always remove everything you think it does. The short answer: formatting a data partition leaves the OS intact, while formatting the system drive erases the OS; a reset reinstalls the OS and removes most personal files, but recovery partitions and some hidden data may remain. Below we explain exactly what each operation does, what survives, and how to choose the right method for your goal.
What Formatting Actually Does
Formatting a drive (or a partition) prepares it for use by a file system, such as NTFS, APFS, or ext4. The process writes a new file system structure—like a table of contents—and marks existing data as inaccessible. It does not physically erase every byte. The old files are still on the disk until overwritten, which is why recovery software can often retrieve them after a quick format.
There are two types of formatting:
- Quick format – Only removes the file system index. Data remains recoverable with special tools.
- Full format – On Windows, this checks for bad sectors and overwrites the entire partition with zeros. On macOS and Linux, the behavior varies; some full formats still don’t overwrite all data.
If you format a data partition (like D: on Windows or a separate volume on macOS), the operating system on the C: drive or the system volume is untouched. It will still boot normally after the operation.
When Formatting Deletes the OS
Formatting the system drive—the partition where the OS is installed—does delete the operating system. For example, if you format C: on Windows, the boot loader and system files are gone, and the computer will not start. Similarly, formatting the macOS system volume (the one named “Macintosh HD”) removes the OS.
However, many modern systems have a separate recovery partition that contains the tools to reinstall the OS. Formatting only the main system partition leaves that recovery partition intact, allowing you to boot into recovery and reinstall. If you format the entire disk (including recovery partitions), you lose the ability to use the built-in recovery and must use external installation media.
What a Factory Reset Removes
A factory reset (or “Reset this PC” on Windows, “Erase All Content and Settings” on iOS, or “Factory data reset” on Android) is a different process. It is designed to return the device to its out-of-the-box state, but it does not always wipe everything.
On Windows, a reset offers two options:
- Keep my files – Removes installed apps and settings but keeps personal files. The OS is reinstalled.
- Remove everything – Deletes all personal files, apps, and settings, then reinstalls the OS. You can also choose to clean the drive (which takes longer and makes data harder to recover).
On macOS, a reset typically involves erasing the startup volume and reinstalling macOS. On smartphones, a factory reset wipes the user data partition but often leaves the OS itself (iOS or Android) in place, then restores it to default settings.
What Survives a Reset
Even after a “remove everything” reset, some data may remain:
- Recovery partitions – These are usually not deleted, so you can still boot into recovery.
- Firmware and BIOS settings – A reset does not change the BIOS/UEFI configuration.
- Hidden partitions – Some manufacturers include diagnostic or utility partitions that survive a reset.
- Data on separate drives – If you have a second internal drive or an external drive, a reset only affects the system drive.
- Cloud data – Files synced to OneDrive, iCloud, or Google Drive are not deleted from the cloud.
If you are selling or disposing of a device, a factory reset is not enough to guarantee your data is unrecoverable. For sensitive data, you should use a secure erase tool that overwrites the entire drive.
How to Choose: Format vs. Reset
Your choice depends on your goal:
- Fix a corrupted OS – Use a reset (or reinstall) rather than formatting, because a reset will reinstall the OS automatically.
- Clean a data drive – Format the specific partition, not the whole disk.
- Sell or give away a device – Use a full reset with drive cleaning (or a secure erase tool) to protect your privacy.
- Switch operating systems – You may need to format the entire disk to remove the old OS and install a new one.
Always back up important files before any of these operations, because once data is overwritten, it is gone.
Common Misconceptions
One common myth is that formatting a drive always removes the OS. As explained, that is only true if you format the system partition. Another myth is that a factory reset completely wipes the device. In reality, a reset often leaves the OS and recovery partitions intact, and data can sometimes be recovered with forensic tools.
Another misconception is that a quick format is enough to securely delete files. It is not. If you need to ensure data is unrecoverable, use a full format or a dedicated secure erase utility that overwrites the drive multiple times.
Frequently Asked Questions
Will formatting a USB drive delete my computer’s OS?
No. Formatting a USB drive only affects that USB drive. Your computer’s operating system is stored on the internal drive, so it is unaffected.
Does a factory reset remove viruses?
Usually yes, because the reset reinstalls the OS and removes all installed software, including malware. However, some advanced rootkits can survive a reset if they hide in firmware or the recovery partition. A full wipe and reinstall from external media is more thorough.
Can I recover files after a factory reset?
Possibly, if the reset did not overwrite the data. On Windows, the “remove everything” option without drive cleaning leaves data recoverable with recovery software. With drive cleaning, recovery is much harder but still possible with specialized tools. For sensitive data, use a secure erase.
Does formatting a hard drive permanently erase data?
Not necessarily. A quick format only removes the file system index, so data can be recovered. A full format overwrites the drive with zeros, making recovery very difficult but not impossible with advanced techniques. For permanent erasure, use a secure erase tool that overwrites multiple times.
What is the difference between a reset and a reinstall?
A reset is a built-in feature that reinstalls the OS while optionally keeping your files. A reinstall typically involves booting from installation media and wiping the system partition, then installing the OS from scratch. A reinstall gives you more control and is often used when the system won’t boot.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.