Why does my PC say Insert boot Media in selected boot device and press a key?

Quick Answer

This error message indicates that your computer is not detecting a bootable operating system on any of its drives or devices. Some common causes include:

  • The boot order is incorrect in the BIOS
  • The hard drive with the OS installed has failed or is disconnected
  • Corrupted system files like the Master Boot Record (MBR)
  • Loose cable connections for the hard drive

To fix it, you’ll need to check connections, reset BIOS settings, rebuild the MBR, or reinstall the OS if necessary. A Windows recovery drive or bootable USB can also be used to start the system and repair the current OS installation.

What Does the “Insert Boot Media” Error Mean?

When you turn on your computer, the first thing that runs is a small piece of code called the BIOS (Basic Input/Output System). The BIOS initializes hardware components like the RAM, hard drive, and peripherals to get the computer into a bootable state.

It then looks for an operating system to load from designated boot devices like the hard drive or optical drive. This is controlled by the boot order set in BIOS settings.

If the BIOS cannot find a valid boot loader on any drive during the POST (Power-On Self-Test), it will display an error message like:

“Insert boot media in selected boot device and press a key”

This indicates that no bootable media or operating system was detected on the configured boot devices. So the computer does not know what operating system files to load in order to start Windows, Linux etc.

Some examples of boot media that contain boot loaders are:

  • The hard drive with Windows or Linux installed
  • A recovery partition on the hard drive
  • External USB flash drives or external hard drives
  • Optical discs like DVDs and CDs

Without detecting any of these, the computer will not be able to boot into the operating system and load the desktop.

Common Causes of the Error

There are several reasons why a PC may suddenly give the “insert boot media” error on startup even if it was working previously:

1. Incorrect Boot Order in BIOS

The BIOS checks boot devices per the boot order configured in BIOS setup. If this order gets changed accidentally or improperly, it can prevent the system from detecting the hard drive or SSD with the OS installed.

For example, if the boot order was changed to check for a non-existent USB drive first, the BIOS would not proceed to check the actual hard drive with Windows or Linux on it.

Accessing BIOS settings to correct or reset the boot order will resolve this in most cases. The key to press to enter BIOS setup is usually F2, F10 or Del during boot up.

2. Hard Drive Failure

If the hard drive itself containing the operating system and boot loader fails or crashes, it will no longer be detected as a valid boot device.

Hard drive failure due to hardware malfunction, corrupted sectors, or accidental deletion of critical OS files can lead to the “insert boot media” message in this case.

Potential solutions include replacing the faulty hard drive if hardware damage is suspected. Or attempting OS recovery or reinstallation on the existing drive may resolve software issues.

3. Loose Hard Drive Connections

Loose cables between the hard drive and motherboard can also be a cause for the BIOS not detecting the hard drive at boot.

Reseating SATA data and power cables properly for the hard drive will allow the BIOS to recognize the drive on next reboot in such cases. You may need to open the PC case for this.

4. Corrupted Master Boot Record (MBR)

The Master Boot Record (MBR) is a special boot sector at the start of the hard drive that contains information on disk partitions and the boot loader.

If this gets corrupted or damaged, the BIOS will no longer see a valid bootable hard drive attached.

Corruption can happen due to sudden power loss, virus infection, or incorrect edits to the MBR. Repairing the MBR may allow normal booting to return.

5. Damaged System Files

Critical operating system files like the bootloader and kernel can also get damaged sometimes leading to boot issues.

This is often seen after security updates or OS upgrades that did not complete properly. Startup repair using Windows recovery tools may help restore damaged system files.

6. Boot Partition Accidentally Deleted

Having a separate small boot partition is common for installing Linux alongside Windows in dual-boot setups.

If this partition is mistakenly deleted or its drive letter changed, the Linux boot loader files will be missing – resulting in the “insert boot media” message.

Correcting the partition table and filesystem from a Live USB is needed to recreate the deleted boot partition in this case.

How to Fix the “Insert Boot Media” Error

Here are some steps to try and fix the error when your PC says it cannot detect a valid boot device at startup:

Check Basic Connections and Power

First, check that the hard drive is properly connected via its SATA cable to the motherboard. Also verify the power cable from the PSU is firmly attached to the drive.

Press power button for 5 seconds to discharge residual flea power and restart the computer. The BIOS may detect the drive properly on the next attempt.

Boot into BIOS Setup Utility

Enter the BIOS setup screen on reboot by pressing the correct function key for your computer brand. This is usually F2, F10 or Del during the manufacturer splash screen.

In BIOS settings, check that:

  • The hard drive with OS is listed under boot options.
  • It is in the first boot position in the boot order.
  • If separate boot partitions exist, they are also included in the boot order.

Enable any disabled drives and rearrange order as needed so the OS drive is first priority. Save changes and exit BIOS.

Connect Boot Media as Temporary Startup

If the hard drive itself seems to be the issue, connect a different bootable device like:

  • A Windows recovery drive or installation DVD/USB
  • Linux live USB or live DVD
  • External drive with bootable OS backup

Set this device as first boot device in BIOS boot menu. The PC should detect it on reboot and boot into recovery environment.

Run Startup Repair for Windows

If you booted a Windows recovery disk/drive, go to Troubleshooting > Advanced Options > Startup Repair.

This will check system files and attempt to automatically fix issues so Windows boots properly from the hard drive again.

Rebuild Master Boot Record (MBR)

Using recovery tools from the Windows DVD or a bootable USB, you can rebuild or repair the damaged MBR data.

The bootrec command can be used for this:

bootrec /FixMbr
bootrec /FixBoot
bootrec /ScanOs
bootrec /RebuildBcd

After this, remove the recovery disk and restart the PC to check if Windows boots normally.

Reinstall or Refresh Windows

If startup repair did not resolve the problem, you may need to reinstall Windows completely or do a refresh install that preserves your data and settings.

First backup data externally just in case. Then boot from the Windows installer media again to access recovery options.

Choose Refresh or Reset options if available. Else, deleting all partitions and doing a clean reinstall of Windows may be required.

Fix Corrupted Files in Linux

For Linux systems, a live USB can be used to boot into a recovery environment and fix issues:

  • Run fsck command to check and repair disk errors
  • Reinstall GRUB boot loader
  • Chroot into installed OS partition to restore/reinstall damaged packages

Using boot-repair tools is also helpful for restoring Linux boot issues.

Remove Peripheral Devices Temporarily

Sometimes other attached devices like scanners, webcams etc can confuse the boot process leading to potential conflicts.

Unplugging all peripheral devices except the keyboard, mouse and monitor can help isolate such an issue during boot. Reconnect devices after system starts normally.

Preventing the “Insert Boot Media” Error

While boot issues can happen unexpectedly, there are ways to minimize the chances of seeing this error when starting your computer:

  • Keep BIOS settings untouched, especially boot order.
  • Connect hard drives and SSDs to stable power sources.
  • Install OS updates properly and allow them to complete.
  • Use an UPS to prevent sudden power loss during writes.
  • Do not interrupt the boot process forcefully with power reset.
  • Scan drives periodically for errors and bad sectors.
  • Ensure proper cable connections for hard drives and SSDs.

Proper shutdown and handling of drives ensures maximum boot stability and prevents unexpected issues down the road.

Recovering Data from Unbootable Drives

If the hard drive with your important data will not boot no matter what, do not panic yet! The data is likely still intact and recoverable.

You can connect the unbootable drive externally using a SATA-to-USB adapter or enclosure. Then access it from another working PC and copy your files to external storage.

On Linux, a live USB can also manually mount internal drives to recover data before reformatting or fixing them.

Advanced users can also try cloning the drive sector-by-sector to image the entire contents before attempting drive repairs.

Conclusion

The “insert boot media” error essentially indicates the BIOS cannot find a valid bootable device during system startup. Resolving it requires verifying OS drive connections, fixing boot order in BIOS, repairing boot sectors, or reinstalling the operating system as needed.

With disk failures being a common culprit, it is critical to maintain regular backups of your data as a precaution. This will ensure minimal disruption to your workflow when such boot problems occur.

While the error may seem cryptic and worrisome at first, it is usually resolvable once the underlying cause is identified. Using the appropriate troubleshooting steps can help get your PC booting again quickly.