Skip to content
  • Größe der LUKS Partition verändern (erweitern)

    1. cryptsetup luksOpen /dev/sdaX luks to open the encrypted volume.
    2. parted /dev/sda to extend the partition. resizepart NUMBER END.
    3. vgchange -a n vg0. Stop using the VG so you can do the next step.
    4. cryptsetup luksClose luks. Close the encrypted volume for the next steps.
    5. cryptsetup luksOpen /dev/sdaX luks. Open it again.
    6. cryptsetup resize luks. Will automatically resize the LUKS volume to the available space.
    7. vgchange -a y vg0 Activate the VG.
    8. pvresize /dev/mapper/luks Resize the PV.
    9. lvresize -l+100%FREE /dev/vg0/home Resize the LV for /home to 100% of the free space.
    10. e2fsck -f /dev/mapper/vg0-home Throw some fsck magic at the resized fs.
    11. resize2fs /dev/mapper/vg0-home Resize the filesystem in /home (automatically uses 100% free space)

    (src: https://unix.stackexchange.com/a/322631)

0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment