I have two drives one ssd and one hdd in my hp laptop, windows 10 is installed on the ssd, I have been trying to install linux mint in the free space in the hdd. I have been using this as a guide:
https://askubuntu.com/questions/726972/dual-boot-windows-10-and-linux-ubuntu-on-separate-hard-drives
Even after following the guide the grub keeps installing in the ssd in the windows boot manager partition. When I select the boot loader from ssd it enters the GRUB Command line. In the command line I tried to list the available disk images but it shows no bootable images, I get 5 entries, namely, (hd0), (hd0,gpt1)...(hd0,gpt4). Out of these (hd0, gpt2) is the only one on which ls works others show unknown filesystem.
How do I get Grub to install in the EFI partition created in the HDD and not the windows boot partition?