- Newest
- Most votes
- Most comments
I found the solution by following these instructions for going into DSRM but simply change to fix safe mode:
https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/common-issues.html
To boot an offline instance into DSRM
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
In the navigation pane, choose Instances.
Locate and select the affected instance. Choose Instance state, Stop instance.
Choose Launch instances and create a temporary instance in the same Availability Zone as the affected instance. Choose an instance type that uses a different version of Windows. For example, if your instance is Windows Server 2008, then choose a Windows Server 2008 R2 instance.
Important
If you do not create the instance in the same Availability Zone as the affected instance you will not be able to attach the root volume of the affected instance to the new instance.
In the navigation pane, choose Volumes.
Locate the root volume of the affected instance. Detach the volume and attach it to the temporary instance you created earlier. Attach it with the default device name (xvdf).
Use Remote Desktop to connect to the temporary instance, and then use the Disk Management utility to make the volume available for use.
Open a command prompt and run the following command. Replace D with the actual drive letter of the secondary volume you just attached:
bcdedit /store D:\Boot\BCD /set {default} safeboot dsrepair
In the Disk Management Utility, choose the drive you attached earlier, open the context (right-click) menu, and choose Offline.
In the EC2 console, detach the affected volume from the temporary instance and reattach it to your original instance with the device name /dev/sda1. You must specify this device name to designate the volume as a root volume.
Start the instance.
After the instance passes the health checks in the EC2 console, connect to the instance using Remote Desktop and verify that it boots into DSRM mode.
(Optional) Delete or stop the temporary instance you created in this procedure.
I changed the command to
bcdedit /store D:\Boot\BCD /deletevalue {default} safeboot
Saved my behind as I thought I lost the instance...
Miller
Relevant content
- asked 2 years ago
- asked 9 months ago
- asked 4 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 2 years ago