I have a new laptop with a HDD (sda) and a SSD (sdb). Both are detected by the UEFI firmware. I have installed OpenSuse on the SSD.
I have this problem:
If I have OpenSuse CD in the drive then laptop boots from it and I can choose 'boot from hard drive'. This way all works fine.
If I remove the CD from drive I get 'No bootable device' on startup.
I have SSD as /dev/sdb and it is the first in the boot order. It has GPT partition format and following structure:
/dev/sdb1 on /boot/efi type vfat (rw,relatime,fmask=0002,dmask=0002,allow_utime=0020,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/sdb2 on /boot/grub2/i386-pc type btrfs (rw,relatime,ssd,space_cache,subvolid=260,subvol=/@/boot/grub2/i386-pc)
/dev/sdb2 on /boot/grub2/x86_64-efi type btrfs (rw,relatime,ssd,space_cache,subvolid=261,subvol=/@/boot/grub2/x86_64-efi)
/dev/sdb2 on / type btrfs (rw,relatime,ssd,space_cache,subvolid=259,subvol=/@/.snapshots/1/snapshot)
/boot/efi looks like that:
/boot/efi/
└── EFI
├── boot
│ ├── bootx64.efi
│ └── fallback.efi
└── opensuse
├── boot.csv
├── grub.cfg
├── grub.efi
├── grubx64.efi
├── MokManager.efi
└── shim.efi
I have tried re-installing grub2, but it did not help.
I have in BIOS UEFI with secure boot disabled.
Still, I can only boot via CD.
update No luck so far. Tried installing on /dev/sda and also tried Ubuntu. At the end, I turned UEFI of and installed in legacy mode. It worked.
grub-install --efi-directory=/boot/efi