sodcalculator

10 Tech How-To

Hard Drive Error Code 0142: Fixes That Work

Guide 10-35820 · Updated · Step by step

Hard drive error code 0142 typically means the BIOS cannot detect your hard drive during startup, often due to a loose cable, failed drive, or incorrect settings. You can usually fix it by reseating cables, checking BIOS detection, and testing the drive on another port or computer. Below is a step-by-step guide covering the most common causes and solutions.

What Is Error Code 0142?

Error code 0142 appears as a text message on some Dell and other brand computers during the Power-On Self-Test (POST). It is not a Windows error; it occurs before the operating system loads. The exact wording varies by manufacturer, but it generally says “Hard drive not found” or “No boot device found.” The code is a generic indicator that the system cannot communicate with the storage drive, so the computer cannot boot.

This error can happen on desktops and laptops, with both traditional hard disk drives (HDDs) and solid-state drives (SSDs). It is more common after moving a computer, cleaning inside the case, or after a power surge.

Common Causes of Error 0142

  • Loose or disconnected data/power cables – The most frequent cause, especially after moving the PC.
  • Faulty SATA port or cable – A damaged cable or a failing motherboard port can interrupt the connection.
  • Drive not spinning up – A failed power supply or a dead drive motor can prevent detection.
  • BIOS settings changed – Incorrect SATA mode (IDE vs. AHCI) or boot order can hide the drive.
  • Drive failure – The drive itself may be dead or have corrupted firmware.
  • Peripheral interference – Sometimes USB devices or expansion cards can cause POST to hang.

Step-by-Step Fixes

Work through these steps in order. Most fixes are simple and require no special tools.

  1. Power off and unplug the computer. For a laptop, remove the battery if it is removable. Press and hold the power button for 10 seconds to discharge residual power.
  2. Open the case (desktop) or access the drive bay (laptop). Consult your manual if needed. Ground yourself by touching a metal part of the case.
  3. Reseat the data and power cables. Unplug both from the drive and the motherboard, then firmly reconnect them. Listen for a click on the power connector.
  4. Try a different SATA port. Use another port on the motherboard (often labeled SATA0, SATA1, etc.). Also try a different SATA cable if you have one.
  5. Check the power connection. Ensure the power cable is fully seated. If you have a modular power supply, check the connection at the PSU end too.
  6. Power on and enter BIOS. Usually press F2, Del, or Esc during startup. Look for a “Drives” or “Storage” section. See if the drive is listed. If not, try resetting BIOS to defaults (often F9 or an option in the Exit menu).
  7. Change SATA mode. In BIOS, set SATA operation to AHCI (or IDE if it was AHCI). Save and exit. This can help if the setting was changed accidentally.
  8. Test the drive on another computer. If you have a spare PC, connect the drive there. If it is detected, the drive is fine and the issue is on your motherboard/PSU. If not detected, the drive is likely faulty.

What to Do If the Drive Is Not Detected

If the drive is not detected in BIOS after reseating cables and trying different ports, it may be dead. For an HDD, you can sometimes hear a clicking or beeping sound, which indicates mechanical failure. For an SSD, there is no moving part, so failure is silent. In either case, you can try one more thing: connect the drive to a different computer via a USB-to-SATA adapter. If it still does not appear, the drive is likely beyond recovery without professional data recovery services.

If the drive is detected in BIOS but Windows still won’t boot, the issue may be a corrupted boot sector. You can try using Windows Recovery Environment to repair startup. Boot from a Windows installation USB, select “Repair your computer,” and run Startup Repair. If that fails, you may need to rebuild the Master Boot Record using Command Prompt.

Preventing Future Error 0142

  • Use quality cables – Replace worn or flimsy SATA cables.
  • Secure the drive properly – Use screws or tool-less mounts to prevent vibration and disconnection.
  • Keep the system clean – Dust can cause overheating and connection issues.
  • Use a surge protector – Power surges can damage drives and motherboards.
  • Back up regularly – Even with prevention, drives fail. Maintain a backup of important data.

When to Seek Professional Help

If the drive contains irreplaceable data and you cannot get it working, stop trying further fixes. Repeated power cycling can worsen a failing drive. Professional data recovery services have cleanroom facilities and specialized tools. They are expensive but may be the only option. For a drive still under warranty, contact the manufacturer for a replacement, but note that warranty replacement usually does not recover data.

Frequently Asked Questions

Can error 0142 be caused by a virus?

No. Error 0142 occurs during POST, before any operating system or virus can run. It is purely a hardware detection issue.

Will I lose my data if I get this error?

Not necessarily. If the drive is still functional but just not detected due to a cable or BIOS issue, your data is intact. If the drive has failed, data recovery may be possible but not guaranteed.

Why does error 0142 appear after moving my computer?

Moving a computer can loosen SATA cables or cause a drive to shift. This is the most common trigger. Reseating cables usually solves it.

Does this error affect SSDs as well as HDDs?

Yes. Both types of drives can cause error 0142 if they are not detected. SSDs have no moving parts, so the cause is more likely a cable or port issue.

Can I fix error 0142 by updating the BIOS?

Sometimes. A BIOS update can improve drive compatibility, but it is not a first-line fix. Try reseating cables and checking settings first. Only update BIOS if you suspect a compatibility issue, and follow the manufacturer’s instructions carefully.

What if my drive is detected in BIOS but still won’t boot?

This indicates the drive is working but the boot sector may be corrupted. Use Windows Startup Repair or rebuild the MBR. If that fails, the drive may have bad sectors.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →