I upgraded that SSD to Fedora 36, then 37 and finally 38 now, but I was struggling to install kernel 6.2.0. That version does not appear to be in the repositories.
The closest thing I could find was this: kernel-6.2.0-63.fc38 | Build Info | koji
So I downloaded and installed:
- kernel-6.2.0-63.fc38.x86_64.rpm
- kernel-core-6.2.0-63.fc38.x86_64.rpm
- kernel-devel-6.2.0-63.fc38.x86_64.rpm
- kernel-devel-matched-6.2.0-63.fc38.x86_64.rpm
- kernel-modules-6.2.0-63.fc38.x86_64.rpm
- kernel-modules-core-6.2.0-63.fc38.x86_64.rpm
- kernel-modules-extra-6.2.0-63.fc38.x86_64.rpm
I’m now back to the SSD in the external USB adapter and booted into Ubuntu again.
I found that I just had to click sdb4 in the UI, then it asked for the password and dcrypted+mounted the subvolumes at
/media/ubuntu/master-volume/root
and
/media/ubuntu/master-volume/home
So I tried to symlink it:
root@ubuntu:/mnt# ln -s /media/ubuntu/master-volume/root ssd
root@ubuntu:/mnt# ln -s /media/ubuntu/master-volume/home ssd/home
Which was probably a dumb idea because I don’t know what “home” was on the root partition before I turned it into a symlink…
Then I just used mount --bind:
root@ubuntu:/mnt# mount --bind /media/ubuntu/master-volume/root /mnt/ssd
root@ubuntu:/mnt# mount --bind /media/ubuntu/master-volume/home /mnt/ssd/home
root@ubuntu:/mnt# mount /dev/sdb2 /mnt/ssd/boot
root@ubuntu:/mnt# mount /dev/sdb1 /mnt/ssd/boot/efi
root@ubuntu:/mnt# for dir in proc run dev sys ; do mount -o bind /$dir /mnt/ssd/$dir ; done
Then I chrooted into the directory and checked fstab:
root@ubuntu:/mnt# chroot /mnt/ssd
[root@ubuntu /]# cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Wed May 5 18:33:08 2021
#
# Accessible filesystems, by reference, are maintained under '/dev/disk/'.
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
#
# After editing this file, run 'systemctl daemon-reload' to update systemd
# units generated from this file.
#
UUID=a982c387-371f-4d9b-b7fa-ce20011e192f / btrfs subvol=root,compress=zstd:1,x-systemd.device-timeout=0 0 0
UUID=fc8a3952-bfec-45c0-99fd-47582a6bb79a /boot ext4 defaults 1 2
UUID=CA04-1C1C /boot/efi vfat umask=0077,shortname=winnt 0 2
UUID=a982c387-371f-4d9b-b7fa-ce20011e192f /home btrfs subvol=home,compress=zstd:1,x-systemd.device-timeout=0 0 0
/dev/mapper/luks-bf2fb83c-dd05-4847-bb12-05490c07348f none swap defaults,x-systemd.device-timeout=0 0 0
I also found crypttab. Not sure it this is relevant as well:
[root@ubuntu /]# cat /etc/crypttab
luks-0edd6643-6088-4a73-b75b-7b35add41591 UUID=0edd6643-6088-4a73-b75b-7b35add41591 none discard
luks-bf2fb83c-dd05-4847-bb12-05490c07348f UUID=bf2fb83c-dd05-4847-bb12-05490c07348f none discard
Now I’m thinking about replacing the UUIDs in those files with the correct ones and then maybe running dracut --regenerate-all
? What about the kernel parameters btw? The UUIDs are in there as well:
rd.driver.pre=vfio-pci kvm.ignore_msrs=1 i915.enable_gvt=1 intel_iommu=on amd_iommu=on iommu=1 preempt=full resume=/dev/mapper/luks-bf2fb83c-dd05-4847-bb12-05490c07348f rd.luks.uuid=luks-0edd6643-6088-4a73-b75b-7b35add41591 rd.luks.uuid=luks-bf2fb83c-dd05-4847-bb12-05490c07348f rhgb quiet
Can I just edit /etc/default/grub
and then run sudo grub2-mkconfig -o $(readlink -f /etc/grub2-efi.cfg)
?
But especially regarding the dracut command I’m a bit worried about not being able to revert to the old state where it can boot from the internal m.2 slot.