Can't boot after moving all partitions

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.

and then again usb logging. What am I doing wrong :frowning:

following Manual booting linux with LVM (and fixing grub) · 0xCAFFEE | yet another brain booster I managed to get to rocky Linux emergency console I think. Unfortunately default.target doesn’t work, and I can’t enter my root password due to it requiring characters from non-en layout(not that I’d know what to type once I’m in anyways).

It failed with:

[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'

>lvm
>vgchange -ay
(volumes now active)
>exit
>mount /dev/dm-2 /sysroot
>mount /dev/dm-1 /sysroot/home
>exit
[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

found this file in loader/entries/e5be17fcbbe647d2a90787877a9777af-5.14.0-427.33.1.el9_4.x86_64.conf

title Rocky Linux (5.14.0-427.33.1.el9_4.x86_64) 9.4 (Blue Onyx)
version 5.14.0-427.33.1.el9_4.x86_64
linux /vmlinuz-5.14.0-427.33.1.el9_4.x86_64
initrd /initramfs-5.14.0-427.33.1.el9_4.x86_64.img $tuned_initrd
options root=/dev/mapper/rl-root ro crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M resume=UUID=9bac1011-b1fa-4c26-85c0-a8dacd8e1df1 rd.lvm.lv=rl/root rd.lvm.lv=rl/swap rhgb quiet $tuned_params
grub_users $grub_users
grub_arg --unrestricted
grub_class rocky

I assume this is what runs the os from grub? Cause it looks similar to what I tried to manually do in grub. Idk if this is useful.

I checked the fstab in my root partition, the IDs and names seem to align.

AFTER 2 DAYS OF STRUGGLES IM BOOTING!

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)

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.