August 18, 2020
Resize partition on running Linux instance
Step 1: Add storage
As an example, we'll pick AWS and will add 5GB(60->65 GB).
Step 2: Resize physical partition
Use lsblk | grep -v loop
to list all available disks and partitions
sudo growpart /dev/{device_label} {index}
to resize partition
Step 3: Tell the system to use newly available space
sudo resize2fs /dev/{partition_label}
df -h /
to check results
August 18, 2020, 09:17
0 views
0 reactions