Situation
I cloned the contents of my old (boot/OS) SSD to a new SSD. I then attempted (and failed) to edit the contents of the new SSD, and this has made me unable to boot from either drive.
Background
I have an old 256GB SSD (Windows 10) which serves as my main boot/OS drive. I wanted to replace this with a newer 1TB NVMe SSD. I used clonezilla to clone the contents of my old SSD to the new one (disk-disk, device-device, all options default). I did this successfully and was able to boot using the new SSD. After confirming that I could boot from the new SSD, I physically unplugged the old SSD. I also used GParted to extend the OS partition on the new SSD, as the size of the partition was small due to the smaller capacity of the old SSD. This was also successful.
At this point (being the greedy and stupid person I am) I booted into GParted again to delete one of the Windows recovery partitions that had transferred over from my old SSD to the new one. The size of this partition was 450MB, and windows partition manager said it was empty, so I thought why not. I used GParted to delete this partition and also extend the OS partition to encompass the freed space. Unfortunately, GParted threw an error (I forgot the exact error, but I think it had something to do with being unable to extend the OS partition).
This caused the new drive to be unbootable, with the error: The application or operating system could not be loaded because a required file is missing or contains errors. File: \windows\system32\winload.efi.
Assessment / Attempts to fix
My first reaction was to check the boot order in BIOS, and set new SSD's windows boot manager as the first device. This didn't fix the problem.
I then unplugged the new SSD and re-connected my old SSD. My naive reasoning was that, since I had done nothing to the old SSD except clone its contents, it would boot fine. This also threw an error, though a different one: A required drive isn't connected or cannot be accessed
My very general assessment of the situation is that it's "not too bad". Though I have not checked, I don't think the contents of my old SSD have been affected, meaning I should still have all the files on there. The new SSD I can just reformat and retry the cloning process again. There is also a HDD which has been connected the whole time, with some family photos on it (but no OS on it, so everything on there should be accessible using another device or fresh install).
Recommendations
I have minimal knowledge of the processes and files involved in Windows boot, so I'm not really sure what to do next..
- Which drive is easier to fix?
- What are the steps to troubleshooting and fixing boot drives with these errors, and in this context?
Update
Things I have tried:
- Win10 Installation media > Startup Repair. I get the error Startup repair could not repair your PC
- Repeating the clone from old SSD to new SSD (@John's suggestion). Booting from the new SSD now gives me the same error as booting from old: A required drive isn't connected or cannot be accessed
This leads me to believe the old SSD, which I thought had been untouched, is defective as well. I'm not sure what to do now
Update 2
Tried @dodrg's manual repair suggestion, and the computer now boots as normal! While using shell on live Windows, I was able to navigate my system drive using cd and dir, suggesting that only the files needed for booting were corrupted (not anything else). Thanks to everyone who gave me guidance and tips.