Resizing HDD (Linux)
- Resize disk with any solution (GParted, etc).
- Use
lsblk
to get the partition you want to expand. -
sudo growpart /dev/sda 2
# 2 is the partition you want to increase in size. -
sudo resize2fs /dev/sda2
lsblk
to get the partition you want to expand.sudo growpart /dev/sda 2
# 2 is the partition you want to increase in size.sudo resize2fs /dev/sda2