Extending your Unallocated Disk after expanding it on Virtual Box 7.0 on an Ubuntu Server CLI

Ok to start I have found a lot of tutorials out there online and only one worked with a little bit of adjustment from my side based on what i have setup from my end I am creating this entry so this might help others who might be struggling to get this to work on your end if you happen to have the same output as I have.

to cut this short. I basically followed this from Ryan's blog except for the very last command as I had a different output and I am missing the correct syntax needed.



As you can see my logical volume (lvm) with "/" mount point is different from what Ryan is so the lvextend command did not work for me. I had difficulty finding the correct syntax online but manage to find it on my own. Here is my command for the last part of Ryan's tutorial.

lvextend -r /dev/mapper/ubuntu--vg-ubuntu--lv /dev/sda3 

This is based on my system, you still need to tweak the command base on your output.


Here is my result after running that last command to complete the tutorial.

Hope this one helps those who are learning ubuntu.

Thanks!

#ubuntu
#linux
#howto

Comments