--- title: Advanced advice for Stop error 7B, Inaccessible_Boot_Device description: Learn how to troubleshoot Stop error 7B or Inaccessible_Boot_Device. This error might occur after some changes are made to the computer, ms.prod: w10 ms.mktglfcycl: ms.sitesec: library ms.topic: troubleshooting author: dansimp ms.localizationpriority: medium ms.author: dansimp ms.date: 12/11/2018 ms.reviewer: manager: dansimp --- # Advanced troubleshooting for Stop error 7B or Inaccessible_Boot_Device This article provides steps to troubleshoot **Stop error 7B: Inaccessible_Boot_Device**. This error might occur after some changes are made to the computer, or immediately after you deploy Windows on the computer. ## Causes of the Inaccessible_Boot_Device Stop error Any one of the following factors might cause the stop error: * Missing, corrupted, or misbehaving filter drivers that are related to the storage stack * File system corruption * Changes to the storage controller mode or settings in the BIOS * Using a different storage controller than the one that was used when Windows was installed * Moving the hard disk to a different computer that has a different controller * A faulty motherboard or storage controller, or faulty hardware * In unusual cases, the failure of the TrustedInstaller service to commit newly installed updates is because of component-based store corruptions * Corrupted files in the **Boot** partition (for example, corruption in the volume that's labeled **SYSTEM** when you run the `diskpart` > `list vol` command) ## Troubleshoot this error Start the computer in [Windows Recovery Mode (WinRE)](https://docs.microsoft.com/windows-hardware/manufacture/desktop/windows-recovery-environment--windows-re--technical-reference#span-identrypointsintowinrespanspan-identrypointsintowinrespanspan-identrypointsintowinrespanentry-points-into-winre). To do this, follow these steps. 1. Start the system by using [the installation media for the installed version of Windows](https://support.microsoft.com/help/15088). 2. On the **Install Windows** screen, select **Next** > **Repair your computer**. 3. On the **System Recovery Options** screen, select **Next** > **Command Prompt**. ### Verify that the boot disk is connected and accessible #### Step 1 At the WinRE Command prompt, run `diskpart`, and then run `list disk`. A list of the physical disks that are attached to the computer should be displayed and resemble the following display: ```console Disk ### Status Size Free Dyn Gpt -------- ------------- ------- ------- --- --- Disk 0 Online **size* GB 0 B * ``` If the computer uses a Unified Extensible Firmware Interface (UEFI) startup interface, there will be an asterisk () in the **GPT* column. If the computer uses a basic input/output system (BIOS) interface, there won't be an asterisk in the **Dyn** column. #### Step 2 If the `list disk` command lists the OS disks correctly, run the `list vol` command in `diskpart`. `list vol` generates an output that resembles the following display: ```console Volume ### Ltr Label Fs Type Size Status Info ---------- --- ----------- ----- ---------- ------- --------- -------- Volume 0 Windows RE NTFS Partition 499 MB Healthy Volume 1 C OSDisk NTFS Partition 222 GB Healthy Boot Volume 2 SYSTEM FAT32 Partition 499 MB Healthy System ``` >[!NOTE] >If the disk that contains the OS isn't listed in the output, you'll have to engage the OEM or virtualization manufacturer. ### Verify the integrity of Boot Configuration Database Check whether the Boot Configuration Database (BCD) has all the correct entries. To do this, run `bcdedit` at the WinRE command prompt. To verify the BCD entries: 1. Examine the **Windows Boot Manager** section that has the **{bootmgr}** identifier. Make sure that the **device** and **path** entries point to the correct device and boot loader file. If the computer is UEFI-based, here's example output: ```cmd device partition=\Device\HarddiskVolume2 path \EFI\Microsoft\Boot\bootmgfw.efi ``` If the machine is BIOS-based, here's example output: ```cmd Device partition=C: ``` >[!NOTE] >This output might not contain a path. 2. In the **Windows Boot Loader** that has the **{default}** identifier, make sure that **device**, **path**, **osdevice**, and **systemroot** point to the correct device or partition, winload file, OS partition or device, and OS folder. > [!NOTE] > If the computer is UEFI-based, the file path value that's specified in the **path** parameter of **{bootmgr}** and **{default}** contains an **.efi** extension.  If any of the information is wrong or missing, we recommend that you create a backup of the BCD store. To do this, run `bcdedit /export C:\temp\bcdbackup`. This command creates a backup in **C:\\temp\\** that's named **bcdbackup**. To restore the backup, run `bcdedit /import C:\temp\bcdbackup`. This command overwrites all BCD settings by using the settings in **bcdbackup**. After the backup completes, run the following command to make the changes:
bcdedit /set *{identifier}* option valueFor example, if the device under {default} is wrong or missing, run this command to set it: `bcdedit /set {default} device partition=C:` If you want to completely re-create the BCD, or if you get a message that states that "**The boot configuration data store could not be opened. The system could not find the file specified,** " run `bootrec /rebuildbcd`. If the BCD has the correct entries, check whether the **winload** and **bootmgr** entries exist in the correct location, which is in the specified path in the **bcdedit** command. By default, **bootmgr** in the BIOS partition is in the root of the **SYSTEM** partition. To see the file, run `Attrib -s -h -r`. If the files are missing, and you want to rebuild the boot files, follow these steps: 1. Copy all the contents under the **SYSTEM** partition to another location. Alternatively, you can use the command prompt to navigate to the OS drive, create a new folder, and then copy all the files and folders from the **SYSTEM** volume, like shown here: ```cmd D:\> Mkdir BootBackup R:\> Copy *.* D:\BootBackup ``` 2. If you're using Windows 10, or if you're troubleshooting by using a Windows 10 ISO at the Windows Pre-Installation Environment command prompt, you can use the **bcdboot** command to re-create the boot files, like shown here: ```cmd Bcdboot <**OSDrive* >:\windows /s <**SYSTEMdrive* >: /f ALL ``` For example, if we assign the `