As described in Ubuntu upgrade failed from 24.10 to 25.04; hangs on update grub my upgrade hangs on update-grub. The symptom is exactly like described and the way Thystra described the fix seems to be the right way. Because of the lack of being able to comment (my reputation is less than 50), I have to ask a new question. My system drives are likely not encrypted but zfs filesystems. and I am able to start the system in command-line mode and I am able to examine the files.
As described (see above) the first attempt to sudo dpkg configure -a found the missing initrd for the vmlinuz-6.14.0-15-generic image then later update-grub hung and only let me reboot.
I was able to create the initrd and experience the same hanging update-grub and the same task mount.zfs: nnnn blocked for more than 122 seconds. messages.
I started a live 15.04 ubuntu system and are able to see the two drives of my hanging installation.
bpool on /dev/nvme0n1p3
rpool on /dev/nvme0n1p4
I expectedly cannot mount them because they are still not configured as zfs_member in the kernel. As described in the article above i tried a
sudo cryptsetup open /dev/zvol/rpool/keystore zfskey
and get the error
Device /dev/zvol/rpool/keystore does not exist or access denied.
This may be because my filesystems are not encrypted. There is no /dev/zvol in my system. So I started the next step as described in Chroot into an Ubuntu on zfs system.
root@ubuntu:~# zpool export -a
root@ubuntu:~# zpool import -N -R /mnt rpool
cannot import *rpool*: pool was previously in use from an other system
...
The pool can be imported, use 'zpool -f' to import the pool.
My questions are:
- Why should i
zpool export -awhen the pools of my original system are not zfs_member of the kernel? Is it possible to export the pools with my original system running? I suspect the pools are in use. - Is there a chance to corrupt my pools even I shut down the original system correctly before trying to import the pools on the live 15.04 ubuntu system with the
zpool import -foption? - In the further sequence there is a command
zfs load-key -ashould load all the keys for encrypted pools. But my pools are likely not encrypted. should I issue they command nevertheless?