Error Medic

HP Laptop Blue Screen (BSOD) Fix: Stop Codes, Causes & Step-by-Step Solutions

Fix HP laptop blue screen errors including INACCESSIBLE_BOOT_DEVICE, KERNEL_SECURITY_CHECK_FAILURE & more. Step-by-step commands & repair guide.

Last updated:
Last verified:
2,261 words
Key Takeaways
  • Most HP blue screen (BSOD) errors are caused by corrupt or incompatible drivers (bthport.sys, rtump64x64.sys, rtux64w10.sys), failed Windows updates, or failing hardware (RAM, SSD/HDD).
  • Stop codes like INACCESSIBLE_BOOT_DEVICE (0xC000034), KERNEL_SECURITY_CHECK_FAILURE, WDF_VIOLATION, UNMOUNTABLE_BOOT_VOLUME, and 0xC00021A each point to specific subsystems and require targeted fixes.
  • Quick fix sequence: boot into Safe Mode or WinRE, run 'sfc /scannow' and 'chkdsk /f /r', update or roll back drivers, then use HP's built-in Hardware Diagnostics (UEFI) to rule out physical hardware failure before attempting a full OS reset.
Fix Approaches Compared
MethodWhen to UseTimeRisk
Safe Mode + Driver RollbackRecent driver or Windows Update caused BSOD15-30 minLow
SFC & DISM System File RepairCorrupt system files, 0xC00021A, WDF_VIOLATION20-45 minLow
CHKDSK Bad Sector RepairUNMOUNTABLE_BOOT_VOLUME, INACCESSIBLE_BOOT_DEVICE30-120 minLow-Med
HP UEFI Hardware DiagnosticsSuspect failing RAM or SSD/HDD30-60 minNone
Windows Startup Repair (WinRE)HP blue screen automatic repair loop15-30 minLow
System RestoreBSOD started after a specific date/update20-40 minLow-Med
Driver Verifier (Identify Faulty Driver)Unknown driver causing intermittent BSOD1-24 hrsMed
Reset / Reinstall WindowsAll other methods failed, frequent crashes1-3 hrsHigh (data loss)

Understanding HP Blue Screen Errors (BSOD)

A Blue Screen of Death (BSOD) on an HP laptop, desktop, or all-in-one PC is Windows forcibly halting execution to prevent data corruption or hardware damage. Each crash produces a stop code — a hexadecimal or named identifier that pinpoints the failing subsystem. HP devices (Pavilion, Envy, Spectre, ProBook, EliteBook, Omen, ZBook, Stream, Victus, Notebook) are susceptible to BSODs from driver conflicts, firmware bugs, and aging hardware.

Common HP Stop Codes and Their Meanings

Stop Code Common Trigger
INACCESSIBLE_BOOT_DEVICE (0x0000007B) Corrupt boot partition, missing storage driver
KERNEL_SECURITY_CHECK_FAILURE Corrupt driver, bad RAM, malware
UNMOUNTABLE_BOOT_VOLUME File system corruption, dying SSD/HDD
WDF_VIOLATION Corrupt Windows Driver Framework file
SYSTEM_SERVICE_EXCEPTION Faulty driver (often antivirus or GPU)
0xC00021A Critical system process (winlogon.exe, csrss.exe) crash
bthport.sys BSOD Bluetooth driver crash
rtump64x64.sys / rtux64w10.sys BSOD Realtek Wi-Fi or USB driver crash

Step 1: Get Your HP Laptop to Boot — Breaking the Restart Loop

If your HP laptop keeps restarting with a blue screen, it may be stuck in an automatic repair loop. Use these entry points:

Option A — Boot into Safe Mode:

  1. Power off the laptop completely. Press the power button to start it, then immediately hold F8 (older systems) or interrupt startup 3 times to trigger Automatic Repair.
  2. In the Automatic Repair / Recovery Environment screen, select Advanced options > Troubleshoot > Advanced options > Startup Settings > Restart.
  3. Press 4 or F4 to boot into Safe Mode, or 5/F5 for Safe Mode with Networking.

Option B — Boot from HP Recovery or Windows USB:

  1. Create a Windows 11/10 bootable USB on another PC via the Microsoft Media Creation Tool.
  2. Insert the USB, power on the HP, and press Esc then F9 to open the Boot Device Menu.
  3. Select the USB drive and proceed to Windows Recovery Environment (WinRE).

Step 2: Identify the Exact Stop Code from Minidump Files

Windows saves crash details in minidump files at C:\Windows\Minidump\. Analyze them with WinDbg or the command line (see Code Block section). The stop code is also displayed on the blue screen itself — photograph it or note the QR code URL.

Example BSOD text you might see on an HP Envy or Pavilion:

Your PC ran into a problem and needs to restart.
Stop code: KERNEL_SECURITY_CHECK_FAILURE
Failed operation: rtux64w10.sys

Step 3: Fix by Stop Code Category

Fix A — Driver-Related BSODs (bthport.sys, rtump64x64.sys, rtux64w10.sys, WDF_VIOLATION)

These files are drivers. A corrupt or outdated version causes the crash.

  1. In Safe Mode, open Device Manager (right-click Start > Device Manager).
  2. For bthport.sys: Expand Bluetooth, right-click the Bluetooth adapter > Update driver or Uninstall device (reboot to reinstall).
  3. For rtux64w10.sys / rtump64x64.sys: Expand Network Adapters, locate the Realtek Wi-Fi adapter, right-click > Properties > Driver tab > Roll Back Driver if available, or Uninstall device. Download the latest driver from HP Support using your exact model.
  4. For WDF_VIOLATION: Run sfc /scannow and DISM (see code block). If it persists, the Windows Driver Framework is corrupt — a repair install or reset is needed.

Fix B — INACCESSIBLE_BOOT_DEVICE & UNMOUNTABLE_BOOT_VOLUME (HP Stop Code Inaccessible Boot Device)

These indicate Windows cannot read the boot partition — often after a Windows Update that swapped storage drivers.

  1. Boot from WinRE (Windows Recovery Environment).
  2. Select Troubleshoot > Advanced Options > Command Prompt.
  3. Run the following commands (see Code Block for full sequence):
    • bootrec /fixmbr — Repairs the Master Boot Record
    • bootrec /fixboot — Writes a new boot sector
    • bootrec /rebuildbcd — Rebuilds the Boot Configuration Data
    • chkdsk C: /f /r — Repairs file system errors and bad sectors
  4. If the issue persists, the NVMe/SATA storage driver may be missing. In WinRE Command Prompt, run: dism /image:C:\ /add-driver /driver:D:\Drivers\ /recurse (where D:\ is your USB with HP storage drivers)

Fix C — KERNEL_SECURITY_CHECK_FAILURE & HP Kernel Security Check Failure

This stop code often relates to bad RAM, corrupt drivers, or malware.

  1. Test RAM: Restart your HP and press F2 at the HP logo to enter UEFI Diagnostics. Run the Memory (RAM) test. Alternatively, use Windows Memory Diagnostic: press Win+R, type mdsched.exe, restart.
  2. Run SFC and DISM in an elevated Command Prompt (see Code Block).
  3. Check for malware: Boot into Safe Mode with Networking, download and run Malwarebytes.
  4. Roll back the most recent Windows Update: Settings > Windows Update > Update History > Uninstall Updates.

Fix D — 0xC00021A on HP Laptop

Stop code 0xC00021A means a critical user-mode process (winlogon.exe or csrss.exe) crashed. This is serious and usually means system file corruption.

  1. Boot to WinRE > Command Prompt.
  2. Run: dism /online /cleanup-image /restorehealth then sfc /scannow.
  3. If files cannot be repaired, perform a Repair Install (in-place upgrade) using the Windows ISO without losing data.

Fix E — HP Blue Screen After Login or HP Laptop Blue Screen at Startup

If the BSOD happens specifically after the login screen, a recently installed application or startup service is crashing the system:

  1. Boot into Safe Mode.
  2. Open MSConfig (Win+R > msconfig) > Services tab > check Hide all Microsoft services > Disable All, then reboot to normal mode to isolate the culprit.
  3. Re-enable services in groups to identify which one triggers the BSOD.

Fix F — HP Pavilion / HP Envy Blue Screen at Startup (Hardware Failure)

For HP Pavilion, HP Envy, HP EliteBook, HP ProBook, HP Omen, or HP ZBook units older than 3 years:

  1. Run HP PC Hardware Diagnostics UEFI: Press F2 at startup and select the full component test including SSD/HDD SMART test and memory test.
  2. If the SSD/HDD fails the SMART test, back up data immediately and replace the drive before reinstalling Windows.
  3. Reseat RAM sticks if accessible (some HP laptops allow bottom panel removal).

Step 4: Use HP's Built-in Recovery as Last Resort

If all software fixes fail:

  1. Back up all data to an external drive.
  2. Restart the HP laptop and press F11 at the HP logo to enter HP Recovery Manager.
  3. Choose Factory Reset — this reinstalls Windows from the HP recovery partition.
  4. Alternatively, perform a clean Windows install from USB media.

For HP printers (HP Envy 4520, HP OfficeJet 4650, HP OfficeJet Pro 7740, HP OfficeJet Pro 9015, HP Envy Photo 7155, HP Envy Photo 7855): A blue screen or flashing blue light is not a Windows BSOD — it indicates a firmware or hardware fault. Perform a factory reset on the printer: hold the Cancel button for 3 seconds while powered on, or use the printer's control panel menu to restore factory defaults. Update firmware via the HP Smart app.

Frequently Asked Questions

bash
# ============================================================
# HP LAPTOP BLUE SCREEN DIAGNOSTIC & REPAIR COMMANDS
# Run all commands in an elevated (Administrator) Command Prompt
# or from WinRE Command Prompt (boot from Windows USB > Repair)
# ============================================================

# --- STEP 1: Check and repair system files (run in normal mode or safe mode) ---
sfc /scannow

# --- STEP 2: DISM repair (fixes component store, required before SFC sometimes) ---
DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /RestoreHealth

# --- STEP 3: Check disk for bad sectors (C: = your system drive) ---
# Schedule for next reboot if drive is in use:
chkdsk C: /f /r /x

# --- STEP 4: Fix boot records (run from WinRE Command Prompt) ---
bootrec /fixmbr
bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcd

# --- STEP 5: Rebuild BCD if bootrec fails ---
bcdedit /export C:\BCD_Backup
attrib C:\boot\bcd -h -r -s
ren C:\boot\bcd bcd.old
bootrec /rebuildbcd

# --- STEP 6: Analyze minidump files with WinDbg (PowerShell helper) ---
# Install WinDbg from Microsoft Store or Windows SDK, then:
# windbg -y "srv*C:\Symbols*https://msdl.microsoft.com/download/symbols" -z "C:\Windows\Minidump\<dumpfile>.dmp"

# Quick PowerShell: list recent minidump files
Get-ChildItem -Path "C:\Windows\Minidump" -Filter "*.dmp" | Sort-Object LastWriteTime -Descending | Select-Object -First 10

# --- STEP 7: Read BSOD stop code from Event Log (PowerShell) ---
Get-WinEvent -LogName System | Where-Object { $_.Id -eq 41 -or $_.Id -eq 1001 } | Select-Object TimeCreated, Id, Message | Select-Object -First 10 | Format-List

# --- STEP 8: Roll back the last Windows Update (if BSOD started after update) ---
# List installed updates:
wmic qfe list brief /format:texttable
# Uninstall a specific update (replace KB number):
wusa /uninstall /kb:5034441 /quiet /norestart

# --- STEP 9: Identify faulty driver with Driver Verifier (use carefully — may cause BSOD) ---
# Enable verifier on all non-Microsoft drivers:
verifier /standard /all
# After identifying the driver, disable verifier:
verifier /reset

# --- STEP 10: Reset Windows (keeps personal files) from Command Prompt ---
# Only if all above steps fail:
systemreset --factoryreset
# For WinRE:
# Navigate to: Troubleshoot > Reset this PC > Keep my files

# --- BONUS: Bluetooth driver fix (bthport.sys BSOD) ---
# Remove Bluetooth driver via PowerShell:
pnputil /delete-driver bthport.inf /force
# Then reboot to let Windows reinstall a fresh copy.

# --- BONUS: Check RAM health (schedule Windows Memory Diagnostic) ---
mdsched.exe
# Or run HP UEFI Memory Test: press F2 at HP logo during boot
E

Error Medic Editorial

The Error Medic Editorial team is composed of senior DevOps engineers, SREs, and Windows systems specialists with 10+ years of experience diagnosing hardware and OS-level failures across enterprise and consumer environments. We specialize in translating cryptic stop codes and kernel panics into actionable, step-by-step repair guides tested on real hardware.

Sources

Related Articles in Hp

Explore More windows Guides