On 24.05.2025 22:40, Joe wrote:
Looks like you need to shrink lvm a bit. EFI needs a partition formatted to one of the FAT family filesystems, with no additional software needed to access it, so no encryption or LVM. The size recommendation for Linux is 1GB minimum. It's generally advised to keep it near the beginning of large discs.
You have Boot partition and EFI partition mixed up. They are different things. EFI partition have to be formatted to FAT32, but its safe and sufficient size could be even 100MB, because only UEFI executable binaries go there. Boot partition, on the other hand, have to be big enough to hold a few kernel and initrd binary files for at least 2 kernel updates and bootloader (i.e. grub) binaries. All of them in total could reach 1GB in size if you neglect cleaning up old kernels after updates. Below is an example output from a laptop with Windows and Debian installed on the same disk (dual-boot).

$ lsblk -t -o NAME,FSTYPE,FSSIZE,FSUSE%,MOUNTPOINTS
NAME                            FSTYPE      FSSIZE FSUSE% MOUNTPOINTS
nvme0n1
├─nvme0n1p1                     vfat           96M    34% /boot/efi
├─nvme0n1p2
├─nvme0n1p3                     ntfs
├─nvme0n1p4                     ntfs
├─nvme0n1p5                     ext3        458,3M    39% /boot
└─nvme0n1p6                     LVM2_member
  ├─vg0--nvme-lv0--debian--root ext4        266,7G    56% /
  └─vg0--nvme-lv1--debian--swap swap                      [SWAP]

$ sudo gdisk /dev/nvme0n1 -l
GPT fdisk (gdisk) version 1.0.9

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/nvme0n1: 1000215216 sectors, 476.9 GiB
Model: WD PC SN540 SDDPNPF-512G
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): 1885C6C7-0A11-42AB-9266-2FFE6FF1259C
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 1000215182
Partitions will be aligned on 2048-sector boundaries
Total free space is 59672736 sectors (28.5 GiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048          206847   100.0 MiB   EF00  EFI system partition    2          206848          239615   16.0 MiB    0C01 Microsoft reserved ...    3          239616       334387660   159.3 GiB   0700  Basic data partition
   4       334389248       335542271   563.0 MiB   2700
   5       335542272       336566271   500.0 MiB   8300
   6       336566272       940546047   288.0 GiB   8300  Linux filesystem

--

With kindest regards, Alexander.

Debian - The universal operating system https://www.debian.org

Reply via email to