---
title: "Discussion on \"Increase The Disk Size of EC2 Ubuntu Instance\" | Hashnode"
description: "Discussion on \"Increase The Disk Size of EC2 Ubuntu Instance\". Oh no! You server is running out of disk space?\nDon't worry this article will guide you through the steps to increase the disk size/ storage of your AWS EC2 server.\nThe following steps are for** Ubuntu 20.04** EC2 server and volume type** ext4**.\nSTE..."
url: "https://hashnode.com/posts/increase-the-disk-size-of-ec2-ubuntu-instance/60cf22a9c6377540dd23958b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Increase The Disk Size of EC2 Ubuntu Instance](https://thedatalife.com/increase-the-disk-size-of-ec2-ubuntu-instance?utm_source=hashnode&utm_medium=feed)

Oh no! You server is running out of disk space? Don't worry this article will guide you through the steps to increase the disk size/ storage of your AWS EC2 server. The following steps are for\*\* Ubuntu 20.04\*\* EC2 server and volume type\*\* ext4\*\*. STE...

Jun 20, 2021 · 3 min read · thedatalife.com  
Updated Oct 10, 2023  
Read the article

-   [#ec2](https://hashnode.com/tag/ec2)
-   [#aws](https://hashnode.com/tag/aws)
-   [#server](https://hashnode.com/tag/server)
-   [#ubuntu](https://hashnode.com/tag/ubuntu)
-   [#amazon-web-services](https://hashnode.com/tag/amazon-web-services)

## Written by

[Niccolo Lampa](https://hashnode.com/@thedatalife)

@thedatalife

  
[View profile](https://hashnode.com/@thedatalife)

Stay stoked and code.

Full stack developer who loves to code, hack and surf.

## Responses 1

Markdown supported · ⌘↵ to post

[Nitin Kalra](https://hashnode.com/@nkalra0123)

[Jun 20, 2021](https://hashnode.com/posts/increase-the-disk-size-of-ec2-ubuntu-instance/60cf22a9c6377540dd23958b/comment/60cf588407db7a50332bf761)

Do you really need to resize manually?

I read that cloud\_init script automatically does that for you. [kichik.com/2020/09/03/how-does-aws-ebs-expand-vol…](https://kichik.com/2020/09/03/how-does-aws-ebs-expand-volumes/)

[Niccolo Lampa](https://hashnode.com/@thedatalife)

[Jun 20, 2021](https://hashnode.com/posts/increase-the-disk-size-of-ec2-ubuntu-instance/60cf22a9c6377540dd23958b/comment/60cf588407db7a50332bf761#reply-60cf83aed213af500c5d1cd4)

I would suggest you use steps consistent with AWS official documentation.

Besides you won't do this often and with only few steps, automating the process seems unnecessary.

But up to you if you want to risk the valuable data in your live deploy server by trusting an automatic script found in the internet, just to save on some work.

Easy to just execute any script for a development server. It is different when you are working with an actual live deploy server.

I would suggest that you go with the safer and "longer" approach.

There is so much at stake that taking a shortcut to save a few minutes and making a mistake would mean more work in the long run.

[Nitin Kalra](https://hashnode.com/@nkalra0123)

[Jun 21, 2021](https://hashnode.com/posts/increase-the-disk-size-of-ec2-ubuntu-instance/60cf22a9c6377540dd23958b/comment/60cf588407db7a50332bf761#reply-60d075d8d213af500c5d30de)

[Niccolo Lampa](https://hashnode.com/@thedatalife)

[cloudinit.readthedocs.io/en/latest](https://cloudinit.readthedocs.io/en/latest/)

this script is already present in AMI

/usr/bin/cloud-init
