Qubes installed but not booting

so i just finished building my new pc and while the installer says qubes successfully installed after rebooting it just launches the UEFI
i’v’e been trying to get it to work for a while now and any help would be greatly appreciated
without selecting the “install with latest kernel” option the installer ran extremely slowly (this was solved after installing a dedicated gpu)
the hardware is as follows::
intel i5 13500
msi pro z690-a ddr4 motherboard
onboard gpu ie intel uhd graphics 770

this post documents a near identical experience to me using very similar hardware:

it then lists the following thread as having the solution:

however when i run mount /dev/sdb2 /mnt it says “already mounted or mount point busy”
then when i run mount /dev/sdb1 /mnt/efi it says “mount point dose not exist”
after following these steps qubes still won’t boot

1 Like

Did you try to just run this command first to try and restore your UEFI entry before trying to copy grub files to /EFI/boot/?

efibootmgr -v -c -u -L "QubesOS" -l /EFI/qubes/grubx64.efi -d /dev/sdb -p 1

Change /dev/sdb to your Qubes OS drive and -p 1 to the EFI System partition number on this drive.

running
cp /mnt/efi/EFI/qubes/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi
gets “cannot stat /mnt/efi/EFI/qubes/grubx64.efi no such file or directory”

running
cp /mnt/efi/EFI/qubes/grub.cfg /mnt/efi/EFI/boot/bootx64.cfg
gets “target ‘1’ is not a directory”

Did you disable secure boot?

yes

If you didn’t install Qubes OS on removable drive then there is no need for you to copy grub files to /EFI/boot/ directory. Just restoring UEFI entry with efibootmgr command should be enough.

running the efibootmgr command you listed before gives the following result:
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0000,0001
Boot0001* UEFI: USB PciRoot(0x0…etc
Boot0000* Linux HD(1,MBR,…etc

qubes is installed on a internal drive
i’m simply using a bootable usb to get to the installer

Did you change /dev/sdb and EFI System partition number in efibootmgr command to your Qubes OS drive name/partition?
You can find out the correct drive name/partition with these commands:

blkid
fdisk -l

yes

From this output it seems that the command wasn’t executed correctly and there was some error in the command. Check that you don’t have a typo in command.

after running the command on a fresh re-installation of qubes i get the same results as before

my partition is /dev/sda
the command i ran was
efibootmgr -v -c -u -L “example” -l /EFI/qubes/grubx64.efi -d /dev/sda -p 1

Are you sure that /dev/sda is your Qubes OS drive and not Qubes OS installer USB drive?
Can you post the output of this command?

lsblk -o NAME,FSTYPE,SIZE /dev/sd? /dev/nvme?n?

After you run this command:
efibootmgr -v -c -u -L “example” -l /EFI/qubes/grubx64.efi -d /dev/sda -p 1
Do you see the new boot entry with the name example in the command output? You can also run efibootmgr without arguments to print all boot entries.

Also, just in case, the -l argument in efibootmgr is lowercase L.

NAME FSTYPE SIZE
sda iso9660 28.7g
sda1 iso9660 5.8g
sda2 vfat 2.3m
nvme0n1p1 931.5g
nvme0n1p1 vfat 600m
nvme0n1p2 ext4 1g
nvme0n1p3 crypto_LUKS 929.9g

Your Qubes OS drive name is /dev/nvme0n1 and not /dev/sda so you need to run this command:

efibootmgr -v -c -u -L “QubesOS” -l /EFI/qubes/grubx64.efi -d /dev/nvme0n1 -p 1

same output as before Qubes installed but not booting - #7 by LEMON101
still boots into the uefi

After you run this command:

efibootmgr -v -c -u -L “QubesOS” -l /EFI/qubes/grubx64.efi -d /dev/nvme0n1 -p 1

Do you see the new boot entry with the name QubesOS in the command output? You can also run efibootmgr without arguments to print all boot entries.

the output is
Bootcurrent: 0001
Timeout: 0 seconds
BootOrder: 0000,0001
Boot0001* UEFI: USB PciBoot(0x0…etc
Boot0000* QubesOS HD(1,GPT…etc

Ok, seems that Qubes OS boot entry was successfully created.
What happens when you try to boot this QubesOS boot entry from UEFI?