How to Format a Corrupted Hard Drive
In this article
Formatting a corrupted hard drive erases its current file system and creates a fresh, empty one, which often clears logical corruption that prevents the drive from being read or written normally. Before you start, understand that formatting deletes everything on the drive: back up any files you can still access, and stop using the drive immediately if it is making clicking or grinding noises, as that points to a hardware failure that formatting cannot fix and may make worse.
What You'll Need
- A working computer with the drive connected internally or via a USB enclosure
- The drive's manufacturer diagnostic tool (optional but useful for confirming health)
- A backup destination if you need to recover files first
- Administrator rights on the computer
Step-by-Step
- Confirm the drive is detected. Open Disk Management: right-click Start and choose Disk Management (on Windows 11 it may be called Disk Management under Windows Tools). On macOS, open Disk Utility from Applications > Utilities. If the drive appears but shows as unallocated, RAW, or not formatted, it is a candidate for formatting. If it does not appear at all, try a different cable or port, or connect it internally, before assuming it is dead.
- Back up what you can. If any files are readable, copy them to another drive now. For a drive that shows as RAW, use file recovery software from a reputable vendor to attempt recovery before formatting. Formatting overwrites the file system, making later recovery much harder.
- Check the drive's health (optional but recommended). Download the diagnostic tool from the drive manufacturer's support site and run a short self-test. If the test reports bad sectors or imminent failure, replace the drive instead of formatting it; formatting a failing drive can accelerate its death.
- Open Disk Management (Windows) or Disk Utility (macOS). In Windows, right-click the Start button and select Disk Management. In macOS, open Disk Utility from Applications > Utilities. Menu labels can differ slightly by version and region, but the core options are the same.
- Select the correct drive. Double-check the drive letter and capacity so you do not format the wrong disk. In Disk Management, the drive will appear as a bar; right-click the partition or unallocated space and choose Format. In Disk Utility, select the drive from the sidebar and click Erase.
- Choose a file system and format type. For Windows, choose NTFS for internal drives or exFAT if you need cross-platform compatibility. For macOS, choose APFS or Mac OS Extended (Journaled). Use a quick format unless you suspect bad sectors; a full format takes longer but checks for errors. In Disk Utility, click Security Options to choose a secure erase level only if you need to wipe data securely; otherwise leave the default.
- Start the format and wait. Click OK or Erase and confirm. A quick format usually finishes in seconds; a full format can take hours on large drives. Do not unplug the drive or power off the computer during this process.
- Verify the result. After formatting, the drive should appear as healthy with a drive letter (Windows) or mounted volume (macOS). Open it and create a test folder to confirm you can write to it. If the format fails or the drive disappears, see Troubleshooting below.
Common Mistakes
- Formatting without backing up. Formatting erases the file system; any data not copied elsewhere is effectively gone unless you use recovery software immediately afterward.
- Formatting the wrong drive. Always confirm by capacity and drive letter before clicking Format. Disconnecting other drives during the process reduces the risk.
- Ignoring hardware symptoms. Clicking, grinding, or a drive that repeatedly disappears usually means physical failure. Formatting will not fix it and can make data recovery harder.
- Choosing the wrong file system. Using exFAT on an internal Windows system drive, for example, can cause problems. Match the file system to the operating system and use case.
- Interrupting the format. Unplugging the drive mid-format can leave it in an unstable state and require you to start over.
Tips
- Use a quick format first; if the drive still misbehaves, try a full format to map out bad sectors.
- After formatting, run a scan with the manufacturer's tool to confirm the drive is healthy.
- If the drive is external, try a different USB cable and port before formatting; a bad cable can mimic corruption.
- Keep regular backups of important data so a corrupted drive is an inconvenience, not a disaster.
- On macOS, Disk Utility's First Aid can sometimes repair minor corruption without erasing data; try that before formatting.
Troubleshooting
If the format fails with an error such as "Windows was unable to complete the format," try these steps in order:
- Close any programs that might be using the drive, then retry.
- Run Disk Management as administrator (right-click and choose Run as administrator).
- Use Diskpart from an elevated Command Prompt: type
diskpart, thenlist disk,select disk N(replace N with the correct number),clean,create partition primary,format fs=ntfs quick, andassign. This wipes the drive completely, so be certain of the disk number. - If the drive is not detected at all, try it in another computer or enclosure. If it still is not detected, it may have failed physically.
- On macOS, if Erase fails, try erasing the whole drive (not just the volume) and choose a different format scheme, such as GUID Partition Map.
If none of these work, the drive likely has hardware damage and should be replaced or taken to a professional data recovery service if the data is critical.
Frequently Asked Questions
Will formatting fix a corrupted hard drive?
It fixes logical corruption such as a damaged file system or RAW partition. It will not fix physical damage like bad sectors or a failing motor.
Can I recover data after formatting?
Sometimes, if you act quickly and use reputable recovery software before writing new data to the drive. A quick format leaves data recoverable; a full format or secure erase makes it much harder.
Should I use quick format or full format?
Use quick format for a healthy drive. Use full format if you suspect bad sectors or want the drive checked for errors, but expect it to take much longer.
What file system should I choose?
NTFS for Windows internal drives, exFAT for cross-platform external drives, and APFS or Mac OS Extended for macOS.
Why does my drive show as RAW?
RAW means Windows cannot recognize the file system. It often happens after corruption or an interrupted write. Formatting creates a new file system, but back up first if you need the data.
Can I format a drive that won't show up in Disk Management?
No. If the drive is not detected at the hardware level, formatting tools cannot reach it. Try another cable, port, or computer; if it still does not appear, the drive may be dead.