Short answer:
Overall, this is a Windows problem, so I recommend asking about it on a Windows forum. A quick Google of your error message produced several hits, like this one. I recommend against trying to combine your ESPs, since that's almost certainly not the cause of the problem, and doing so may create new problems. A Boot Info listing (see below) may help in case the problem is Ubuntu-related, but it's most likely a Windows-specific problem without an Ubuntu solution.
Long answer:
Having two ESPs is perfectly legal, although there are some caveats. Most importantly, the Windows 7 installer will choke if there are two ESPs on the same disk. I don't know if it would become confused with two disks, each with its own ESP; and I don't know if this is a problem with more recent versions of Windows. I've never before heard of an already-installed Windows choking because a second disk has a new ESP. (I've installed Windows this way myself without problems.) All of this is to say that an attempt to combine your two ESPs is likely to be a wild goose chase, and may cause new problems itself....
In particular, if you decide to combine the two ESPs, then copying files from one to another is not sufficient; you'd need to create a new NVRAM entry for the copied boot loader with efibootmgr
(in Ubuntu), bcdedit
or EasyUEFI in Windows, or a similar tool in another OS.
I do have some other thoughts on your problem:
- How are you selecting to boot Windows? -- You say you can opt to boot Windows, but it's unclear how you're doing this. It's likely to be either the EFI's built-in boot manager (the same tool you probably used to boot the Ubuntu installer) or GRUB. If you're using the EFI boot manager, then the system is likely booting the same way it did before (but see the next point); but if you're using GRUB, it may be trying to boot Windows in a very different way. This might be the source of the problem. If so, a BootInfo output from Boot Repair might be helpful in diagnosing the issue. You can run the Boot Repair utility and select the "Create BootInfo Summary" option. (DO NOT click "Recommended Repair," at least not yet!) When asked whether to upload the report, click "Yes," and then post the URL provided here.
- Possible loss of the EFI boot entry for Windows -- EFIs rely on entries in NVRAM to launch boot loaders. Some (but not all) EFIs automatically remove invalid entries, so when you unplugged the Windows disk and booted the computer to install Ubuntu, the original Windows entry may have been deleted. Some EFIs will also automatically add an entry for Windows when it's present, so when you plugged the disk back in, a new entry may have been created -- but this new entry may not be an exact match to the original one. Likewise, Windows usually creates an entry using the fallback filename (
EFI/BOOT/bootx64.efi
), which EFIs launch if nothing else is available, so you might be booting via this entry. This could be a contributing factor to your problem. Unfortunately, if I'm right about this, the original entry is lost, and it might not be clear what it should be, even with Boot Info output; but there might be clues in that output in any event. Windows tools should be able to create a working entry in this case, but this is a subject for discussion on a Windows forum.
- Possible filesystem damage -- Windows 8 and later use features known as Fast Startup and Hibernate, which can cause filesystem damage in a dual-boot setup. Thus, it's imperative that these features both be disabled, as described here and here. If you didn't do this before installing Ubuntu, it's possible that your Windows ESP was damaged somewhere along the line, which could be causing your problem. If so, a filesystem repair (with
dosfsck
in Ubuntu or CHKDSK
in Windows) might fix the problem. In a worst-case scenario, you might need to re-install the Windows boot loader using Windows tools. (Restoring them from a backup would also work, if you've got a backup.)
Note that all of these issues are basically explanations for how the Windows boot failure was triggered. With the possible exception of booting via GRUB, the solution will likely come from running Windows repair tools. If the problem is caused by an attempt to boot Windows via a malformed GRUB boot entry, then fixing that in Ubuntu should fix the problem; but the other causes will require Windows repairs. Thus, posting the Boot Info output may be helpful before you try anything else; but you should be prepared to seek a solution within Windows.