Qubes 4.1 doesn't boot

I did a clean install of UEFI Qubes 4.1 on a SSD and it was working well until I temporarily disconnected the drive and now it won’t boot anymore. I get booted to UEFI every time. Tried following the UEFI troubleshooting steps at UEFI troubleshooting | Qubes OS but I can’t do step 2 since the files don’t match up, there’s no xen.cfg for example. Does anyone know what happened and how to fix it?

root@user-System-Product-Name:/mnt/sda1# tree
.
└── EFI
    ├── BOOT
    │   ├── fonts
    │   ├── grub.cfg
    │   ├── grubx64.efi
    │   ├── initramfs-5.10.90-1.fc32.qubes.x86_64.img
    │   ├── xen-4.14.4.efi
    │   └── xen.efi
    ├── fedora
    └── qubes
        ├── fonts
        ├── grub.cfg
        ├── grubx64.efi
        ├── initramfs-5.10.90-1.fc32.qubes.x86_64.img
        ├── xen-4.14.4.efi
        └── xen.efi

6 directories, 10 files
root@user-System-Product-Name:/mnt/sda1# cd ..
root@user-System-Product-Name:/mnt# cd sda2/
root@user-System-Product-Name:/mnt/sda2# tree
.
├── config-5.10.104-3.fc32.qubes.x86_64
├── config-5.10.90-1.fc32.qubes.x86_64
├── efi
├── grub2
│   ├── grubenv
│   └── themes
│       └── qubes
│           ├── progress_bar2_c.png
│           ├── progress_bar_c.png
│           ├── progress_bar_hl_c.png
│           ├── qubes.png
│           ├── theme.txt
│           ├── unifont-bold-16.pf2
│           ├── unifont-regular-14.pf2
│           ├── unifont-regular-16.pf2
│           └── unifont-regular-32.pf2
├── initramfs-5.10.104-3.fc32.qubes.x86_64.img
├── initramfs-5.10.90-1.fc32.qubes.x86_64.img
├── loader
│   └── entries
│       ├── 10221d472ff446e4acdc884bded2c8a1-5.10.104-3.fc32.qubes.x86_64.conf
│       └── 10221d472ff446e4acdc884bded2c8a1-5.10.90-1.fc32.qubes.x86_64.conf
├── lost+found
├── symvers-5.10.104-3.fc32.qubes.x86_64.gz
├── symvers-5.10.90-1.fc32.qubes.x86_64.gz
├── System.map-5.10.104-3.fc32.qubes.x86_64
├── System.map-5.10.90-1.fc32.qubes.x86_64
├── vmlinuz-5.10.104-3.fc32.qubes.x86_64
├── vmlinuz-5.10.90-1.fc32.qubes.x86_64
├── xen-4.14.4.config
└── xen-4.14.4.gz

7 directories, 24 files
root@user-System-Product-Name:/mnt/sda2# lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 223,6G  0 disk 
├─sda1   8:1    0   600M  0 part /mnt/sda1
├─sda2   8:2    0     1G  0 part /mnt/sda2
└─sda3   8:3    0   222G  0 part 
sdb      8:16   1  28,7G  0 disk 
├─sdb1   8:17   1   512M  0 part /boot/efi
└─sdb2   8:18   1  28,1G  0 part /
root@user-System-Product-Name:/mnt/sda2# 

check uefi entry, efibootmgr -v and if you using external drive you already did copy the necessary files to boot folder that’s good, now change the grub.cfg > boot.cfg and grubx64.efi > boox64.efi from the boot folder, then create new uefi entry based on this file.
efibootmgr -v -c -u -L "Qubes OS" -l /EFI/boot/bootx64.efi -d /dev/sda -p 1, examine the drive first before creating uefi entry. -d stand for device path, -p for partition number.

3 Likes

Thank you very much, that got me back into the system no problem.