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:~# lvexten…


This content originally appeared on DEV Community and was authored by Zen Oh

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>

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

Reference:


This content originally appeared on DEV Community and was authored by Zen Oh


Print Share Comment Cite Upload Translate Updates
APA

Zen Oh | Sciencx (2024-07-04T03:16:24+00:00) How to Expand Ubuntu Drive. Retrieved from https://www.scien.cx/2024/07/04/how-to-expand-ubuntu-drive/

MLA
" » How to Expand Ubuntu Drive." Zen Oh | Sciencx - Thursday July 4, 2024, https://www.scien.cx/2024/07/04/how-to-expand-ubuntu-drive/
HARVARD
Zen Oh | Sciencx Thursday July 4, 2024 » How to Expand Ubuntu Drive., viewed ,<https://www.scien.cx/2024/07/04/how-to-expand-ubuntu-drive/>
VANCOUVER
Zen Oh | Sciencx - » How to Expand Ubuntu Drive. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/07/04/how-to-expand-ubuntu-drive/
CHICAGO
" » How to Expand Ubuntu Drive." Zen Oh | Sciencx - Accessed . https://www.scien.cx/2024/07/04/how-to-expand-ubuntu-drive/
IEEE
" » How to Expand Ubuntu Drive." Zen Oh | Sciencx [Online]. Available: https://www.scien.cx/2024/07/04/how-to-expand-ubuntu-drive/. [Accessed: ]
rf:citation
» How to Expand Ubuntu Drive | Zen Oh | Sciencx | https://www.scien.cx/2024/07/04/how-to-expand-ubuntu-drive/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.