You are not logged in.
Hello all,
I'm sorry if this exact issue has been raised before, but I'm having trouble correctly resizing the /boot partition, having the LUKS-encrypted partition right next to it.
So in short, the thing I'm trying to do is resizing from 512M of /boot to something like 1G, because recently I've started having some problems updating the system. I usually have to remove the .img files before regenerating them with mkinitcpio because they are so fat. I have two kernels in my config: mainline and lts. I like to experiment with kernels from time to time, so I think it would be great to have an option for resize.
/boot looks like this:
/boot
├── EFI
│ ├── BOOT
│ │ └── BOOTX64.EFI
│ ├── Linux
│ └── systemd
│ └── systemd-bootx64.efi
├── initramfs-linux-fallback.img
├── initramfs-linux.img
├── initramfs-linux-lts-fallback.img
├── initramfs-linux-lts.img
├── intel-ucode.img
├── loader
│ ├── entries
│ │ ├── lts.conf
│ │ └── stock_default.conf
│ ├── loader.conf
│ └── random-seed
├── syslinux
│ └── syslinux.cfg
├── vmlinuz-linux
└── vmlinuz-linux-lts/etc/mkinitpcio.conf looks like this:
MODULES=(btrfs nvidia nvidia_modeset nvidia_uvm nvidia_drm)
BINARIES=(/usr/bin/btrfs)
FILES=()
HOOKS=(base udev plymouth encrypt autodetect modconf block filesystems keymap keyboard fsck)lsblk:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 465.8G 0 disk
└─sda1 8:1 0 465.8G 0 part /mnt/mx500
nvme0n1 259:0 0 931.5G 0 disk
├─nvme0n1p1 259:1 0 512M 0 part /boot
└─nvme0n1p2 259:2 0 931G 0 part
└─luksdev 254:0 0 931G 0 crypt /var/lib/docker/btrfs
/
nvme1n1 259:3 0 931.5G 0 disk
└─nvme1n1p1 259:4 0 931.5G 0 part /mnt/980I tried shrinking the main partition in live environment using gparted, but I couldn't move it "to the right" in order to expand the /boot partition.
Is there any way to safely expand the /boot partition in this scenario? I would be grateful for your suggestions and guidance. Please let me know if I can provide more details.
Last edited by rafauke (2023-06-21 17:36:02)
Offline