Saturday, November 29, 2014

Creating Windows Recovery Partition with AOMEI OneKey

Preconditions
 Installed Windows
 System Reserved partition is available

Steps
1. Install AOMEI OneKey backup
2. Run it and create recovery partition
3. Add a letter to the system reserved partition (one created during windows installation) - for example X:
4. Run command prompt as administrator and type the following commands:


bcdboot c:\windows /s x:
bcdedit /set {3940e26a-75e7-11e4-bfda-88dcdc879809} device partition=X:

where {3940e26a-75e7-11e4-bfda-88dcdc879809} is identifier of AOMEI entry (you can check it with bcdedit without parameters)

5. Move okldr.mbr, okcf.lst and okldr from C:'s root to X:'s
6. Remove letter from system reserved partition
7. (Optional) Test recovery

Note: When you run OneKey to recover, it will restore boot manager to the state when it was run i.e. AOMEI boot entry will point to C: - just repeat steps 3-6.

This covers the case when OS partition is formatted or essential files are deleted which in standard way won't work because AOMEI boot files are on OS partition..