I am having an incredibly difficult time trying to fix GRUB. I am running Debian 12 on a Lenovo Yoga 720-15IKB. My partitioning scheme has 3 partitions:
nvme0n1p1;
nvme0n1p2; and,
nvme0n1p3.
nvme0n1p1:
File Format=fat32;
Flagged as “boot”;
Size=512MiB using 7.78MiB;
nvme0n1p2:
File Format=ext2;
No flags;
Size=488MiB using 450.22
Contents:
nvme0n1p3 is encrypted using LUKs and is subdivided into 3 LVMs:
yogadebian—vg-root
yogadebian—vg-swap_1
yogadebian—vg-home
This is basically the LUKS/LVM install option when I installed Debian.I have tried as many of the fixes as I could find, including the Debian GrubEFIReinstall (https://wiki.debian.org/GrubEFIReinstall).
I am able to unencrypt yogadebian-vg and then mount the 3 volumes at “/mnt”, though this is where things break down. I have to “mkdir” for many (not all) of the “/mnt” in order to prepare the “chroot /mnt” command.
The problem seems to be with the efi/efivars. They appear to be missing? I did try Boot Repair but it didn’t fix it.The last Boot Repair analysis I did is at: https://paste.debian.net/hidden/2cf0a60a/
I have never been able to “chroot” so that I can just reinstall Grub. I really do not want to do a clean install of Debian and Grub before I exhaust just reinstalling Grub. I don’t want to go through the ordeal of getting my Root back up to speed. I know I can do that without changing my Home directory.
If anyone has any suggestions on what may be preventing me from being able to chroot I would very much appreciate it. Here are the results of some of the inventory commands:
root@debian:~# fdisk -l
Disk /dev/nvme0n1: 953.87 GiB, 1024209543168 bytes, 2000409264 sectors
Disk model: ADATA SX8200PNP
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: CC0A91A2-A1A8-40D2-84F4-F06EB5E599B3
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 1050623 1048576 512M EFI System
/dev/nvme0n1p2 1050624 2050047 999424 488M Linux filesystem
/dev/nvme0n1p3 2050048 2000408575 1998358528 952.9G Linux filesystem
Disk /dev/sda: 3.73 GiB, 4009754624 bytes, 7831552 sectors
Disk model: Storage Media
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: dos
Disk identifier: 0xc7e6ef99
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 64 6835135 6835072 3.3G 0 Empty
/dev/sda2 7004 17243 10240 5M ef EFI (FAT-12/16/32)
Disk /dev/loop0: 2.76 GiB, 2963050496 bytes, 5787208 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/luks-e733e1f4-f384-4d84-88ab-304a3fe434ae: 952.88 GiB, 1023142789120 bytes, 1998325760 sector
s
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/yogadebian--vg-root: 101.54 GiB, 109026738176 bytes, 212942848 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/yogadebian--vg-swap_1: 20.76 GiB, 22292725760 bytes, 43540480 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/yogadebian--vg-home: 830.08 GiB, 891289600000 bytes, 1740800000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
nvme0n1p1;
nvme0n1p2; and,
nvme0n1p3.
nvme0n1p1:
File Format=fat32;
Flagged as “boot”;
Size=512MiB using 7.78MiB;
nvme0n1p2:
File Format=ext2;
No flags;
Size=488MiB using 450.22
Contents:
nvme0n1p3 is encrypted using LUKs and is subdivided into 3 LVMs:
yogadebian—vg-root
yogadebian—vg-swap_1
yogadebian—vg-home
This is basically the LUKS/LVM install option when I installed Debian.I have tried as many of the fixes as I could find, including the Debian GrubEFIReinstall (https://wiki.debian.org/GrubEFIReinstall).
I am able to unencrypt yogadebian-vg and then mount the 3 volumes at “/mnt”, though this is where things break down. I have to “mkdir” for many (not all) of the “/mnt” in order to prepare the “chroot /mnt” command.
The problem seems to be with the efi/efivars. They appear to be missing? I did try Boot Repair but it didn’t fix it.The last Boot Repair analysis I did is at: https://paste.debian.net/hidden/2cf0a60a/
I have never been able to “chroot” so that I can just reinstall Grub. I really do not want to do a clean install of Debian and Grub before I exhaust just reinstalling Grub. I don’t want to go through the ordeal of getting my Root back up to speed. I know I can do that without changing my Home directory.
If anyone has any suggestions on what may be preventing me from being able to chroot I would very much appreciate it. Here are the results of some of the inventory commands:
root@debian:~# fdisk -l
Disk /dev/nvme0n1: 953.87 GiB, 1024209543168 bytes, 2000409264 sectors
Disk model: ADATA SX8200PNP
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: CC0A91A2-A1A8-40D2-84F4-F06EB5E599B3
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 1050623 1048576 512M EFI System
/dev/nvme0n1p2 1050624 2050047 999424 488M Linux filesystem
/dev/nvme0n1p3 2050048 2000408575 1998358528 952.9G Linux filesystem
Disk /dev/sda: 3.73 GiB, 4009754624 bytes, 7831552 sectors
Disk model: Storage Media
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: dos
Disk identifier: 0xc7e6ef99
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 64 6835135 6835072 3.3G 0 Empty
/dev/sda2 7004 17243 10240 5M ef EFI (FAT-12/16/32)
Disk /dev/loop0: 2.76 GiB, 2963050496 bytes, 5787208 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/luks-e733e1f4-f384-4d84-88ab-304a3fe434ae: 952.88 GiB, 1023142789120 bytes, 1998325760 sector
s
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/yogadebian--vg-root: 101.54 GiB, 109026738176 bytes, 212942848 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/yogadebian--vg-swap_1: 20.76 GiB, 22292725760 bytes, 43540480 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/yogadebian--vg-home: 830.08 GiB, 891289600000 bytes, 1740800000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Statistics: Posted by mattikins — 2024-02-27 11:44 — Replies 1 — Views 23