How to recover data after a hard drive wipe?
Files gone from your hard drive? Learn whether it was a real wipe or a lost partition, format prompt or failing disk, and how to get data back on Windows.
Prefer to fix it yourself? The manual steps follow.
- Methods
- 6
- Time
- 5 minutes
- Level
- Beginner
- Applies to
- Windows
6 methods in this guide
Your folders are empty, a drive shows no files, or Windows asks you to format a disk that had data on it yesterday. Whether you can get the data back depends on what really happened. A deliberate wipe overwrites data and is permanent. Most "my drive wiped itself" cases are something else: a lost partition, a damaged file system, a quick format, or a disk that is starting to fail.
Why it happens
- A real wipe (not recoverable from the disk): a full format,
diskpart clean all,cipher /w, Reset this PC with Remove everything and data cleaning turned on, a manufacturer secure erase, or any format or reset of an SSD (TRIM clears the blocks). Only backups help here. - A quick format or Reset this PC without cleaning: the file system was replaced but much of the data may still be on a hard drive. See Fix 4.
- "You need to format the disk in drive X: before you can use it": the file system is damaged and the volume shows as RAW. The data is usually still there. Do not click Format.
- Lost partition or drive letter: after a Windows install, update or a cloning tool, the partition can be deleted or simply lose its letter, so the drive seems empty.
- Failing drive: files that vanish, folders that open and close, clicking sounds or long freezes point to a hardware fault. Each hour of use can make it worse.
Fix 1: Make sure the files are really gone
- Right-click Start > Disk Management. Check whether the partition still exists. If it is there but has no letter, right-click it > Change Drive Letter and Paths > Add.
- If the partition shows as RAW or the space shows as Unallocated, stop here and go to Fix 3 or Fix 4. Do not format or create a new volume.
- After an update or reset, look in
C:\Windows.oldand inC:\Usersfor a second (temporary) profile folder with your old name. - In File Explorer, select View > Show > Hidden items to rule out hidden folders.
Fix 2: Check whether the drive is failing
Open PowerShell as administrator and run:
Get-PhysicalDisk | Select-Object FriendlyName, MediaType, HealthStatus, OperationalStatus
If HealthStatus is not Healthy, or the drive clicks or disappears, do not scan or repair it yourself. Copy off whatever still opens and take the drive to a data recovery lab. Do not run chkdsk on a failing disk; see Check a disk for errors (chkdsk) only once the data is safe.
Fix 3: Restore from a backup
For a real wipe this is the only way back, and it is the fastest for every other case.
- File History, Windows Backup or a backup drive: Recover deleted files (Recycle Bin, backups, OneDrive).
- OneDrive copies of Desktop, Documents and Pictures: Restore deleted or older files in OneDrive.
- Older file versions: Restore an earlier version of a file or folder.
Fix 4: Scan the drive with Windows File Recovery
For a quick-formatted, RAW or emptied hard drive, USB stick or SD card, scan it with Microsoft's Windows File Recovery in Extensive mode, saving results to a different drive: Recover deleted files with Windows File Recovery.
winfr E: D: /extensive
Replace E: with the affected drive and D: with a healthy drive that has enough free space. Do not install anything on the affected drive.
Fix 5: Recover a deleted or lost partition
If Disk Management shows Unallocated space where your partition was, a partition recovery tool such as the open-source TestDisk can search for the old partition and copy files out with their original names. Copy the files to another drive before you write any repaired partition table back.
Fix 6: Prevent the next loss
- Set up an automatic backup to a second drive or the cloud: Back up your files (Windows Backup, File History, Time Machine).
- Replace a drive that reported problems in Fix 2, even if it works again for now.
FAQ
Can data be recovered after a full wipe?
Not with software. A full format, clean all or secure erase overwrites the data. Look for backups, cloud copies, old phones or other PCs that had the files.
Can a hard drive wipe itself?
No. Something always writes or deletes the data: a format, a reset, a sync tool, malware, or a failing drive that damages the file system. Find the cause before you put new data on the disk.
Windows asks me to format the drive. What should I do?
Click Cancel. Recover the files first (Fix 4 or Fix 5). Only after that format it, and replace it if Fix 2 shows it is failing.
Sources
Did this fix work?
One click, no account. It tells the next reader which guides are worth their time.
Questions and experiences: recover data after a hard drive wipe
Still broken, or found a fix we did not cover? Ask here: members and our editors answer. Reading is open; writing needs a free account.
…