# expand ext4 partition

It is very ease to expand ext4 partition with **growpart**.

1. Backup current partition table

> sfdisk -d /dev/sdb &gt; sdb\_partition\_bak.dmp

1. Execute dry-run to see what will be changed. If you don't have this tool. Run *apt-get install cloud-utils*

> growpart -N /dev/sdb 1

2. If everything is fine

> growpart /dev/sdb 1

3. Resize file system. It may take 10 seconds

> resize2fs /dev/sdb1

4. Check the new size

> df -h