Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 had but other partitions had quite a bit of space. The partition scheme is:

primary partitions:

/boot 60M ext4

extended partitions:

/ 6.5G ext4

swap 512M ext4

/tmp 512M ext4

/var 1G ext4

/home 5G ext4

I booted from 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.

So,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.


share|improve this question
  • use tar (as root) to pack the whole system into a .tar.gz file.
  • set up partitions for the new system, mount all disks where they belong
  • untar everything to the new system
  • check files like /etc/fstab to make sure everything is still valid.

tar is able to store permission, times and owners of all files. Therefore the new system should look exactly like the old one.

share|improve this answer

I would recommend using clonezilla. Here's a good tutorial that will walk you through most of how to clone you existing VMs partition to the new one you created on the 2nd virtual device.

share|improve this answer
clonezilla looks promising let me try it out thanks. – rsjethani Dec 25 '12 at 8:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.