Proxmox boots into grub

vanyny

New Member
Sep 17, 2024
1
0
1
Hello,

My server is booting into grub after I screwed something up trying to passthrough my igpu. I followed some instructions that somehow corrupted my boot partition. I've attempted to resolveI'm not very familiar with Linux filesystems so hopefully someone here can help me reverse whatever I did.

Here's the commands I ran before it broke:

Code:
Then to update modules:

:~# update-initramfs -u -k all

If it won’t work because there is no link to ESP partition then:

:~# proxmox-boot-tool status

To check which partition is /boot with vfat format:

:~# lsblk -o +FSTYPE

To initialize ESP sync first unmount boot partition:

:~# umount /boot/efi

Then link the vfat partiton with proxmox-boot-tool:

:~# proxmox-boot-tool init /dev/XXXXXXXX where XXXXXXXX is the name of vfat partiton from lsblk +FSYSTEM

Then:

:~# mount -a

Then to update modules:

:~# update-initramfs -u -k all

Now here's the output of sudo fdisk -l

Disk /dev/nvme0n1: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: Samsung SSD 990 PRO 2TB
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 8D27434D-C35A-41D8-96B1-01C8676F16AC

Device Start End Sectors Size Type
/dev/nvme0n1p1 34 2047 2014 1007K BIOS boot
/dev/nvme0n1p2 2048 2099199 2097152 1G EFI System
/dev/nvme0n1p3 2099200 3907029134 3904929935 1.8T Linux LVM


The problem appears to be cause by "/dev/nvme0n1p3" being an LVM filesystem. I followed grub recovery instructions (using live ubuntu img) and it fails everytime I attempt to mount the disk. I get an error saying unknown filesystemtype 'LVM2_member':

ubuntu@ubuntu:~$ sudo mount /dev/nvme0n1p3 /mnt
mount: /mnt: unknown filesystem type 'LVM2_member'.
ubuntu@ubuntu:~$ sudo mount /dev/nvme0n1p2 /mnt/boot/efi
mount: /mnt/boot/efi: mount point does not exist.

Here's the output to vgs and vgscan:

ubuntu@ubuntu:~$ sudo vgs
WARNING: Unrecognised flag CROP_METADATA in segment type thin-pool+CROP_METADATA.
WARNING: Unrecognised segment type thin-pool+CROP_METADATA
LV pve/vm-100-disk-0, segment 1 invalid: is not referencing thin pool LV for thin segment.
Internal error: LV segments corrupted in vm-100-disk-0.
Cannot process volume group pve
ubuntu@ubuntu:~$ sudo vgscan
WARNING: Unrecognised flag CROP_METADATA in segment type thin-pool+CROP_METADATA.
WARNING: Unrecognised segment type thin-pool+CROP_METADATA
LV pve/vm-100-disk-0, segment 1 invalid: is not referencing thin pool LV for thin segment.
Internal error: LV segments corrupted in vm-100-disk-0.
Cannot process volume group pve

Any help provided is greatly appreciated.
 
Last edited: