keepcalculator

06 Numbers and Powers

How to Fix a Drive I/O Error Without Losing Data

Card No. 06·32197 · Updated · Standard formula, shown below

An I/O (Input/Output) error on a hard drive or SSD means the computer cannot read or write data to the device. This can happen due to cable issues, driver problems, file system corruption, or failing hardware. The goal of this guide is to help you fix the error while preserving your data — not to perform risky repairs that could wipe everything. You will learn safe troubleshooting steps, from checking connections to using built-in tools, and what to do if the drive is physically failing.

What You’ll Need

  • A working computer (different from the one with the error, if possible)
  • An external USB-to-SATA/IDE adapter or a USB enclosure (if the drive is internal)
  • A spare storage device with enough free space to back up your data
  • Administrator access on Windows (or root on macOS/Linux)
  • Optional: a different SATA or power cable, and a different USB port

Step-by-Step

  1. Stop using the drive immediately. If you see an I/O error, do not keep retrying to access files. Every read/write attempt can stress a failing drive. Close any programs that might be using it.
  2. Check physical connections. If it’s an external drive, unplug and re-plug the USB cable, try a different port, and if possible, use a different cable. For internal drives, power off the computer, open the case, and reseat the SATA data and power cables. Ensure they are firmly connected.
  3. Try the drive on another computer. Connect the drive to a different machine using a USB adapter or enclosure. If it works there, the issue is likely with your original computer’s port, cable, or drivers. If it still fails, the drive itself is the problem.
  4. Run CHKDSK (Windows) or fsck (macOS/Linux) in read-only mode first. This checks the file system for errors without writing. On Windows, open Command Prompt as Administrator and type chkdsk X: /f (replace X with the drive letter). On macOS, use Disk Utility’s First Aid. On Linux, use fsck /dev/sdX (unmount first). If it finds errors, it will ask to fix them — but only do this if you have a backup, because fixing can sometimes worsen a failing drive.
  5. Update or reinstall the storage controller drivers. In Windows, open Device Manager, expand “Disk drivesâ€� and “Storage controllers,â€� right-click the device, and select “Update driver.â€� If that doesn’t help, uninstall the driver and restart the computer to reinstall it automatically.
  6. Use data recovery software before attempting any repair. Tools like TestDisk (free) or PhotoRec can read raw sectors and copy files to another drive. Do this before running any repair that might overwrite data.
  7. If the drive is still recognized but slow, clone it. Use a disk cloning tool (like ddrescue on Linux, or Macrium Reflect on Windows) to make a sector-by-sector copy to a healthy drive. This preserves your data even if the original drive fails completely.
  8. If cloning fails due to bad sectors, try a “slow� read. Some tools (ddrescue) can retry reading bad sectors multiple times. This can recover more data than a single pass.
  9. Check the drive’s SMART status. Use a tool like CrystalDiskInfo (Windows) or smartctl (Linux) to see if the drive is reporting hardware failure. If SMART says “FAILâ€� or “Imminent Failure,â€� stop using it and focus on data recovery.
  10. If the drive is making clicking or grinding noises, power it off immediately. Do not run any software. These are signs of mechanical failure. Seek professional recovery services if the data is irreplaceable.

Common Mistakes

  • Running CHKDSK /F on a failing drive without a backup. This can cause further damage and make data unrecoverable.
  • Ignoring physical signs. Clicking, whirring, or burning smells mean the drive is dying — software fixes won’t help.
  • Using the drive as normal while troubleshooting. Every access can worsen bad sectors.
  • Formatting the drive to “fixâ€� the error. This erases all data and doesn’t address the underlying cause.
  • Assuming it’s a software issue. Many I/O errors are hardware-related (cables, ports, drive failure).

Tips

  • Always keep a backup. The best way to avoid data loss is to have a recent backup. Use the 3-2-1 rule: 3 copies, 2 different media, 1 offsite.
  • Use a USB adapter with its own power supply. Some external adapters don’t provide enough power for larger drives, causing intermittent I/O errors.
  • Try a different SATA port. On desktops, a faulty motherboard port can cause errors. Move the drive to another port.
  • Check for overheating. If the drive is hot to the touch, let it cool down before retrying. Overheating can cause temporary errors.
  • For SSDs, update the firmware. Some SSD models have firmware bugs that cause I/O errors. Check the manufacturer’s website for updates.

Troubleshooting

If the steps above don’t resolve the error:

  • Drive not detected at all: Try a different cable, port, or computer. If still not detected, the drive’s controller board may be dead. Professional recovery might be needed.
  • CHKDSK hangs or freezes: This often indicates bad sectors. Cancel it and use a cloning tool that skips bad sectors.
  • Data recovery software sees the drive but can’t read files: Try a different tool. Sometimes one tool can read what another cannot.
  • The error only happens with large files: This could be a file system corruption or a failing area of the disk. Try copying smaller files first, and use a tool like ddrescue to map bad areas.
  • Error appears after a power outage: The file system may be in an inconsistent state. Run chkdsk in read-only mode to see if it reports issues, but don’t fix until you have a backup.
  • If the drive is under warranty: Contact the manufacturer. Some offer data recovery services or replacements. Don’t open the drive yourself, as that voids the warranty.

Frequently Asked Questions

Can I fix an I/O error without losing data?

Yes, in many cases. If the error is due to a cable, port, or driver, fixing that will restore access without touching data. If it’s file system corruption, running a repair tool might fix it, but there’s a small risk of data loss, so always back up first.

Is it safe to run CHKDSK on a failing drive?

Running CHKDSK in read-only mode (without /F) is safe. Running it with /F attempts to repair, which can write to the drive. If the drive is physically failing, this can worsen the situation. Only do it after you’ve backed up what you can.

What does an I/O error mean on a hard drive?

It means the operating system couldn’t read or write data to the drive. It’s a generic error that can stem from hardware issues (cables, power, drive failure) or software issues (drivers, file system).

Can I recover data from a drive with bad sectors?

Yes, often. Tools like ddrescue or PhotoRec can copy data from drives with bad sectors by reading around them. The more bad sectors, the harder it becomes, but it’s often possible to recover a significant portion.

How do I know if my drive is physically failing?

Signs include clicking or grinding noises, very slow performance, frequent freezes, and SMART status reporting errors. If you see these, stop using the drive and seek professional help if the data is critical.

Should I format the drive to fix the I/O error?

No. Formatting will erase all data and won’t fix hardware problems. It might temporarily mask a software issue, but the error will likely return. Only format if you don’t need the data and you’ve verified the drive is healthy.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →