I used my PC which has SSD with windows installed. I unplugged my laptop HDD and connected it to PC and it was working fine.
Then I unplugged laptop hdd from PC and installed ubuntu on PC, works fine.
Now when I connect HDD(windows) to PC and in BIOS I select to boot from that HDD it boots in Ubuntu...
Also I tried via grub menu, it only shows ubuntu
I fixed the issue by simply updating my kernel version
– cinikbrate Feb 03 '22 at 17:45