The steps below is taken from : Extending partitions on Linux VMware virtual machines | TechRepublic . To view the pictures mentioned in the step, please go to the site, i have modified the step from that site, as some steps were not clearly explained and missing:
Thats all
Ref:
http://www.techrepublic.com/blog/smbit/extending-partitions-on-linux-vmware-virtual-machines/286
It works fine.
Thank you so much @kilavan! It (still) works!
I appreciate this article was written a long time ago but some of the steps appear to need updating.
In step 25 i did not see the Volume Group name with df. Instead i found a command called vgdisplay which showed it was called 'turnkey' in my case.
I would suggest seperating the two commands in step into two different numbered actions. i.e.
25a Run vgdisplay and note Volume Group name
25b vgextend <Volume Group name> <Partition name> eg. vgextend turnkey /dev/sda3
Also in step 26 it is not clear how you found the VolGroup name. What i did was ls /dev/mapper/turnkey* (i.e. the Volume Group) and found there was a /dev/mapper/turnkey-root and /dev/mapper/turnkey-swap_1. I used the turnkey-root at it worked
Hi,
when I do the step 8, /dev/sda does not show up and when I do the step 11, it throws an error:
This disk is currently in use - repartitioning is probably a bad idea. It's recommended to umount all file systems, and swapoff all swap partitions on this disk.
How can I fix this?
Thanks for the guide. I just googled around and found this page on top.
After reading your post, considering it's written in 2013 (now is 2024), it was best practice back then.
But I would like to suggest my method.
TDLR: if anyway you have to reboot, I would boot to ubuntu live cd, then use "gparted" to resize the partition.
Details.
1. Up to step 5, it's same.
2. boot using ubuntu installer CD, choose (I just want to try ubuntu) - This will let you use gui environment.
3. Once the desktop appears, find gparted in the apps.
4. select the disk, use the handle to extend the size of your partition.
5. save & apply & reboot to your original disk.