6) Choose a recovery tool: Click the ‘Command Prompt’ option to open a command prompt window.
Note: For the Windows 7 Installation DVD the command prompt will be X:\Sources>
Enter the following the ‘Diskpart’ commands in the order listed below:
(Press ‘Enter’ and wait for the ‘DISKPART’ command line utility to start).
DISKPART>list disk (This should list the one and only remaining hard disk. Typically Disk 0)
DISKPART> select disk 0
(Sets the focus to Disk 0)
DISKPART> detail disk
(This will list the volumes/partitions on the drive. If you formatted the drive with more than 1 partition, typically “Volume 1” contains the Windows operating system. If you labeled the partitions with meaningful names the Windows partition should be easy to spot either by label name or partition size.)
Assuming volume #1 contains the Windows Operating System; execute the next command as shown below.
DISKPART>select volume 1 (Sets the focus to Volume 1)
DISKPART>active (Sets volume 1 as the ‘Active’ partition) This is a required step since the original drive which you removed, replaced or reformatted originally contained both the hidden ‘System’ partition and the Windows 7 partition was marked ‘Active’.
(Returns you back to the command prompt X:\Sources> )
At the command prompt enter the following 3 ‘bootrec.exe’ commands in the following order:
Note: RebuildBcd will scan your hard drive for existing Windows installations and may take more than a few seconds.
If a Windows 7 installation is found you will be prompted to: “Add installation to boot list?”. Type the letter Y (Yes) and press the ‘Enter’ key.