How to Expand Ubuntu Drive

mss

Zen Oh

Posted on July 4, 2024

How to Expand Ubuntu Drive

When you are using vmware to create Ubuntu Server VM, it will only use half of the assigned hard drive storage if you are not changing it in the installation process. Here is how to resize it.

root@util:~# vgdisplay
<snip>
root@util:~# lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv
<snip>
root@util:~# resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
<snip>
Enter fullscreen mode Exit fullscreen mode

This method still works in Ubuntu 24.04 as of today (2024-07-04)

Reference:

💖 💪 🙅 🚩
mss
Zen Oh

Posted on July 4, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

What was your win this week?
weeklyretro What was your win this week?

November 29, 2024

Where GitOps Meets ClickOps
devops Where GitOps Meets ClickOps

November 29, 2024

How to Use KitOps with MLflow
beginners How to Use KitOps with MLflow

November 29, 2024

Modern C++ for LeetCode 🧑‍💻🚀
leetcode Modern C++ for LeetCode 🧑‍💻🚀

November 29, 2024