Artix Linux Forum

Artix Linux => Installation / Migration / Configuration => Topic started by: masterarchitect on 08 February 2024, 19:51:13

Title: Tried To Resize LVM on LUKS
Post by: masterarchitect on 08 February 2024, 19:51:13
I setup my Artix-runit lvm-on-luks system a few months ago by mainly following this guide:

https://web.archive.org/web/20210515073858/https://www.rohlix.eu/post/artix-linux-full-disk-encryption-with-uefi/

I got some help from this video too: https://www.youtube.com/watch?v=dI3bGeT31Bo&t=2412s

I was trying to resize logical volumes on my LVM on LUKS setup and I believe I was successful using these sources:

https://wiki.archlinux.org/title/Resizing_LVM-on-LUKS
https://wiki.archlinux.org/title/LVM

I used to be able to login to my desktop environment by entering the passphrase. However, I could no longer login after my modifications and I am getting this grub rescue message instead:

Code: [Select]
Attempting to decrypt master key...
Slot 0 opened
error: attempt to read or write outside of disk 'lvmid/(some gibberish...)'
Entering rescue mode...
grub rescue>

Sorry for my unprofessionalism and any help will be truly appreciated.
Title: Re: Tried To Resize LVM on LUKS
Post by: masterarchitect on 08 February 2024, 20:12:50
Forgot to mention, I used a USB flash install media for the resizing steps.

A solution that I thought of was decrypting the LVM on LUKS partition permanently using the USB flash install media. Not sure if that would work...

https://wiki.archlinux.org/title/Removing_system_encryption#Removing_LUKS_via_Backup-Format-Restore

This is a similar to my LVM on LUKS layout: https://wiki.archlinux.org/title/dm-crypt/Encrypting_an_entire_system#LVM_on_LUKS

Title: Re: Tried To Resize LVM on LUKS
Post by: masterarchitect on 09 February 2024, 20:25:02
So I reverted all changes and I finally was able to log back into my disk THANK GOD! I will mark this post as solved and I'll do the resizing stuff later on in my spare time :P