Issue
Windows begins loading and then stops with INACCESSIBLE_BOOT_DEVICE because the firmware's SATA controller mode no longer matches the storage-driver path Windows was prepared to use. This can affect any SATA system disk—hard disk or solid-state drive. The media type is incidental; the controller presentation and boot-critical driver are what changed.
This writeup uses controller mode to mean a setting such as AHCI, IDE/compatibility, or a vendor RAID mode. It does not mean changing the computer between UEFI and legacy BIOS boot. UEFI versus BIOS is separately detected from the disk and system-partition layout when boot repair depends on it.
Searchable Windows error codes and exact messages
| Displayed identifier | Windows name or exact message | When it can apply |
|---|---|---|
0x0000007B | INACCESSIBLE_BOOT_DEVICE | Primary stop code. Windows lost access to the system partition during startup. |
0xc000000e | STATUS_NO_SUCH_DEVICE / A required device isn't connected or can't be accessed | Boot Manager cannot access the referenced device after a controller or storage-path change. |
0xc0000185 | STATUS_IO_DEVICE_ERROR | The device is detected but the changed or unstable path returns an I/O error. |
0xc0000225 | STATUS_NOT_FOUND / A required device isn't connected or can't be accessed | The device or boot reference cannot be resolved; this may be adjacent BCD damage rather than the controller mode itself. |
Event ID 129 | Reset to device, \Device\RaidPort... was issued | A running or intermittently booting system timed out through a storage miniport. RaidPort in the event name does not prove a user-configured RAID array. |
Event ID 153 | The IO operation at logical block address ... was retried | The storage path retried an I/O operation. Investigate the path and hardware if it continues after restoring the correct mode. |
Event ID 11 or 15 | Controller error / device not ready | Supports a controller, connection, power, or device problem; it does not by itself prove the firmware mode changed. |
Search the complete stop code plus the motherboard or computer model and the exact controller setting that changed. Do not treat 0x7B alone as proof of an AHCI problem; missing boot-start drivers, corrupt storage filters, cloning, and failing hardware can produce the same code.
Applies when
Use this procedure when the Windows disk remains consistently visible and the failure began immediately after a firmware reset, BIOS update, CMOS reset, motherboard setting change, or intentional change among AHCI, compatibility, and vendor controller modes. The strongest confirmation is that restoring the recorded previous mode makes Windows boot again.
Does not apply when
Do not use the migration branch when the previous mode is unknown, the disk disappears, diagnostics report a disk fault, or the machine uses a RAID array, Intel VMD/IRST, enterprise HBA, SCSI, or another specialist storage stack. Restore the known working setting if possible and use the device or platform documentation. Do not use this procedure merely because the boot disk is an SSD.
Information that may remain unknown
The exact Windows build, disk media type, and reason the firmware setting changed may remain unknown. The current setting, the last known working setting, whether the disk is consistently detected, and whether RAID/VMD is involved may not remain unknown.
Requirements
- Access to firmware setup and the ability to record settings before changing them
- Windows Recovery Environment or installation media
- A consistently detected Windows disk
- Administrator access if Windows can start under the old mode
- A BCD backup before setting a persistent Safe Mode option
- The platform's storage driver available if this is an intentional supported migration
Starting position
First record the current controller setting with a photograph. If the prior setting is known, restore that exact setting before attempting Windows repairs. Do not rotate through every available mode to see what happens.
Confirm the diagnosis
-
Record the stop code and all four parameters if displayed.
-
In firmware setup, confirm that the correct physical disk is visible with the expected model and capacity.
-
Record, without changing, the SATA/controller setting. Common labels include SATA Mode, Configure SATA as, Storage Controller Mode, AHCI, IDE, Compatibility, RAID, and vendor-specific VMD/IRST controls.
-
If the last working setting is known, select it, save, and restart once.
-
Interpret the result:
- If Windows starts under the old mode and fails with
0x7Bunder the new mode, the diagnosis is confirmed. - If neither mode starts and the disk is readable in WinRE, inspect BCD and the file system; another boot failure may coexist.
- If the disk disappears or changes identity, stop. Firmware mode is not a repair for an unstable device, connector, slot, cable, or power path.
- If Windows starts under the old mode and fails with
-
If Windows starts under the old mode, preserve BCD from an elevated Command Prompt:
md C:\BootRepairBackup bcdedit /export C:\BootRepairBackup\BCD-before-controller-change -
Confirm the current loader before modifying it:
bcdedit /enum {current} /v
Resolution steps
Branch A — The change was accidental
-
Leave the controller in the last known working mode.
-
Start Windows twice.
-
Check the System event log for storage events
11,15,129, and153during the failed and successful starts. -
If no further errors occur, document the required firmware setting. No registry edit, BCD rebuild, or storage-driver replacement is necessary.
-
If a firmware update or CMOS reset repeatedly changes the setting, update the firmware configuration deliberately and save a firmware profile if the platform supports one.
Branch B — Intentionally migrate a non-RAID SATA installation to AHCI
Use this branch only when the old mode still boots, the target mode is standard AHCI, no RAID array or VMD/IRST dependency exists, and the hardware vendor supports the change.
-
Boot Windows under the known working controller mode.
-
Create the BCD backup shown in section 7.
-
From an elevated Command Prompt, force the next Windows start into minimal Safe Mode:
bcdedit /set {current} safeboot minimal -
Verify that
safebootnow appears:bcdedit /enum {current} -
Restart directly into firmware setup. Do not let Windows complete another normal start under the old mode.
-
Change only the intended SATA controller setting to AHCI. Do not change UEFI/legacy boot mode, Secure Boot keys, partition settings, or boot-disk order at the same time.
-
Save and start Windows. It should enter Safe Mode and enumerate the AHCI path.
-
In Safe Mode, open an elevated Command Prompt and remove the persistent Safe Mode option:
bcdedit /deletevalue {current} safeboot -
Confirm that
safebootis absent:bcdedit /enum {current} -
Restart normally twice.
-
Open Device Manager and confirm that the storage controller has no warning icon. Use the computer or motherboard vendor's supported driver when Windows identifies a device problem; do not install a random storage package based only on a similar controller name.
Expected results and branches
- Restoring the old mode boots Windows: The mode mismatch is resolved. Leave it there unless a supported migration has a concrete benefit.
- Safe Mode starts after changing to AHCI and normal mode then starts: Windows successfully enumerated the new controller path.
- Safe Mode also stops with
0x7B: Immediately restore the old mode. The required target driver may be absent or the platform may use a vendor storage stack. - The code changes to
0xc000000f,0xc0000225, or0xc0000098: Inspect the boot store and detected system partition. Do not assume the new code is still a controller problem. - Storage events continue after returning to the working mode: Investigate disk health, cabling, slot, power, firmware, and the controller driver.
- RAID, VMD, or IRST is discovered: Stop this general procedure. Retain the working setting and move to the specialist branch in the catalog.
Do not do this
- Do not cycle through controller modes without recording the original.
- Do not use
storahciregistry edits copied from an unrelated guide as the first repair. - Do not switch UEFI/legacy boot mode while changing the SATA mode.
- Do not rebuild BCD merely because the stop code is
0x7B. - Do not disable VMD/IRST on a system that depends on it without a prepared migration and recovery path.
- Do not call this an SSD-specific failure; SATA HDDs are affected the same way.
Rollback
If the AHCI migration fails, return firmware to the recorded working controller mode. If Windows then enters Safe Mode because the BCD option remains, sign in and run:
bcdedit /deletevalue {current} safeboot
The controller migration changes only the safeboot value; deleting that value is the preferred rollback. If Windows boots under the restored old mode but its BCD store was separately damaged, import the saved store from an elevated prompt in that running Windows installation:
bcdedit /import C:\BootRepairBackup\BCD-before-controller-change
Verification
- Windows starts normally twice under the intended controller mode.
- The system disk remains present with the expected model and capacity.
bcdedit /enum {current}contains no unintendedsafebootvalue.- Device Manager shows no storage-controller problem.
- System event logs show no recurring controller resets or I/O retries.
- A cold start, not just Restart, also succeeds.
Confidence and stop conditions
Confidence is high when the failure can be switched on and off solely by selecting the old versus new controller setting. Confidence is moderate when timing suggests a firmware reset but the old setting is not documented. Stop if the disk disappears, the prior mode is unknown, Safe Mode still produces 0x7B, a RAID/VMD dependency appears, or hardware diagnostics fail.