How to Expand an Ubuntu Disk Without Losing Data | Step-by-Step Guide

Опубликовано: 04 Август 2026
на канале: From Lab to Job – Helping IT Professionals
194
10

How to Expand an Ubuntu Disk Without Losing Data | Step-by-Step Guide

Have you expanded your Ubuntu virtual disk in VMware, Hyper-V, or VirtualBox, but the df -h command still shows the old disk size?

Don't worry—this is a common issue.

In this hands-on tutorial, you'll learn how to safely expand an Ubuntu disk, extend the partition, resize the filesystem, and use the full disk capacity without reinstalling Ubuntu or losing any data.

This tutorial is perfect for:

Linux System Administrators
IT Support Engineers
DevOps Engineers
Cloud Engineers
Platform Engineers
Developers working with Linux virtual machines
📚 What You'll Learn

✅ Expand a virtual disk in VMware

✅ Verify the new disk size in Ubuntu

✅ Extend an existing Linux partition

✅ Resize the filesystem

✅ Verify the new disk space using df -h

✅ Understand the difference between Disk, Partition, and Filesystem

⏱️ Video Timeline
00:00 Introduction
00:49 Power off the Ubuntu virtual machine
01:27 Expand the virtual disk in VMware
02:43 Boot Ubuntu
02:57 Verify the current disk size using lsblk
03:16 Check the new disk size with fdisk
03:56 Install cloud-guest-utils
04:56 Extend the partition with growpart
06:12 Verify the partition size
06:30 Resize the ext4 filesystem
07:09 Verify the new disk space using df -h
07:43 Conclusion
💻 Commands Used
Power off the virtual machine
sudo poweroff
Check block devices
lsblk
Verify disk size
sudo fdisk -l
Install cloud-guest-utils
sudo apt update
sudo apt install cloud-guest-utils -y
Extend the partition
sudo growpart /dev/sda 2
Resize the ext4 filesystem
sudo resize2fs /dev/sda2
Verify disk usage
df -h
🚀 Topics Covered
Ubuntu Disk Expansion
Extend Ubuntu Partition
Resize ext4 Filesystem
growpart Tutorial
resize2fs Tutorial
VMware Disk Expansion
Linux Disk Management
Ubuntu Administration
Linux Storage Management
Ubuntu Virtual Machine
VMware Workstation
Hyper-V
Oracle VirtualBox
Linux for Beginners
Linux System Administration
DevOps Linux Tutorial
Cloud Engineer Linux Skills
🔗 Related Articles & Resources
Ubuntu Disk Management
Linux Filesystem (ext4)
GNU Parted (growpart)
VMware Workstation Documentation
Linux Storage Administration
Linux System Administration Tutorials

👍 If you found this video helpful, please Like, Subscribe, and turn on notifications for more practical tutorials on Linux, Cloud Computing, AWS, Docker, Kubernetes, and DevOps.

💬 Comment "DISK" if you'd like to see more tutorials on:

LVM (Logical Volume Manager)
RAID on Linux
Linux Disk Management
Filesystems (ext4, XFS)
Linux Storage Troubleshooting
#Ubuntu #Linux #LinuxTutorial #UbuntuLinux #LinuxAdmin #SystemAdministrator #DiskManagement #Filesystem #VMware #HyperV #VirtualBox #DevOps #CloudComputing #CloudEngineer #LinuxServer #Storage #AWS #Kubernetes #Docker #ITSupport