41
22
I created a VM using VirtualBox and realized it was too small. After some time I managed to create a new, bigger hard drive.
Live GParted CD image (v.022):
Now I need to integrate the unallocated space to the /dev/sda5
partition.
- Right-clicking on sda5 shows the option to resize but I dont get any free space before or after.
- I though that perhaps I needed to extend the sda2 partition first but right-clicking on sda2 does not allow me to resize.
Do you have any useful advice?
this image sourced from the linux HOST or GUEST (aka VM) – linuxdev2013 – 2015-05-22T00:33:42.593
The image is from the guest VM, sorry if I was not clear – papnikol – 2015-05-22T00:38:05.560
2Okay , Is the vg crypted OR just mounted in both cases it needs to be unmounted and additionally in the first case decrypted and unmounted – linuxdev2013 – 2015-05-22T00:40:01.327
1It is not encrypted. Since I started from the gparted live cd, shouldn't all partitions be unmounted? If not, how do I unmount them from gparted? – papnikol – 2015-05-22T01:06:31.947
2the lock implies mounted or crypted select them should have
unmount
option – linuxdev2013 – 2015-05-22T01:56:05.963The lock you mentioned was the problem. There was a choice called deactivate, I used it, increased the extended partition (sda2) and then increased the lvm partition (sda5). It worked fine. Still, when I enter my VM I see only the previous space as available, but I suspect I must do something to increase th filesystem in the, now allocated, space. – papnikol – 2015-05-22T16:42:02.710
lvextend -r /dev/sda5 should fix that (the -r 'flag' tells the system to resize the filesystem as well) – linuxdev2013 – 2015-05-24T13:06:38.517
Yes, I already found out, after your help, and wrote something similar in the answer – papnikol – 2015-05-24T13:09:52.160