• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Mister PKI

SSL Certificates * SSL Tools * Certificate Decoder

  • PKI Training
  • OpenSSL
  • Keytool
  • PKI Tools
    • Apereo CAS
    • SAML
    • OpenID Connect
  • Get expert help

Extend Ubuntu Disk Space

September 6, 2024 by Mister PKI Leave a Comment

The purpose of this article is to extend the Ubuntu disk space. This article will focus on Ubuntu 24.04 LTS, but can likely be used on other Ubuntu versions. You have likely discovered this article because you created a new VM (Virtual Machine) based off of a template and in the creation of the VM the disk space was set to an amount higher than the template. Alternatively you may have discovered this article because you ran out of disk space, added more disk space in your VMWare (or other) instance, and need to apply the new disk space to the server. Either way, this article should help you extend the disk space in your Ubuntu server. These instructions are based on Ubuntu 24.04 and should not be used for production until thoroughly tested on a dev server. Backups should be made before attempting these steps. Please note that these instructions are for a VM and have not been tested on a bare metal server.

Presumably you have already made more disk space available to the VM. These steps will pick up after that.

  1. Check your existing free space on your volume group.
df -h
  1. Use disk space from an extended virtual disk. Run cfdisk to see if there is free space listed.
cfdisk
  1. Choose the /dev/sda3 partition from the list and then select “Resize” from the menu on the bottom. Hit the enter key again to confirm. Then select “Write” from the menu on the bottom, type yes, hit enter, then select “Quit“.
  2. Run df -h again to check the disk space. As you can see, the filesystem has not yet been resized.
  3. Resize the partition.
pvresize /dev/sda3
lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
  1. Confirm the filesystem has been resized by running df -h.

Conclusion – Extend Ubuntu Disk Space

This article has demonstrated how to extend the disk space on an Ubuntu VM. Please leave us a comment if you have any question. Read more of our Linux content.

linux,  Ubuntu

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Popular Posts

PKCS12

openssl s_client

Keytool

Keytool list

ECDSA vs RSA

OpenSSL

PKCS7

Certificate Decoder

PKI for DevOps Engineers – Free Training Series

PKI for DevOps Training Hub

Lesson 1 – How TLS and PKI Work

Lesson 2 – Understanding X.509 Certificates

Lesson 3 – Certificate Chains Explained

Lesson 4 – Debug TLS with OpenSSL

Lesson 5 – Verify Certificate Chains

Lesson 6 – Creating CSRs with OpenSSL

Lesson 7 – Working with PKCS12 Certificates

Lesson 8 – Java Keystores and keytool

Lesson 9 – Certificate Expiration Monitoring

Lesson 10 – Automating Certificate Renewal

Lesson 11 – Common TLS Errors

Lesson 12 – PKI Architecture for DevOps

Recent Posts

  • Apache mod_auth_cas: Protect Web Applications with Apereo CAS and Docker
  • Apache mod_auth_mellon: Configure SAML SSO & Docker
  • Configure OpenID Connect (OIDC) in Apereo CAS 7.3 and 8
  • Certificate Ownership Is an Operating Model Problem, Not a Tooling Problem
  • OpenSSL dgst: Create Checksums and Verify Digital Signatures

Footer

  • Twitter
  • YouTube
Mister PKI

Practical security engineering for the systems that establish trust.

Learn OpenSSL Keytool Free training
Work together PKI consulting CAS consulting Sponsored contributions
Site About Support Mister PKI Cookie policy Search
© 2026 Mister PKI Secure systems. Clear guidance.