Page 1 of 1

[SOLVED] resize virtual HDD

Posted: 26. May 2013, 07:49
by Mayagrafix
OpenSUSE 12.3 with KDE 4 notified me that i was running low on disk space on my home folder, so using the modifyhd command, I doubled the size of the VDI. Soon after, the Guest OS (OpenSUSE 12.3) will not allow me as user to log in, but works OK with root. I can however, log in with user name in console mode. From the console, I can use startx and get the GUI going (as root).

My question is, could this problem be related to re-sizing the VDI hard disk?

Thanks for any help.

Re: resize virtual HDD

Posted: 26. May 2013, 10:08
by noteirak
Did you resize the partition inside the guest aswell?

Re: resize virtual HDD

Posted: 26. May 2013, 16:52
by Mayagrafix
noteirak wrote:Did you resize the partition inside the guest aswell?
duhh... ok, guilty as charged. How should I proceed? I am familiar with Gparted, can I use it in KDE?

The message says I'm at 0% of available space on the Home partition. Yet when I look it up in Dolphin it says only using 30% of available space.

Thanks for ur help.

Re: resize virtual HDD

Posted: 26. May 2013, 17:30
by Perryg
Sounds like you are using LVM, so Gparted won't help. Google how to increase the home partition using LVM if that is indeed what you have.

Re: resize virtual HDD

Posted: 27. May 2013, 05:22
by Mayagrafix
No LVM, have a VDI - dynamically allocated image - and want to use KDE Partition Manager. How should I proceed? not much in the VBox user manual other than "you will typically next need to use a partition management tool inside the guest to adjust the main partition to fill the drive".

So far I figured out how to add a second VDI as a startup disk so the original main disk is not active, but partition management tool inside the guest will not resize partition.

Re: resize virtual HDD

Posted: 27. May 2013, 09:38
by noteirak
The VDI is just like a physical hard drive - the VDI would be the raw hardware. You still need partitions on it. LVM would be your partitioning scheme.
Are you using LVM in the guest?

Re: resize virtual HDD

Posted: 27. May 2013, 23:04
by Mayagrafix
My guess is YES - although VirtualBox created a dynamically allocated image for the hard disk, it was the SUSE OS installer which used the default partitioning scheme, and from what I understand, that would be LVM.

Re: resize virtual HDD

Posted: 27. May 2013, 23:06
by noteirak
Then you need to extend the logical volume within your VM, just like you would do it on a regular physical PC.

Re: resize virtual HDD

Posted: 28. May 2013, 22:12
by Mayagrafix
After downloading OpenSUSE RescueCD ISO I added it to the broken Vbox, set it up as a Live! CD and booted from there. Gparted the VDI hard disk and faster than u can say Bob ur uncle, I have a working, twice the space hard drive.

Thanks for all the help. 8)