How to recover files from a damaged or formatted hard drive

Last update: December 27th 2025
  • Most hard drive failures are logical and can be addressed with specialized software before resorting to a professional service.
  • Tools such as CHKDSK, First Aid, EaseUS, Disk Drill, Recuva, PhotoRec, or TestDisk cover everything from minor errors to serious file system damage.
  • When there are physical symptoms (noises, knocks, overheating) it is advisable to stop using the hard drive and assess its repair in a laboratory.
  • The best protection is still to combine several backups on different media so that any disk failure is easily recoverable.

recover files from hard drive

Losing hundreds of gigabytes of photos, work documents, or personal projects suddenly because your hard drive has failed is a real blow. The good news is that, in many cases, that data is still there and can be recovered . For example, you can recover deleted photos if you proceed calmly, methodically, and with the right tools, on Windows, macOS, and Linux.

In the following lines, we'll take a comprehensive and straightforward look at how to recover files from a damaged, corrupted, formatted, or even missing hard drive . You'll learn the difference between a logical and a physical failure, what you can do yourself with free or paid software, when to stop and take your data to a professional repair shop, and what strategies to follow to avoid this problem in the future.

Logical failure vs. physical failure: what's really wrong with your hard drive

Before you start installing programs, it's crucial to understand what kind of problem your hard drive has: logical (software) or physical (hardware) . This will determine which techniques will work and which might worsen the situation.

When we talk about logical damage, we're referring to problems with the file system (for example, systems like exFAT ), the partition table, or how the operating system organizes data on the disk. The hardware is intact, the disk spins, and it's detected, but Windows or macOS can't correctly read the structure , and messages like "the disk is not formatted," "RAW drive," "bad sector," or simply "you can't see your folders" appear.

In contrast, a physical failure involves a real problem with the components: heads, platters, motor, PCB (the circuit board), connectors, etc. Typically, the drive will make strange clicking noises, unusual buzzing sounds, overheat, or may not even spin at all . Damage from impacts, humidity, fire, or power surges also falls into this category.

The most common cause of hard drive failure at home or in the office is logical damage caused by a sudden shutdown, accidental formatting, a deleted partition, a virus, or isolated bad sectors . In all these scenarios, data recovery software usually yields excellent results if you act promptly.

If, on the other hand, the hard drive has suffered a hard fall, been exposed to water, or is making continuous mechanical noises, we are almost certainly dealing with a case of damaged hardware that requires a specialized laboratory . Opening the drive at home, hitting it, or trying "miracle tricks" like putting it in the freezer will only complicate (and increase the cost of) professional repair.

Critical first steps: what to do and what NOT to do when your hard drive fails

As soon as you suspect something is wrong (files that won't open, extremely slow disk speed, error messages, noises, etc.), the most important thing is to stop using the disk immediately . Every second it continues writing data increases the chances of overwriting information that was still recoverable.

If the hard drive is internal, ideally you should carefully remove it from the computer and connect it as a secondary drive or via a USB enclosure to another computer from which you will perform the analysis and recovery. Before touching anything, discharge any static electricity (use an anti-static wrist strap or touch a grounded metal surface).

For mechanical hard drives, pay attention to whether the disk is spinning and what sound it makes. If it's not spinning or making noise, check the power and data cables, try different ports, and a different power supply . Sometimes the problem isn't the hard drive itself, but the power supply or the PC's cabling.

If the hard drive powers on but emits a repetitive clicking or unusual squeaking sound, that's a bad sign: there's probably a problem with the heads or platters . At this point, repeatedly trying to power it on could spread the damage. It's best to turn it off and seriously consider sending the drive to a professional repair shop.

A golden rule: if you manage to get the disk to boot by the skin of your teeth and you can still access the data, the first thing to do is clone the entire disk sector by sector to another drive . After that, all testing and recovery should be done on the copy, never on the original, to avoid losing the only valid source of data.

Typical scenarios for data loss on hard drives

The most common hard drive problems aren't always catastrophic. Often, they're specific situations with very different solutions depending on the case . Here are some of the most common scenarios:

One of the most common problems is the accidental deletion of files or folders , sometimes with the bad luck of having already emptied the Recycle Bin. In reality, when you delete a file, the system only marks that space as free: the data remains physically on the disk until it is overwritten . If you act quickly, there's a good chance you can recover them almost intact.

Another common mistake is formatting the disk or a partition without a backup . This could be a quick format, a full format, or even reinstalling the operating system on the same drive. In a quick format, the allocation table is recreated, but the data remains in the sectors ; with a full format, however, the sectors are filled with zeros, making recovery extremely difficult or even impossible, especially on SSDs with TRIM enabled.

  What is a technology platform and why is it key to innovation?

On mechanical hard drives (HDDs), a quick format typically only creates a new file system structure and marks all clusters as free. This means that most of the data remains in the sectors as is, until new writes overwrite them . With good recovery software, it's perfectly possible to reconstruct folders, photos, documents, and more; and it's also useful to know what FAT32 is when working with older formats.

In contrast, a full format (especially with tools that write zeros) goes through all sectors, initializing them. In this case, the recovery capacity drops to practically zero because the previous information has been physically overwritten.

When it comes to SSDs, things get more complicated. These drives manage writes using the TRIM command and internal wear-leveling algorithms . When you erase or format, the blocks are marked for cleaning, and in many cases, the controller itself permanently erases that data in the background. This makes data recovery on formatted SSDs much more difficult than on HDDs , and often only viable if TRIM was disabled or there wasn't enough time for the cleaning process to run.

Whatever your situation, if you accidentally formatted your drive and realized it immediately, the recommendation is the same: stop using that drive immediately, don't reinstall anything over it, and run the recovery software from another drive . If you have a previous backup image (File History, Time Machine, cloud backup, Acronis-type clones, etc.), that will always be the fastest and cleanest way to recover your data.

Integrated system tools: CHKDSK and First Aid

Before diving into advanced programs, it's a good idea to familiarize yourself with the diagnostic and repair utilities that come standard with Windows and macOS . These aren't traditional data recovery tools, but they can help correct logical errors that prevent access to your content.

In Windows, the classic utility CHKDSK (Check Disk) is responsible for verifying the integrity of the file system and locating bad sectors . It also attempts to repair structural inconsistencies and, in a more aggressive mode, marks defective sectors so that the system stops using them.

To run it with administrator privileges, press Win + X and choose "Command Prompt (Admin)" or "Terminal/PowerShell (Admin)" . Once in the console, you can begin with:

chkdsk X: (replacing X with the drive letter) for a basic error analysis.

If you want it to attempt repairs, you would typically use: chkdsk X: /r /x . The /r modifier searches for bad sectors and recovers readable information; /x forces the drive to be disassembled so that work can be done on it.

It's important to understand that CHKDSK can "fix" the file system, but in the process, it may render some corrupted data inaccessible . Therefore, on heavily damaged disks, it might be better to clone the disk first and then run CHKDSK (or other tools) on the copy.

On macOS, the user-level equivalent is First Aid within Disk Utility . This feature checks both the partition map and the file system structure and repairs common directory, permission, and block errors; for older formats, it's helpful to understand the HFS file system and its limitations.

To use it, open Spotlight with Command + Space, type "Disk Utility," press Enter, and select the affected disk or volume . Then, click "First Aid" and follow the prompts. The system will tell you if it has detected and/or fixed any problems.

If First Aid says the volume is correct but you still can't see certain files, it's time to rely on specialized data recovery software , which goes beyond what these utilities offer.

Programs to recover deleted files or damaged logical disks

The recovery software ecosystem is vast. There are powerful paid tools, more basic but useful free programs, and incredibly effective open-source projects in expert hands . The key is choosing the right one for your specific needs, operating system, and skill level.

One of the most popular commercial solutions is EaseUS Data Recovery Wizard . Available for Windows and Mac, it has a very simple interface and can recover deleted data, lost partitions, RAW disks, formatted disks, or inaccessible disks . It supports thousands of file types and works with internal and external hard drives, USB drives, memory cards, and more.

EaseUS offers a free version with certain volume limitations, and paid versions that unlock unlimited data recovery, deep scans, and support for more complex cases . It is especially effective in erasure and quick formatting scenarios, provided the space has not been overwritten.

Another well-known paid tool is Disk Drill , available for both Windows and macOS. In addition to data recovery itself, it includes some very useful extras: byte-by-byte disk image creation to ensure you always work from a copy, SMART disk health monitoring, and proactive data protection features.

The free version of Disk Drill for Windows allows you to recover a limited amount of data (for example, a few hundred megabytes), but it does let you preview recoverable files without limit . The paid version removes this limit and enables all features. It stands out for its clear interface where you can filter results by type, date, size, and more.

  Programming Macros in Excel: The Complete Step-by-Step Guide

If you're looking for something 100% free and reasonably easy to use on Windows, Recuva remains a classic. Its wizard asks questions (what type of file you're looking for, where it's located) and performs a quick or deep scan depending on your choice. There's no limit to the amount of data that can be recovered in its standard version, although its engine isn't as advanced as those of paid solutions.

Also in the realm of freeware for Windows is Wise Data Recovery , capable of recovering photos, documents, videos, and other file types from FAT, exFAT, and NTFS file systems. It offers quick scanning, a portable version, and filtering by category . However, the free version does not allow deep scans or working with RAW volumes; for that, you need the Pro edition.

Among the more established paid recovery options, Ontrack EasyRecovery stands out for its experience in both software and laboratory testing. Its program recovers deleted files, formatted disks, damaged volumes, and, in higher editions, even RAID configurations . The free demo typically allows you to recover up to 1 GB, enough to assess whether it's worth purchasing a license.

Another veteran tool is Recover My Files , designed for Windows. Although its interface is somewhat outdated and it no longer receives major updates, its file carving engine remains powerful , especially for documents, photos, and emails. If you need to recover, for example, a Word file , it's worth trying the free version.

If you work in mixed environments (Windows, macOS, Linux) or particularly value open source, there are two names you should know: PhotoRec and TestDisk . Both are free, cross-platform, and incredibly effective, although their text-based interface might deter novice users.

PhotoRec, despite its name, doesn't just recover photos: it supports over 480 file extensions and focuses on a low-level, signature-based RAW recovery approach. It's ideal when the file system is severely damaged and requires scanning the disk sector by sector. The major drawback is that it doesn't preserve folder names or structure ; you'll have to reorganize the recovered files afterward.

TestDisk, on the other hand, is geared towards recovering lost partitions, fixing damaged partition tables, and repairing boot sectors . It can also help make unbootable disks bootable again. It's not the right tool for rescuing a specific file, but it's invaluable when an entire partition has disappeared; moreover, it works very well with ext4 file systems in Linux.

For a more home-based environment, and in the case of Windows, there are also options such as Orion File Recovery , which combines a wizard to recover deleted files with secure deletion functions, or the official Microsoft Windows File Recovery utility , a command-line tool designed for Windows 10/11 capable of rescuing specific file types (JPEG, PDF, Office, MP3, MP4, ZIP, etc.).

Recovering data from formatted disks: what is possible and what is not

Formatting a disk without a backup can be quite daunting, but it's important to clarify: not all formatting erases data in the same way , and in many cases it's possible to recover a large part of the information.

On mechanical hard drives (HDDs), a quick format typically only creates a new file system structure and marks all clusters as free. This means that most of the data remains in the sectors as is, until new writes overwrite them . With a good recovery program, it's perfectly possible to reconstruct folders, photos, documents, and more.

In contrast, a full format (especially with tools that write zeros) goes through all sectors, initializing them. In this case, the recovery capacity drops to practically zero because the previous information has been physically overwritten.

When it comes to SSDs, things get more complicated. These drives manage writes using the TRIM command and internal wear-leveling algorithms . When you erase or format, the blocks are marked for cleaning, and in many cases, the controller itself permanently erases that data in the background. This makes data recovery on formatted SSDs much more difficult than on HDDs , and often only viable if TRIM was disabled or there wasn't enough time for the cleaning process to run.

Whatever your situation, if you accidentally formatted your drive and realized it immediately, the recommendation is the same: stop using that drive immediately, don't reinstall anything over it, and run the recovery software from another drive . If you have a previous backup image (File History, Time Machine, cloud backup, Acronis-type clones, etc.), that will always be the fastest and cleanest way to recover your data.

External hard drives: added risks and recovery methods

External hard drives are the perfect solution for expanding storage, moving large amounts of data, or creating backups without too much hassle. But precisely because they are portable, they are more susceptible to bumps, sudden disconnections, and environmental changes than an internal drive.

Common causes of data loss on external hard drives include accidental deletion or formatting, hot disconnections during transfers, partition table corruption, malware infection, ransomware attacks, power surges or outages, and physical damage from drops or impacts.

When an external hard drive stops working properly, the first thing to check is the basics: try a different USB cable, a different port, a different computer, or even a different operating system . Sometimes the problem lies with the USB hub, the SATA-to-USB adapter, or the drivers, not the drive itself. If the drive behaves the same way on another computer, you can assume the fault is with the drive or its electronics.

  Meaning of Windows 11 icons and their evolution

On Windows, an advanced but free option is Windows File Recovery . Although it's command-line and not particularly user-friendly, it allows you to search for and recover deleted files from external drives using different modes (default, segment, and signature). Each mode adapts the search based on the file system (NTFS, FAT, exFAT, ReFS) and the age of the deletion.

In macOS, in addition to First Aid and the Trash, you can use third-party tools such as Acronis Cyber ​​Protect Home Office (formerly Acronis True Image), Disk Drill, Wondershare Recoverit, or similar , which support external USB drives and can recover data even when the volume does not mount correctly.

On Linux, if you've connected an external hard drive with the NTFS file system and want to go beyond what CHKDSK offers on Windows, tools like TestDisk, PhotoRec, or ddrescue are invaluable . For example, ddrescue allows you to clone a heavily damaged disk, skipping faulty sectors and intelligently retrying, so you can analyze the copy with PhotoRec or graphical programs like R-Studio, UFS Explorer, or similar programs from Linux or even from a live USB.

When to use a professional data recovery service

Although current software is very advanced, there are situations where the responsible thing to do is to stop experimenting and put the disk in the hands of a specialized company . It may not be cheap, but it's the only option with a real chance of success.

You should seriously consider using a lab if the hard drive is making obvious mechanical noises, isn't spinning, has suffered a hard impact, water or fire damage, the PCB is burned, or if connecting it causes the computer to freeze or not even boot . Also, consider using a lab if you've already tried several tools without success and the missing data is critical.

The typical process with a professional service follows these steps: you fill out an incident form with the hard drive model and what happened, you carefully pack the hard drive (antistatic bag, good padding) and send it . Once they receive it, they perform a diagnostic in their lab and send you a report with the probability of success and a quote.

If you agree, the technicians will work on the hard drive in clean rooms, using compatible replacement parts and low-level tools to temporarily repair the hardware (heads, platters, firmware) and extract as much data as possible . If successful, they will return the data to you on another storage medium (another hard drive, USB drive, secure download, etc.).

It's important to understand that the more a damaged hard drive has been handled before reaching the repair shop, the more difficult and expensive the repair will be . A single attempt to open it at home or replace the PCB without proper knowledge can completely ruin any chance of recovery.

Strategies to avoid losing data again

No matter how good the software and the labs are, the only truly solid defense against data loss is having good backups . This applies to internal and external hard drives, SSDs, NAS devices, and any media containing important information.

A highly recommended practice is the 3-2-1 rule : keep at least three copies of your data (the original and two backups), on at least two different types of media, and with at least one copy outside your home or office (e.g., in the cloud).

To implement this, you can combine local backups on external drives (using programs like Acronis, Time Machine, Windows or Linux backup tools) with cloud backup services . Many of these solutions allow you to schedule automatic backups, encrypt data, and restore individual files or entire systems with just a few clicks.

In addition to backups, it is advisable to follow a series of basic best practices : avoid shocks and vibrations in laptops, do not block ventilation outlets, use UPS (uninterruptible power supply systems) where there are frequent power outages, keep antivirus software updated and be wary of suspicious attachments or installers.

Finally, get into the habit of thinking twice before confirming destructive actions like "format," "delete partition," or "clean disk ." Many data losses are simply due to haste or carelessness, perfectly avoidable if you double-check the drive letter, volume, or folder.

While losing data from a hard drive is a stressful situation, having a clear understanding of how to distinguish between a logical and a physical failure, what tools to use in each scenario, and when to seek professional help puts you in a much better position to minimize damage. If you combine this with a good backup strategy and proper hardware maintenance, it's very likely that the next time a drive gives out, it will be a minor setback rather than a digital tragedy.

recover deleted photos
Related articles:
Recover deleted photos: The best methods you should know