EDIT:
Since you are unable to format it from the Windows installation disk, do it using GParted Live CD.: (Detailed instructions are provided at the GParted Live Manual website).
Select an unmounted partition. Choose: Partition → Delete. The application displays the delete partition operation in the Pending Operations pane.
Now format it. Choose: Partition → Format to, and select a type of file system from the list eg FAT32/NTFS.
If even this doesn't work then go for Western Digital Diagnostics Disk- The usage of this can also be achieved using the dd command in a terminal.
The error code 0x80070057 appears because the partition that is reserved for system is damaged
To resolve this problem, delete the existing partitions, create a new partition, and continue with the formatting.
• Start the installation process.
• Select all appropriate settings then click Install now.
• Click Custom (Advanced).
• Select Disk 0 partition 1, and click Delete.
• Select Disk 0 partition 2, and click Delete.
• Click New.
• Define the size of the disk, and then click Apply.
Note: the size of the default value is the maximum size of the disk.
• Select Disk 0 partition 2, and then click Formatting.
• Formatting should complete correctly. Click Next to continue.
You can now complete the installation without problems.
Similar superuser question.
The easiest way would be to open a command prompt, either in Automatic Repair, or in WinPE. Assign drive letters to the System partition (e.g. D:) and to the OS/Windows partition assign the letter (C:). Then used BOOTREC to rebuild the BCD store.
- DISKPART
- lis dis (identify OS harddrive)
- sel dis 0 lis par (identify above System and OS partitions)
- sel par 1 (e.g. System)
- assign letter=D
- sel par 3 (e.g. OS/Windows)
- assign letter=C
- exit
then
- BOOTREC /FIXBOOT (should say "Successful")
- BOOTREC /REBUILDBCD (Should find C:\WINDOWS - choose Y option to add to the boot store)
Reboot the system and hopefully it should start.
Best Answer
I adapted @merle's answer by using the approach documented on MSDN.
It shows drives:
Sample output:
PowerShell script: