User Tools

Site Tools


You are not allowed to perform this action
linuxresizepartition

Resizing partitions on Linux

Resize encrypted filesystem within Cryptsetup/LVM2

  1. lvextend -l +100%FREE /dev/mapper/webster-websterlv
  2. cryptsetup resize webster
  3. e2fsck -f /dev/mapper/webster
  4. resize2fs /dev/mapper/webster

Resize partition/container/file system

  1. Extend the partition itself
    growpart /dev/sda 3
  2. Extend the logical volume
    lvextend -l +100%FREE /dev/mapper/ubuntu–vg-ubuntu–lv
  3. Resize the FS
    resize2fs /dev/mapper/ubuntu–vg-ubuntu–lv
linuxresizepartition.txt · Last modified: by wolfo

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki