Faulty Leap installation, only boots with iso usb

Hello,
I just tried to install opensuse leap 15.5 on an acer laptop previously running with windows (now only opensuse). There are no errors during the installation but after removing the usb, the laptop just displays the message: ‘no bootable device found’.
The weird thing is that if I put the usb back in, the system boots on the usb and then I can choose to boot on the hdd.
I have no idea how to fix it, since i am new to linux, I can gladly make screenshots of some commands.

Secure boot is disabled and I am booting with UEFI.
I tried to follow: Repair a broken UEFI/GRUB2/openSUSE boot scenario but it doesn’t work (could be due to my inexperience).

You may have installed to the USB. Need to be careful on the target of the install.

Hi openphilipp,
Welcome to the forum.
As gogalthoarp said, you might have installed to the USB drive. But as you said you can choose to boot from hdd, maybe it’s much less residing on that drive.
It might be easiest to just do a new install taking care about partioning - not to put anything on the USB drive. You may also - if just for learing - open up a terminal, become root and post lsblk -f

Post the output from:

efibootmgr -v

That may require root.

I will try again with a new installation, I will read trough the manuals a little, maybe I missed a step. I only used the recommended disk partition, I think that should not by default install on the usb. But I am not sure since its only the second laptop on which I installed opensuse.

Running lsblk -f has the output

philipp@localhost:~> sudo lsblk -f
NAME   FSTYPE FSVER LABEL       UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda                                                                                 
├─sda1 vfat   FAT32             F278-61AB                             506.6M     1% /boot/efi
├─sda2 btrfs                    a4eb0589-aa60-4ffb-953b-1bcf0aedf796  467.4G     1% /var
│                                                                                   /srv
│                                                                                   /tmp
│                                                                                   /opt
│                                                                                   /boot/grub2/x86_64-efi
│                                                                                   /home
│                                                                                   /root
│                                                                                   /usr/local
│                                                                                   /.snapshots
│                                                                                   /boot/grub2/i386-pc
│                                                                                   /
└─sda3 swap   1                 6adc3863-a17c-486a-b28a-09738930ad65                [SWAP]
sdb                                                                                 
└─sdb1 vfat   FAT32 OPENSUSE-LE E0B1-5C76                                           
sr0 

Here the output from efibootmgr -v

philipp@localhost:~> sudo efibootmgr -v
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 2001,2002,2003
Boot0000* Unknown Device:       HD(1,GPT,87c3fadc-973e-4727-89ce-7c602977912b,0x800,0x100000)/File(\EFI\opensuse\grubx64.efi)RC
Boot0001* USB HDD: Generic Flash Disk   PciRoot(0x0)/Pci(0x14,0x0)/USB(3,0)/HD(1,GPT,d9b75bc9-7937-452f-954e-c8588a5128ff,0x800,0xeff7c0)RC
Boot0002* Linux Boot Manager    HD(1,GPT,87c3fadc-973e-4727-89ce-7c602977912b,0x800,0x100000)/File(\EFI\systemd\systemd-bootx64.efi)
Boot2001* EFI USB Device        RC
Boot2002* EFI DVD/CDROM RC
Boot2003* EFI Network   RC

I tried to change the BootOrder to have 0000 as first boot but that setting gets deleted after reboot (maybe this points to an installation on the usb).

This guide is six years old and was written for systems based on pure ext4 filesystems only.

Your system uses a btrfs filesystem!

Show full output of

lsblk -f -o +partuuid
ls -lR /boot/efi

Ok, here you go (meanwhile I rewrote the usb with a DD image using Rufus, before it was just an iso image), but it still boots on the usb and then i can choose boot from hard disk:

philipp@localhost:~> sudo lsblk -f -o +partuuid
NAME   FSTYPE  FSVER            LABEL                            UUID                                 FSAVAIL FSUSE% MOUNTPOINTS            PARTUUID
sda                                                                                                                                         
├─sda1 vfat    FAT32                                             F278-61AB                             506.6M     1% /boot/efi              87c3fadc-973e-4727-89ce-7c602977912b
├─sda2 btrfs                                                     a4eb0589-aa60-4ffb-953b-1bcf0aedf796  467.4G     1% /root                  b1aeda5b-c504-4ee0-aeca-525917ad80db
│                                                                                                                    /var                   
│                                                                                                                    /usr/local             
│                                                                                                                    /tmp                   
│                                                                                                                    /srv                   
│                                                                                                                    /opt                   
│                                                                                                                    /home                  
│                                                                                                                    /boot/grub2/x86_64-efi 
│                                                                                                                    /boot/grub2/i386-pc    
│                                                                                                                    /.snapshots            
│                                                                                                                    /                      
└─sda3 swap    1                                                 6adc3863-a17c-486a-b28a-09738930ad65                [SWAP]                 7ecf602f-0b85-4465-bd51-4b3b3b17a91e
sdb    iso9660 Joliet Extension openSUSE-Leap-15.5-DVD-x86_64491 2023-05-23-15-17-50-85                                                     
├─sdb1 vfat    FAT16            openSUSE-Leap-15.5-DVD-x86_64491 22D5-F49A                                                                  2bb7c027-01
└─sdb2 iso9660 Joliet Extension openSUSE-Leap-15.5-DVD-x86_64491 2023-05-23-15-17-43-38                                                     2bb7c027-02
sr0                               

and ls -lR /boot/efi:

philipp@localhost:~> sudo ls -lR /boot/efi
/boot/efi:
total 12
drwxr-xr-x 2 root root 4096 Jan  6 00:39 c96892df572b4785b2db5054f86cbe1e
drwxr-xr-x 6 root root 4096 Jan  6 00:39 EFI
drwxr-xr-x 3 root root 4096 Jan  6 00:41 loader

/boot/efi/c96892df572b4785b2db5054f86cbe1e:
total 0

/boot/efi/EFI:
total 16
drwxr-xr-x 2 root root 4096 Jan  6 00:39 boot
drwxr-xr-x 2 root root 4096 Jan  6 00:39 Linux
drwxr-xr-x 2 root root 4096 Jan  5 23:17 opensuse
drwxr-xr-x 2 root root 4096 Jan  6 00:39 systemd

/boot/efi/EFI/boot:
total 1024
-rwxr-xr-x 1 root root  94233 Oct 16 09:59 bootx64.efi
-rwxr-xr-x 1 root root  90592 Jan  5 23:55 fallback.efi
-rwxr-xr-x 1 root root 852408 Jan  5 23:55 MokManager.efi

/boot/efi/EFI/Linux:
total 0

/boot/efi/EFI/opensuse:
total 3336
-rwxr-xr-x 1 root root      58 Jan  5 23:55 boot.csv
-rwxr-xr-x 1 root root     155 Jan  5 23:55 grub.cfg
-rwxr-xr-x 1 root root 1275904 Jan  5 23:55 grub.efi
-rwxr-xr-x 1 root root  319488 Jan  5 23:55 grubx64.efi
-rwxr-xr-x 1 root root  852408 Jan  5 23:55 MokManager.efi
-rwxr-xr-x 1 root root  953800 Jan  5 23:55 shim.efi

/boot/efi/EFI/systemd:
total 96
-rwxr-xr-x 1 root root 94233 Oct 16 09:59 systemd-bootx64.efi

/boot/efi/loader:
total 12
drwxr-xr-x 2 root root 4096 Jan  6 00:39 entries
-rwxr-xr-x 1 root root  141 Jan  6 00:46 loader.conf
-rwxr-xr-x 1 root root  512 Jan  6 00:41 random-seed

/boot/efi/loader/entries:
total 0

Looks OK so far. So further

grep -Ev '^$|^#' /etc/sysconfig/bootloader
mokutil --sb-state
cat /sys/firmware/efi/fw_platform_size

ok:

philipp@localhost:~> grep -Ev '^$|^#' /etc/sysconfig/bootloader
LOADER_TYPE="grub2-efi"
SECURE_BOOT="yes"
TRUSTED_BOOT="no"
UPDATE_NVRAM="yes"
philipp@localhost:~> mokutil --sb-state
SecureBoot enabled
philipp@localhost:~> cat /sys/firmware/efi/fw_platform_size
64

It is strange that secureboot is now enabled since yesterday it showed disabled and I also disabled it in the uefi settings.

It does not match your efibootmgr output. Run

update-bootloader --reinit
efibootmgr -v

and post full output.

I did it, it seems like it did change something.

philipp@localhost:~> sudo efibootmgr -v
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0003,2001,2002,2003
Boot0000* Unknown Device:       HD(1,GPT,87c3fadc-973e-4727-89ce-7c602977912b,0x800,0x100000)/File(\EFI\opensuse\grubx64.efi)RC
Boot0001* USB HDD: Generic Flash Disk   PciRoot(0x0)/Pci(0x14,0x0)/USB(3,0)/HD(1,MBR,0x2bb7c027,0xd40,0x1c8c)RC
Boot0002* Linux Boot Manager    HD(1,GPT,87c3fadc-973e-4727-89ce-7c602977912b,0x800,0x100000)/File(\EFI\systemd\systemd-bootx64.efi)
Boot0003* opensuse-secureboot   HD(1,GPT,87c3fadc-973e-4727-89ce-7c602977912b,0x800,0x100000)/File(\EFI\opensuse\shim.efi)
Boot2001* EFI USB Device        RC
Boot2002* EFI DVD/CDROM RC
Boot2003* EFI Network   RC

After restart the boot order changes to 2001,2002,2003and 0003 is not in boot order anymore. Is there a way to save it or force it to be set as standard?

OK, try rebooting now. Do you know how to display boot selection menu on your system? It would be interesting to know how it looks like after reboot (if you manage to enter it, post foto).


It looks like this, just the usb is recognized.

OK, boot and show efibootmgr -v output now.

1 Like

This would be the new output:

philipp@localhost:~> sudo efibootmgr -v
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 2001,2002,2003
Boot0000* Unknown Device:       HD(1,GPT,87c3fadc-973e-4727-89ce-7c602977912b,0x800,0x100000)/File(\EFI\opensuse\grubx64.efi)RC
Boot0001* USB HDD: Generic Flash Disk   PciRoot(0x0)/Pci(0x14,0x0)/USB(3,0)/HD(1,MBR,0x2bb7c027,0xd40,0x1c8c)RC
Boot0002* Linux Boot Manager    HD(1,GPT,87c3fadc-973e-4727-89ce-7c602977912b,0x800,0x100000)/File(\EFI\systemd\systemd-bootx64.efi)
Boot0003* opensuse-secureboot   HD(1,GPT,87c3fadc-973e-4727-89ce-7c602977912b,0x800,0x100000)/File(\EFI\opensuse\shim.efi)
Boot2001* EFI USB Device        RC
Boot2002* EFI DVD/CDROM RC
Boot2003* EFI Network   RC

It is your BIOS, there is not much that can be done from openSUSE side. There are some hints that you may need to add bootloader as “trusted” from within BIOS Setup. See e.g.

https://wiki.archlinux.org/title/Laptop/Acer#Flaky_Secure_Boot

I guess Acer Linux community (assuming one exists) would be a better place to ask.

1 Like

I was afraid that it is something more complicated. I will look into it.
Thanks alot for the great help and hints to where to look.

Just for completeness i will post the solution I found using all your hints.
It worked for me, following Installing Linux Mint - Aspire E15
Thank you all for the great help.