User Tools

Site Tools


linuxresizepartition

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
linuxresizepartition [2025/03/20 13:25] – ↷ Page name changed from lvmcryptsetupresizepartition to linuxresizepartition wolfolinuxresizepartition [2025/03/20 13:32] (current) wolfo
Line 1: Line 1:
 +====== Resizing partitions on Linux ======
 ===== Resize encrypted filesystem within Cryptsetup/LVM2 ===== ===== Resize encrypted filesystem within Cryptsetup/LVM2 =====
  
Line 5: Line 6:
   - ''e2fsck -f /dev/mapper/webster''   - ''e2fsck -f /dev/mapper/webster''
   - ''resize2fs /dev/mapper/webster''   - ''resize2fs /dev/mapper/webster''
 +
 +===== Resize partition/container/file system =====
 +  - Extend the partition itself \\ ''growpart /dev/sda 3''
 +  - Extend the logical volume \\ ''lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv''
 +  - 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