Skip to content

Commit 24d6de7

Browse files
committed
CI 115925 - Created file, images, TOC entry
1 parent 4192197 commit 24d6de7

File tree

8 files changed

+156
-4
lines changed

8 files changed

+156
-4
lines changed
9.13 KB
Loading
23.5 KB
Loading
19 KB
Loading
18 KB
Loading
20.8 KB
Loading
20.8 KB
Loading

articles/virtual-machines/troubleshooting/toc.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,20 @@
7070
href: boot-diagnostics.md
7171
- name: BitLocker errors
7272
href: troubleshoot-bitlocker-boot-error.md
73-
- name: Checking file system errors
74-
href: troubleshoot-check-disk-boot-error.md
7573
- name: Blue screen errors
7674
href: troubleshoot-common-blue-screen-error.md
77-
- name: VM startup is stuck
78-
href: troubleshoot-vm-boot-configure-update.md
75+
- name: Checking file system errors
76+
href: troubleshoot-check-disk-boot-error.md
7977
- name: Critical service failed
8078
href: troubleshoot-critical-service-failed-boot-error.md
79+
- name: Not a bootable disk
80+
href: troubleshoot-guide-not-a-bootable-disk.md
8181
- name: Reboot loop
8282
href: troubleshoot-reboot-loop.md
8383
- name: Stuck at Windows update
8484
href: troubleshoot-stuck-updating-boot-error.md
85+
- name: VM startup is stuck
86+
href: troubleshoot-vm-boot-configure-update.md
8587
- name: Cannot connect to my VM
8688
items:
8789
- name: RDP
Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
---
2+
title: Boot Error – This is not a Bootable Disk | Microsoft Docs
3+
description: This article provides steps to resolve issues where the disk isn't bootable in an Azure Virtual Machine
4+
services: virtual-machines-windows
5+
documentationcenter: ''
6+
author: v-miegge
7+
manager: dcscontentpm
8+
editor: ''
9+
tags: azure-resource-manager
10+
11+
ms.assetid: 5d6db4e3-c2f5-40c7-afea-54edf745f5eb
12+
ms.service: virtual-machines-windows
13+
ms.workload: infrastructure-services
14+
ms.tgt_pltfrm: na
15+
16+
ms.topic: troubleshooting
17+
ms.date: 03/25/2020
18+
ms.author: v-mibufo
19+
20+
---
21+
22+
# Boot Error – This is not a Bootable Disk
23+
24+
This article provides steps to resolve issues where the disk isn't bootable in an Azure Virtual Machine (VM).
25+
26+
## Symptoms
27+
28+
When you use [Boot diagnostics](https://docs.microsoft.com/azure/virtual-machines/troubleshooting/boot-diagnostics) to view the screenshot of the VM, you will see that the screenshot displays a prompt with the message 'This is not a bootable disk. Please insert a bootable floppy and press any key to try again...'.
29+
30+
Figure 1
31+
32+
![Figure 1 shows the message *"This is not a bootable disk. Please insert a bootable floppy and press any key to try again..."*](media/troubleshoot-guide-not-a-bootable-disk/1.jpg)
33+
34+
## Cause
35+
36+
If you encounter this error message, it means that the OS boot process could not locate an active system partition. Alternatively, it could mean that there is a missing reference in the Boot Configuration Data (BCD) store, which is preventing it from locating the Windows partition.
37+
38+
## Solution
39+
40+
### Process Overview
41+
42+
1. Create and Access a Repair VM
43+
2. Set Partition Status to Active
44+
3. Fix the Disk Partition
45+
4. **Recommended**: Before you rebuild the VM, enable serial console and memory dump collection
46+
5. Rebuild the Original VM
47+
48+
> [!NOTE]
49+
> When encountering this boot error, the Guest OS is not operational. You will be troubleshooting in offline mode to resolve this issue.
50+
51+
### Create and Access a Repair VM
52+
53+
1. Use steps 1-3 of the [VM Repair Commands](https://docs.microsoft.com/azure/virtual-machines/troubleshooting/repair-windows-vm-using-azure-virtual-machine-repair-commands) to prepare a Repair VM.
54+
2. Using Remote Desktop Connection connect to the Repair VM.
55+
56+
### Set Partition Status to Active
57+
58+
Generation 1 VMs should first verify that the OS partition which holds the BCD store is marked as *active*. If you have a Generation 2 VM, skip ahead to [Fix the Disk Partition](https://docs.microsoft.com/azure/virtual-machines/troubleshooting/repair-windows-vm-using-azure-virtual-machine-repair-commands), as the *Status* flag was deprecated in the later generation.
59+
60+
1. Open an elevated command prompt *(cmd.exe)*.
61+
2. Enter *diskpart* to launch the DISKPART tool.
62+
3. Enter *list disk* to list the disks on the system and identify the attached OS VHD.
63+
4. Once the attached OS VHD is located, enter *sel disk #* to select the disk. See Figure 2 for example where Disk 1 is the attached OS VHD.
64+
65+
Figure 2
66+
67+
![Figure 2 shows the *diskpart* window showing the output of list disk command, Disk 0 and Disk 1 displayed in the table. Also shows output of the sel disk 1 command, Disk 1 is the selected disk](media/troubleshoot-guide-not-a-bootable-disk/2.jpg)
68+
69+
5. Once the disk is selected, enter *list partition* to list the partitions of the selected disk
70+
6. Once the boot partition is identified, enter *sel partition #* to select the partition. Usually the boot partition will be around 350 MB in size. See Figure 3 for example where Partition 1 is the boot partition.
71+
72+
Figure 3
73+
74+
![Figure 3 shows the diskpart window with the output of the *list partition* command. Partition 1 and Partition 2 are displayed in the table. It also shows the output of the *sel partition 1* command, when Partition 1 is the selected disk.](media/troubleshoot-guide-not-a-bootable-disk/3.jpg)
75+
76+
7. Enter 'detail partition' to check the status of the partition. See Figure 4 for example where the partition is *Active: No* or Figure 5 for example where the partition is 'Active: Yes'.
77+
78+
Figure 4
79+
80+
![Figure 4 shows the diskpart window with the output of the *detail partition* command, when Partition 1 is set to *Active: No*](media/troubleshoot-guide-not-a-bootable-disk/4.jpg)
81+
82+
Figure 5
83+
84+
![Figure 5 shows the diskpart window with the output of the *detail partition* command, when Partition 1 is set to *Active: Yes*.](media/troubleshoot-guide-not-a-bootable-disk/5.jpg)
85+
86+
8. If the partition is **Not Active**, enter *active* to change the *Active* flag.
87+
9. Check that the status change was done properly by typing *detail partition*.
88+
89+
Figure 6
90+
91+
![Figure 6 shows the diskpart window with the output of *detail partition* command, when Partition 1 is set to *Active: Yes*](media/troubleshoot-guide-not-a-bootable-disk/6.jpg)
92+
93+
10. Enter *exit* to close the DISKPART tool and save your configuration changes.
94+
95+
### Fix the Disk Partition
96+
97+
1. Open an elevated command prompt (cmd.exe).
98+
2. Use the following command to run *CHKDSK* on the disk(s) and perform error fixes:
99+
100+
`chkdsk <DRIVE LETTER>: /f`
101+
102+
Adding the '/f' command option will fix any errors on the disk. Make
103+
sure to replace <DRIVE LETTER> with the letter of the attached OS VHD.
104+
105+
### Recommended: Before you rebuild the VM, enable serial console and memory dump collection
106+
107+
To enable memory dump collection and Serial Console, run the following script:
108+
109+
1. Open an elevated command prompt session (Run as administrator).
110+
2. Run the following commands:
111+
112+
Enable Serial Console
113+
114+
`bcdedit /store <VOLUME LETTER WHERE THE BCD FOLDER IS>:\boot\bcd /ems {<BOOT LOADER IDENTIFIER>} ON`
115+
116+
`bcdedit /store <VOLUME LETTER WHERE THE BCD FOLDER IS>:\boot\bcd /emssettings EMSPORT:1 EMSBAUDRATE:115200`
117+
118+
3. Verify that the free space on the OS disk is as much as the memory size (RAM) on the VM.
119+
120+
If there's not enough space on the OS disk, you should change the location where the memory dump file will be created and refer that to any data disk attached to the VM that has enough free space. To change the location, replace "%SystemRoot%" with the drive letter (e.g. "F:") of the data disk in the below commands.
121+
122+
#### Suggested configuration to enable OS Dump
123+
124+
**Load Broken OS Disk**:
125+
126+
`REG LOAD HKLM\BROKENSYSTEM <VOLUME LETTER OF BROKEN OS DISK>:\windows\system32\config\SYSTEM`
127+
128+
**Enable on ControlSet001:**
129+
130+
`REG ADD "HKLM\BROKENSYSTEM\ControlSet001\Control\CrashControl" /v CrashDumpEnabled /t REG_DWORD /d 1 /f`
131+
132+
`REG ADD "HKLM\BROKENSYSTEM\ControlSet001\Control\CrashControl" /v DumpFile /t REG_EXPAND_SZ /d "%SystemRoot%\MEMORY.DMP" /f`
133+
134+
`REG ADD "HKLM\BROKENSYSTEM\ControlSet001\Control\CrashControl" /v NMICrashDump /t REG_DWORD /d 1 /f`
135+
136+
**Enable on ControlSet002:**
137+
138+
`REG ADD "HKLM\BROKENSYSTEM\ControlSet002\Control\CrashControl" /v CrashDumpEnabled /t REG_DWORD /d 1 /f`
139+
140+
`REG ADD "HKLM\BROKENSYSTEM\ControlSet002\Control\CrashControl" /v DumpFile /t REG_EXPAND_SZ /d "%SystemRoot%\MEMORY.DMP" /f`
141+
142+
`REG ADD "HKLM\BROKENSYSTEM\ControlSet002\Control\CrashControl" /v NMICrashDump /t REG_DWORD /d 1 /f`
143+
144+
**Unload Broken OS Disk:**
145+
146+
`REG UNLOAD HKLM\BROKENSYSTEM`
147+
148+
### Rebuild the Original VM
149+
150+
Use [step 5 of the VM Repair Commands](https://docs.microsoft.com/azure/virtual-machines/troubleshooting/repair-windows-vm-using-azure-virtual-machine-repair-commands#repair-process-example) to reassemble the VM.

0 commit comments

Comments
 (0)