---
# System prepended metadata

title: EC2 resizing partition after increasing disk size
tags: [AWS]

---

EC2 resizing partition after increasing disk size
===
###### tags: `AWS`
Use ```df -h``` to show filesystem usage
Shit! No free space.
![](https://i.imgur.com/GUoO5Vf.png)


Use ```lsblk``` to list all block device
![](https://i.imgur.com/ZU7RYoY.png)
Disk alreay increse to 64GB,
but our partition wasn't updated.

Use ```fdisk -l``` to list all disk partion information and type
![](https://i.imgur.com/gJz1rtD.png)


Install cloud-guest-utils, it's contains ```groupart``` for resizing a partition.
```apt install cloud-guests-utils```

Use ```growpsudoart``` to resize partition
![](https://i.imgur.com/EJ8TWbD.png)


Use ```resize2fs``` to resize partiotion
![](https://i.imgur.com/CrbSiq6.png)


Show Filesystem usage again
![](https://i.imgur.com/Eo83Aq8.png)
Yeah, resizing partition success!

