Sunday, July 21, 2024

Extend a BTRFS filesystem on LUKS protected partition

My computer's root partition is a BTRFS sub-volume inside of a LUKS encrypted partition. Its space is running low. Fortunately the SSD has unallocated space after the LUKS partition.

Steps,

  1. run parted /dev/nvme0n1
  2. type resizepart to resize the LUKS partition
  3. type q to quit
  4. run cryptsetup resize {name_of_the_dm} -v to grow the LUKS volume.
  5. run btrfs filesystem resize max /

Credits

  • https://blog.tinned-software.net/increase-the-size-of-a-luks-encrypted-partition/
  • https://btrfs.readthedocs.io/en/latest/btrfs-filesystem.html

No comments:

Post a Comment