Replacing Windows 10 disk in UEFI dual boot setup
Solution 1:
After successfully moving Windows 10 to a new SSD while preserving the dual-boot setup using the hints given in the comments, let me post a summary as an answer.
Starting point:
- Ubuntu on HD1
- Windows 10 on HD2 (500 GB)
- Empty HD3 (500 GB)
- Ubuntu on flash drive
Steps:
- Disconnect HD1 to avoid any accidents
- Install HD3
- Boot into Ubuntu Live and use GParted and dd as discussed here to clone HD2 to HD3.
- Once dd has completed, shut down and remove Ubuntu flash drive
- Disconnect HD1, reconnect HD2
At the end, both installations (Ubuntu on HD1, Windows 10 on new HD3) can be booted from GRUB as before.