Hello, I originally had Garuda Linux installated and wanted to move to rhel. First I split my nvme in half and installed fedora, but later reinstalled and wanted to try rocky. I installed rocky Linux 9 on the other partition(with lvm, I think separate boot location).
Now I wanted to move fully to rocky, so I booted a fedora live image, and with kde partition manager deleted old Linux btrfs partition, moved my rocky partitions left and resized the home lvm.
How nvme partitions looked Before: |Garuda Boot| |Garuda| |RL Boot I think?| |Rocky LVM| |No clue|
Then I moved around everything to: |RL boot?| |Rocky LVM| |idk|
Rocky LVM has 2 I think called volumes, root and home. Resized those too.
Now my pc won’t boot. In bios I only see Fedora partition, which is the probably remnant boot, which is putting me into grub>.
I then in grub did
> ls
(Memdisk) (Proc) (Lvm/rl-root) (Lvm/rl-home) (Lvm/rl-swap) (Hd0) (Hd0,gpt6) (Hd0,gpt5) (Hd0,gpt4) (Hd0,gpt3)
//Prolly means separate boot part?
> ls (lvm/rl-root)/boot
./ ../
>Ls (Hd0,gpt3)/
Error: unknown file system
>Ls (Hd0,gpt4)/
Efi/ grub2/ loader/ vmlinuz...El9_4.x86_64 initramfs...el9_4 config-5... Symvers-5...
>set root (Hd0,gpt4)
>linux /vmlinuz-5.14.0-427.33.1.el9_4.x86_64 root=/dev/nvme0p4
>Initrd /initramfs-5.14.0-427.33.1.el9_4.x86_64.img
>boot
Then I saw Linux penguins appear, some fly by text and then I end up in what I only can assume is that command that live watches IO changes, it just sits and tells me what usb devices are changing, not progressing.
I REAALLY don’t want to reinstall, took me months gradually to install everything I need for my work.
How can I rescue this?
I feel like I’m close, I just don’t know what I’m doing wrong.
Unsure if that’s the right Linux params, so I tried linux ...x86_64 root=/dev/nvme0p4
And linux ...x86_64 root=/dev/nvme0p6
But both resulted in just that usb logging state.
When I tried without setting the root, I Got
FAILED] Failed to start Switch Root.
See 'systemctl status initrd-switch-root.service' for details.
Generating "/run/initramfs/rdsosreport.txt"
Entering emergency mode. Exit the shell to continue.
Type "journalctl" to view system logs.
[DEPEND] Dependency failed for /boot/efi.
[DEPEND]Dependency failed for Local File Systems.
[DEPEND] Dependency failed for Mark the need to relabel after reboot.
[DEPEND] Dependency failed for File System Check on /dev/disk/by-uuid/E804-AFGE.
I used rEFInd to boot into the rocky linux iso, but still getting this switch root error. The /sysroot directory is empty. I assume I need to mount my lvm /rl-root manually to sysroot and retry boot? how can I do this? lvdisplay, rpm install lvm2, none of these commands work in emergency mode. and I can’t just mount an lvm partition, cause mount /dev/nvme0n1p6 /sysroot gives error unknown filesystem 'LVM2_member'
[236.185754] sd 6:0:0:0: [sda] Attached SCSI removable disk
[ TIME ] Timed out waiting for device /dev/mapper/rl-swap.
[DEPEND] Dependency failed for /dev/mapper/rl-swap.
[DEPEND] Dependency failed for Swaps.
[ TIME ] Timed out waiting for device /dev/disk/by-uuid/E084-AF6E.
[DEPEND] Dependency failed for File System Check on /dev/disk/by-uuid/E084-AF6E.
[DEPEND] Dependency failed for /boot/efi.
[DEPEND] Dependency failed for Local File Systems.
[DEPEND] Dependency failed for Mark the need to relabel after reboot. [ TIME] Timed out waiting for device /dev/mapper/rl-home.
[DEPEND] Dependency failed for File System Check on /dev/mapper/rl-home.
You are in emergency mode. After logging in, type "journalct1 -xb" to view
open grub that was still left over from my fedora install,
> set root=(hd0,gpt4)
> linux /vmlinuz....x86_64 root=/dev/mapper/rl-root
> initrd /initramfs....img
> boot
told me finally that the only broken mount now was my boot/efi, which is for some reason also a separate partition? hd0,gpt5, EFI filesystem. I found that the fstab UUID didn’t match the new UUID, so I manually edited it. Now I redid that grub setting, and I’m in!
Now to figure out how to fix grub so I don’t have to manually enter those settings every time, and can remove my old fedora grub partition (which I think saved me today)