[Insights](/insights/) / [Engineering Playbooks](/insights/engineering_playbooks/)

# How to extend EC2 ext3 filesystem

How to extend disk on existing EC2 instance

![Ivan Borshchov](https://static.devforth.io/adminusers/avatars/2026/48db9847-d461-40cd-b344-f2bd7b0d98ca-avatar_ivan@devforth.io_f4ce9df9-8363-4314-9345-28753c76a386.jpeg)

Ivan Borshchov

CEO & System Architect @ Devforth

May 25, 2020

![How to extend EC2 ext3 filesystem](https://static.devforth.io/posts/logo-svg/2026/9054bf87-0d10-45be-9640-a9b5b20ede61-logo-preview-new.svg)

![How to extend EC2 ext3 filesystem](https://static.devforth.io/posts/logo-svg/2026/9054bf87-0d10-45be-9640-a9b5b20ede61-logo-preview-new.svg)

On Amazon console go to `Volumes`, Right-click on item attached to your EC2 instance, enter new size (In the example I extended up to `32G`):

![Extend EC2 ext3](https://static.devforth.io/posts/images/2026/ff720dad-1059-4104-a908-4372ceadfadb-image_1772018609318.png)

Extend EC2 ext3

Login into your EC2 instance and write:

```bash
lsblk
```

It will show partitions:

```
NAME    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
loop0     7:0    0 93.8M  1 loop /snap/core/8935
loop1     7:1    0   18M  1 loop /snap/amazon-ssm-agent/1566
loop2     7:2    0 93.9M  1 loop /snap/core/9066
xvda    202:0    0   32G  0 disk
└─xvda1 202:1    0    8G  0 part /
```

We see `xvda` with `32Gb` and `xvda1` with old size `8Gb`, lets extend it.

Run:

```bash
sudo growpart /dev/xvda 1
sudo resize2fs /dev/xvda1
```

[

Back to insights

](/insights)

[](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fdevforth.io%2Finsights%2Fhow-to-extend-ec2-ext3-filesystem)[](https://bsky.app/intent/compose?text=How%20to%20extend%20EC2%20ext3%20filesystem%0A%0Ahttps%3A%2F%2Fdevforth.io%2Finsights%2Fhow-to-extend-ec2-ext3-filesystem)[](https://x.com/intent/tweet?text=How%20to%20extend%20EC2%20ext3%20filesystem%20by%20%40ivanborshchov%0A%0Ahttps%3A%2F%2Fdevforth.io%2Finsights%2Fhow-to-extend-ec2-ext3-filesystem)
