I decided to install Ubuntu 20.04 onto an external hard drive, for use with my laptop. On the laptop's internal disk is some sensitive data that I stupidly neglected to back up.
So I formatted the external drive, added partitions for / and /home and swap. Used the installer and the external drive wouldn't boot into Ubuntu.
I decided to try installing it again. For some reason, instead of manually selecting the drive and parititons, I clicked "reinstall ubuntu 20.04".
I believe the it installed the files to the external drive, but it (re-)installed GRUB to my internal drive. I believe this because the installer showed /dev/sda being written to (this is the external drive) and it showed GRUB commands being used on /dev/nvme00 (this is the internal drive).
Now I can successfully boot into the new Ubuntu with the drive plugged in, however I cannot boot into my main OS on the laptop.
Can I recover my installation from this? If not, how should I go about recovering my files/data (if possible).
Thanks.