Your Linux setup isn't working consistently.
Your Linux setup isn't working consistently.
I'm dealing with Kali Linux on an SSD that's connected via an SSD drive. The issue persists whether disk encryption is enabled or not. When I take the SSD off to install Windows, the PC fails to boot from it. In BIOS I've set the boot device correctly, but the problem remains. The system reports the Linux SSD isn't bootable, even though it works after installation. Essentially, every time I remove the SSD from the machine, I need to reinstall Linux. Technical details: during installation I created boot and UEFI partitions with the bootable flag turned on in UEFI, but it doesn't work when the partition is missing. My machine is an HP EliteDesk 705 G3 Small Form Factor with an Intel Core i5 6500 and 8GB RAM.
Uncertain whether you're using an internal SSD or just one unit, or if it's the sole drive present. Doesn't know about kali, but for instance Ubuntu doesn't follow your selection of where to place the loader, even if you specify an EFI partition on the SSD. The best approach is to disconnect other drives during installation.
Windows and Linux both use internal SSDs, but only one is active at any given time.
Once your Linux installation is set up, you can attempt to start from the boot-repair ISO to determine if it resolves the issue...
By default Grub doesn't set up in "portable" mode; it creates an EFI entry with the EFI Boot Manager inside your BIOS. Certain motherboards may delete this entry when the drive isn't recognized. You must locate your boot and efi directories and reinstall Grub using the specified settings. Edited August 14, 2022 by Nayr438 Remove bootloader-id it won't be very useful for portable installs