A little background before I go into the main problem - I have windows installed in a 256GB nvme ssd that came with the laptop. Then I added a 2.5" SSD manually (Samsung Evo 860) for additional space and installing Ubuntu 16.04 in it. I need 16.04 for work so can't go for higher versions. The ssd is detected in windows and I was even able to store files in it.
So then I tried dual booting my system with windows 10 and Ubuntu 16.04, while windows running in the nvme and linux in the 2.5" ssd. I made a bootable usb device with rufus, then shrunk the volume of the ssd which I wanted to install linux in by 100GB using Gparted. Then when I tried the install Ubuntu option I got the following error Force UEFI Installation? with following error message
This machine's firmware has started this installer in UEFI mode but it looks like there maybe existing operating systems already installed using BIOS compatibility mode, If you continue to install Debian in UEFI mode,it might be difficult to reboot into any BIOS-mode operating system.
But the BIOS mode of my laptop is UEFI and no other OS other than windows is installed. Windows 10 came with the laptop, so I assume they must have installed it UEFI mode, since as far as my understanding goes the newer laptops don't use legacy mode anymore. And also I confirmed this with the MSinfo32.
So coming back to the error, I clicked on the continue in UEFI mode , which lead me to the partitioning window, where I chose Something else (NOTE: during the previous times when I dual booted, I usually see an option called Install ubuntu along with windows, but I couldn't see it this time and I assumed it is because I am installing in a separate hard drive other than the one in which windows was installed). So I allocated 20 GB for root, 8 GB for swap and rest for home.( I did this with Use as ext4 and during my first time of installation I gave the type for the new parition as primary and when this failed I tried again with logical, but still no luck) So the partitioning went well then during half of the installation process I got the error GRUB installation failed and the following error message
The 'grub-efi-amd64-signed' package failed to install into /target/. Without the GRUB boot loader, the installed system will not boot
And when I pressed ok, the installation process quit. I don't know what to do after this. Is this happening because of trying to dual boot in two seperate ssds? Could someone please help me with this?