You are not logged in.

#1 2025-02-07 04:16:02

avr
Member
Registered: 2014-09-25
Posts: 31

[SOLVED] Can't boot after LUKs partition resize, issue with Arch live

Hello,

I am not able to boot into my Arch install after I resized my LUKs encrypted drive, and I can't fix the problem in an archchroot because the live USB (2025.02.01) is not working either.

HD setup: fat32 boot partition, linuxswap partition, rest of HD encrypted ext4 partition

What happened: Due to running out of room on the /boot partition I used a different graphical live USB to use gparted to delete the swap partition, expand the boot partition, then shrink the encrypted ext4 partition to re-create the swap partition at the end of the HD. It looks like doing that caused the UUID of the ext4 partition to change, so after entering the password to unlock the disk the system hangs, and if I use the fallback initrd I get a kernel panic: can't open blockdev cannot open root device append a correct root= boot option. Using grub e key to change that kernel param still doesn't work and I get the same panic each time.

What I tried: Up until now this seems more like a Linux general question, but when I tried to resolve this by just chrooting into the drive via a live USB to fix the issue directly I ran into another problem with the arch live usb. Once I select any option from the first Arch menu that shows up my screen goes blank. I saw this post https://bbs.archlinux.org/viewtopic.php?id=286381 but I'm not sure if it's applicable since I'm trying to use the live usb on a 2011 MBP which doesn't have an nvidia card. On the live usb I'm also not sure how to change kernel boot params there either as if I press e on the first menu option I see only arch specific stuff and not the usual Linux kernel parameters. I tried putting a nomodeset on there for good measure but that didn't do anything either.

Addendum: I noticed that the KDE ISO writer kept complaining about not being able to verify the arch linux image. I tried downloading from two different sources and each time it said the signature didn't match. Running

gpg --keyserver-options auto-key-retrieve --verify archlinux-2025.02.01-x86_64.iso.sig archlinux-2025.02.01-x86_64.iso

did say "good signature", although I did get the error "WARNING: The key's User ID is not certified with a trusted signature!". None of the sequoia commands worked due to wrong args, but I'm also not familiar with that tool.

Is anyone else running into issues with this live usb? I originally installed Arch on this laptop over a year ago using a live usb so it seems like something has changed with the live usb.

Last edited by avr (2025-02-08 23:14:39)

Offline

#2 2025-02-08 06:11:32

avr
Member
Registered: 2014-09-25
Posts: 31

Re: [SOLVED] Can't boot after LUKs partition resize, issue with Arch live

Fixed. Although the UUIDs were different on the kernel panic they actually didn't change for the root and boot partition. The root cause was the fstab was referring to the old UUID for the swap partition. It appears that the panic was due to the kernel not recognizing the encrypted luks partition, but it seems like that shouldn't happen because mkinitcpio does have sd-encrypt for the fallback image. I was never able to get the arch live usb to work.

Offline

#3 2025-02-08 15:20:33

seth
Member
Registered: 2012-09-03
Posts: 61,589

Re: [SOLVED] Can't boot after LUKs partition resize, issue with Arch live

\o/
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB