Unable to boot into cloned drive after formatting old drive
I have an HP Omen laptop with a standard SATA hard drive and a recently purchased M.2 PCIe SSD.
I cloned the SATA drive onto the M2, but had trouble cloning all partitions. I have the System partition, Reserved and the Primary.
After cloning, I attempted to boot into the new hard drive. I had some problems setting the BIOS to automatically boot into my new hard drive. It would load the old one or give me "Reboot and Select proper Boot device or Insert Boot Media in selected Boot device and press a key" if I manually went directly to it.
I finally was able to get it to work, by going into change the boot order and then:
Boot From EFIFile
Chose my PCIe HD
EFI
Boot
BootX64.efi
This worked without problem and booted into my M2 (fast!). I wasn't happy that it didnt boot directly to it though, so based on a comment that I read, I cleaned my old hard drive, removing everything from it. So now my new drive is the only one with anything. (I know this was stupid...)
After doing that, I not longer can use the steps above to get into the M2 SSD. The computer takes me straight to recovery, but I don't have a recovery partition anymore.
I made a Win 10 install USB and am about ready to do a full re-install of WIndows 10, but I was hoping someone may have some options to save my cloned drive. Since I have the Bootable USB, I now have access to a CMD prompt. Is there anything I can do to tell the system that it should boot to that hard drive?
Please note, my computer was using UEFI, but I have since tried setting the BIOS to legacy. I have tried both ways. My new M2 SSD was formatted as GPT. I don't know much about this and assume this may be related to my problem.
Solution 1:
The problem was with my EFI partition.
As Fleet Command mentioned, cloning the hard drive was not enough. I attempted to mark the system partition as active, but that didn't help either since my new hard drive was originally partitioned as GPT, not MBR.
To fix the issue I used BillyGun's answer from here: https://answers.microsoft.com/en-us/windows/forum/windows_10-performance/windows-10-bootrec-fixboot-access-is-denied/747c4180-7ff3-4bc2-b6cc-81e572d546df
Windows 10 Installation Media:
Insert the Media (DVD/USB) in your PC and restart.
Boot from the media.
Select Repair Your Computer.
Select Troubleshoot.
Choose Command Prompt from the menu:
Type in the command:
Diskpart
Type in the command:
List disk
(Note which disk is your Boot drive number mine is 0)
Type in the command:
Sel disk 0
Type in the command:
List vol
(Note which volume is the EFI partition mine is 4)
Type in the command:
Sel vol 4
Type in the command:
assign letter=V:
Type in the command:
Exit
Type in the command:
V:
After you have assigned a drive letter Using Diskpart You can format the EFI partition:
Example: if you assigned a letter V to the partition the command would be:
format V: /FS:FAT32
After the format you need to recreate the EFI directory structure with the command:
MD \EFI\Microsoft\Boot
Then change to the Boot directory with:
cd /d V:\EFI\Microsoft\Boot\
Then run:
bootrec /FixBoot
Finally run:
bcdboot c:\Windows /l en-us /s V: /f All
Type in the command:
bcdboot C:\windows /s V: /f UEFI
(This replaces the above crossed out lines and works in Win 10 1709)
I actually ended up skipping formatting and recreating the EFI structure since I had the partition there already.
Solution 2:
Cloning a hard disk alone isn't enough; you must mark the new System partition as active and then reconcile the boot configuration data (BCD). In BCD, the address of the partition from which to boot is given in the form of the SSD's unique ID, plus partition ID. If you don't reconcile, the boot loader will still look for the old hard disk.
Just for the record, the reconciling can be done by a utility called "Bootice". But you are well past that stage. Try this:
- Procure a USB flash drive with Windows Setup flashed into it. Microsoft Media Creator will help you build one, using another computer.
- Plug it in and boot from it.
- Confirm your language, locale and keyboard layout and click on "Next".
- Choose "Repair your computer" from the bottom left.
- Choose "Troubleshoot".
- Choose "Startup repair".
- Wait for the startup repair to complete.
If it didn't help, then I am afraid solving your problem is going to need you providing additional info.