How to fix hard disk errors and recover data from a corrupted disk

Bad sectors, head failures, overheating: learn what causes hard disk errors, when CHKDSK is safe to use and how to recover data from a failing disk.

Hard disk errors are a real headache. A single mechanical problem or electronic fault is enough to put your photos, documents, spreadsheets and other files at risk.

Errors like this can have a logical or a physical cause, and repeated repair attempts can make things worse. If the files matter, see how hard drive data recovery works, starting with a free diagnosis.

That is why it pays to know how to deal with a disk error correctly if you don’t want to lose the drive or the files stored on it.

In this article, we look at the most common errors that affect hard disks, what you can safely do about them and how to recover your data.

What types of hard disk errors are there?

First, let’s go through the main errors that can affect a hard disk and put your data at risk. They can be physical (mechanical or electronic) or logical:

Physical (hardware) bad sectors

A bad sector (or bad block) is an area of the disk that can no longer be read or written reliably. It can be physical or logical, as explained below.

Physical bad sectors are caused by damage to the platter surface or by weak read/write heads. The surface may have been scratched by a head touching it, or the magnetic coating may have degraded, for example. The disk can no longer read the data stored in that area.

Every hard disk keeps a pool of spare sectors. When the firmware detects a sector that has gone bad, it can reallocate it, so that the sector’s address points to a spare one and the disk keeps working. However, whatever was stored in the damaged sector is not automatically rescued, and a rising number of reallocated sectors is a clear sign that the disk is failing and its data should be copied as soon as possible.

Logical (software) bad sectors

Logical bad sectors also cause read or write errors, but the surface itself is not damaged. The problem is that the sector’s content no longer matches its error-correction code, so the disk reports it as unreadable.

This usually happens when a write is interrupted, for example by a sudden power cut or by unplugging the drive without ejecting it first. Malware can also corrupt the file system, although it does not physically damage the disk.

The data in those sectors is unreadable as it stands, but a logical bad sector can be fixed by rewriting it. Keep in mind that rewriting replaces whatever was there, so it should only be done after the important data has been copied.

Read/write head failure

Data is read and written by heads mounted on a moving arm. They fly a few nanometres above the platters, which are coated in magnetic material and spin at high speed, without ever touching them.

Any fault in this mechanism can cause serious damage. If the disk is dropped or knocked, especially while running, the heads may become misaligned or crash onto the platters, making the data inaccessible and scratching the surface. A disk that clicks or makes unusual noises should be switched off immediately. Handle your external drives and computers with care.

Overheating and dust build-up

The inside of a hard disk is sealed off from the outside environment so that dust and moisture cannot reach the platters. Even so, dirt inside the computer can affect the disk indirectly.

When a computer is not cleaned regularly, dust builds up in the cooling system and the machine overheats. The disk then runs above its rated temperature, which can damage the electronics on its circuit board and shorten the life of the heads and motor.

How do I fix disk errors with CMD?

The Windows Command Prompt (CMD) includes tools that check the file system on a drive and try to repair errors.

To open it, type “cmd” in the Windows search bar, right-click Command Prompt and choose “Run as administrator” (the check needs administrator rights). The command you need is explained below.

How do I use CHKDSK to fix disk errors?

CHKDSK is the Windows command that checks a drive for file system errors and, with the right parameters, scans for bad sectors.

To run it, type chkdsk X: /f /r in the Command Prompt, replacing X with the letter of the drive you want to check (for example, chkdsk D: /f /r), and press Enter. The /f parameter fixes file system errors, while /r scans the whole surface for bad sectors and tries to recover readable information from them.

CHKDSK repairs the file system structure, not the disk hardware. If it finishes without errors, the drive can usually be used again. However, to make the file system consistent it may discard or truncate damaged files, and a physically bad sector does not become healthy again. Use it only on a drive whose data is backed up or of no importance.

Be careful with these commands. On a disk with physical faults, the /r scan reads every sector and puts heavy strain on weak heads, which can turn a recoverable case into an unrecoverable one. If the disk is slow, clicking or full of read errors and the data matters, don’t run CHKDSK: turn the disk off and let a specialist company such as Bot handle it safely.

Logical bad sectors can usually be corrected by software, whereas physical bad sectors and head failures need hardware intervention in a laboratory.

Never open a hard disk at home. A single speck of dust on the platters can cause a head crash, and an incorrect reassembly can make the data impossible to recover for good. Hard disks should only ever be opened in a clean room.

Only specialists with the right equipment should work inside a disk. That is why we recommend contacting a company like Bot, so that the work is done safely and with the best chance of getting your data back.

How do I fix errors on an external hard disk?

An external hard disk can suffer from the same problems as an internal one, because the disk inside the enclosure works in exactly the same way.

The difference is that an external disk travels a lot more. That mobility makes it more vulnerable to drops, knocks, dirt and humidity, so it is even more prone to bad sectors and head damage.

The same tools and the same precautions apply to external disks.

Connect the disk to a USB port on your computer and, if it shows no signs of physical failure and the data is safe, run CHKDSK with the external drive’s letter, for example chkdsk E: /f /r if the drive is E:.

How do I recover data from a corrupted disk?

A corrupted disk, or one with damaged sectors, makes the data inaccessible. That does not mean the data is gone: often a hardware or software problem is simply preventing access to the file system that indexes the files.

In many cases, therefore, the data can still be recovered, although the disk itself may need to be replaced.

The first step is to stop using the disk. If you keep saving files to it, you may overwrite data that could otherwise be recovered.

If some files are still accessible, copy the most important ones to another trusted disk or to the cloud straight away. Any later procedure carries some risk, so don’t put even more data at stake.

Once your data is safe, you can try the Windows error-checking tool: in File Explorer, right-click the drive > Properties > Tools > Check. If the problems are minor, this may be enough.

If it isn’t, CHKDSK in the Command Prompt, explained above, performs a more thorough check, with the same precautions.

If the files you need are still on the disk, it is safer to try a data recovery program before any repair tool. These programs only read the disk and copy the files they find to another drive, without changing anything on the damaged one. They are effective for logical problems, but not for physical faults. Here are some reliable options.

What are the best programs for recovering data from a disk with errors?

There are several data recovery programs that can help you get your files back. Stick to well-known, reputable software, such as:

These programs usually offer a free trial with a limit on how much data can be recovered, so to restore a large volume of files you will probably need to buy the full version. Always save the recovered files to a different drive, never to the disk you are recovering from.

Any procedure on a damaged disk must be carried out with great care. Wrong steps or unsuitable tools can make the data impossible to recover, and these programs cannot deal with physical faults such as worn heads or a damaged surface.

That is why the safest solution is to use a specialist data recovery company. Here at Bot, for example, we have the right equipment and a Class 100 (ISO 5) cleanroom for handling storage devices.

Our technicians have many years of experience and have already solved some of the most complex hard disk data loss cases. In most cases, the data can be recovered, even when the disk itself cannot be saved.

So, if you are looking for the best way to recover data from a disk with errors, take a look at Bot’s services. The standard diagnosis is free, and we offer free collection of your device (islands excluded).

Fill in this form and we will assess your device and send you a quote.

About the author
Filipe BragaGestor de laboratório · Laboratório Bot

Filipe Braga is an engineer and runs the Bot lab. He works on the most complex data recovery cases, mainly RAID systems and servers, where every drive counts and the order of steps matters. Day to day, he organises the bench work so that each device follows the right procedure. On the blog, he writes about RAID and difficult cases. Outside the lab, he enjoys cycling and a good wine.

All articles by Filipe Braga →

Need to recover your files?

The diagnosis identifies the fault and whether recovery is technically viable. You receive a quote before any work begins.

Start diagnosis
Categories
Share