Few weeks back I installed Linux as a virtual machine on my Windows 7 system, but I didn't gave much thought to (or miscalculated) the size of various partitions and even worse I'm not using 'lvm'. Today I tried to installed Qt 5.0 SDK which required around 500MB of space in /tmp which I didn't have, but other partitions had quite a bit of space. The partition scheme is:
/boot 60M ext4
/ 6.5G ext4
swap 512M ext4
/tmp 512M ext4
/var 1G ext4
/home 5G ext4
I booted from an Ubuntu live cd and used gparted to get resize the /tmp partition, problem solved! But here I can see the benefit of using 'lvm'.
I want to create a new system which uses lvm. But instead of making a fresh install I think we can transfer my current system to a new hard disk.
I added another 100GB virtual hard disk to this virtual machine, created a 256 MB /boot primary partition and the rest of the space for an lvm partition. Now I have the various partitions (except /boot) on logical volumes (using this guide). Now comes the hard part, how do I move the system to this new disk properly?
Current configuration: Linux Mint 13 32 bit on Windows 7 32 bit using virtualbox 4.2.