Qubes won't boot after dom0 update

I did an upgrade and started cleaning and the update tool crashed for whatever reason and when I came back and looked at the monitor, there was no upgrade tool window. I restarted everything, but it wouldn’t boot.

After reboot, GRUB still appeared, but selecting the normal boot entry failed with:

error: file '/xen-<version>.gz' not found
error: you need to load the kernel first

It then dropped into a dracut emergency shell.

I used chroot to try to get it to work in Debian live and forget what I did. I got it to load up the thing to unlock the LUKS disk but it still dropped into the emergency shell after LUKS decryption.

The machine used the usual Qubes layout: a small EFI System Partition, a separate /boot partition containing xen.gz, the kernel image, and GRUB files, plus an encrypted LUKS partition.

Recovery was attempted again from a Debian live USB and chroot by mounting the Qubes partitions, entering a chroot, and trying to repair GRUB and related packages. After getting past the LUKS decryption, I tried to install grub2-efi-x64-modules which was not available, while grub2-efi-x64 was already installed. Reinstall and upgrade attempts failed with a DNF transaction rollback error, then DNF history/database corruption. After that, even basic commands in the chroot began returning Input/output error.

Outside the chroot, fsck on /dev/mapper/qubes_dom0-root found a corrupted directory and repaired it, but the run ended with error writing system info, Input/output error. Repeated fsck runs kept producing I/O errors. SMART reportedly passed, but the repeated write failures made the storage path or filesystem look unreliable.

I don’t know if the smart test and fsck stuff is relevant or just random stuff that happened. Should I just reinstall? I am not sure if there is data loss. Some things are backed up, but the backups are months old. I am debating whether I should try to pull stuff off the drive if I can to reduce data loss.

What is the best approach?

  1. Stop using fsck to write to the disk.
  2. Boot from the Debian live USB.
  3. Decrypt the LUKS container, activate the LVM volumes, and mount everything read-only.
  4. Copy the dom0 home/qube configs and VM volumes to a fresh, separate backup, along with any other important files.
  5. Reinstall Qubes OS 4.3.1.
  6. Carefully and slowly restore contents from your fresh backup to the new installation.