You are not logged in.

#1 2023-07-02 09:04:37

nolooper
Member
Registered: 2023-06-12
Posts: 2

Resizing LUKS encrypted root partition

I'm a noob so please explain clearly.
I've realized that I need a bigger root partition so I booted up a live usb and tried using gparted to grow the partition but it didnt let me due to it being encrypted.
Does anyone know how I could alternatively grow it without removing/tampering any existing data?
Any help appreciated.

Offline

#2 2023-07-08 01:51:17

plma
Member
Registered: 2023-07-07
Posts: 11

Re: Resizing LUKS encrypted root partition

You may be interested in this: https://semanticlab.net/sysadmin/encryp … partition/

It's for Ubuntu but probably will work for Arch as well so just do:

cryptsetup resize dm_crypt-3
pvresize /dev/mapper/dm_crypt-3
lvextend -l +100%FREE /dev/mapper/epiphany-root
resize2fs /dev/mapper/epiphany-root

Always make sure to do a backup as something may always go wrong!

Offline

Board footer

Powered by FluxBB