Quantcast
Channel: Active questions tagged 22.04 - Ask Ubuntu
Viewing all articles
Browse latest Browse all 4803

How do I fix a zfs boot problem: error: no such device

$
0
0

I needed to free up some space in bpool to add the latest patches to my Ubuntu 22.04 system running ZFS. I tried to ZFS destroy the oldest snapshot, and upon reboot, booting failed with the following:

Booting a command listerror: no such device: 9a3acf1a88182eec.  Loading Linux 6.2.0-34-generic ...  error: file '/BOOT/ubuntu_uad4uk@/vmlinuz-6.2.0-34-generic' not found  Loading initial ramdisk ...  error: you need to load the kernel first.  Press any key to continue...  

How do I fix my system without destroying my data and rpool? What is the device 9a3acf1a88182eec? I am a long-time Unix (Solaris) user, but not very familiar with Ubuntu admin or grub.

I originally installed from the live disk, and it created the bpool and rpool zfs pools, and booted from an EFI partition on a nvram disk.

I have tried booting Ubuntu Live from a USB and can import, mount, and look at the bpool ZFS. All of the kernels I had are there, including all the files/directories that were visible from the bpool mounted on the /boot directory before the problem. I can also mount the EFI partition and see the grub stuff, so I think all of the files I had before are not missing.

The grub entry that gave the above message is:

setparams 'Ubuntu 22.04.3 LTS, with Linux 6.2.0-34-generic'    recordfail      load_video      gfxmode ${linux_gfx_mode}      insmod gzio      if [ "${grub_platform}" = xen ] ; then insmod xzio; insmod lzopio; fi      insmod part_gpt      insmod zfs      search --no-floppy --fs-uuid --set=root 9a3acf1a88182eec      echo Loading Linux 6.2.0-34-generic ...      linux "/BOOT/ubuntu_uad4uk@/vmlinuz-6.2.0-34-generic" root=ZFS="rpool/ROOT/ubuntu_ad4uk" l_iommu=on,igfx_off quiet splash ${vt_handoff}      echo 'Loading initial ramdisk ...'    initrd "/BOOT/ubuntu_uad4uk@/initrd.img-6.2.0-34-generic"  

Viewing all articles
Browse latest Browse all 4803


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>