To resolve this issue:
Caution: Make a backup of the vmdk files before performing this procedure.
- Boot the virtual machine from the Windows Server 2008 R2 media:
- Select Repair your computer
- Select Command Prompt
- Clear the wrong states of the volume and assign the drive letter C: to the volume.
From the command prompt, run:
diskpart
list volume
select volume #
att vol clear readonly
att vol clear hidden
att vol clear nodefaultdriveletter
assign letter=c:
exit
- Edit the bcd entries to boot from C:.
- Execute these commands:
bcdedit /set {default} device partition=c:
bcdedit /set {default} osdevice partition=c:
bcdedit /set {bootmgr} device partition=c :
Note: Replace {default} and {bootmgr} with the UUID of the disk and {} required in the command. To determine the UUID of the disk, run the command:
mountvol
If the issue persists, locate X:\Sources\Recovery, then run StartRep.exe. StartRep.exe is an automated startup repair utility that corrects boot environment values.
If the volume that has gone readonly is not the system volume, you can resolve without booting from the install media:
- Log in to the virtual machine and open a command prompt.
- From the command prompt, run:
diskpart
list volume
select volume #
att vol clear readonly
exit
Workaround:
cd X:\Sources\Recovery
Type command 'startrep'