Is any way to copy file system from VirtualBox .vdi file (or others like that) to physical partition on a hard drive?
There is probably a utility to do this, but you can do it rather easily without any special software, which is always a useful trick to know, as it will work with any type of virtualization software.
Simply boot up a live image in the virtual machine with .vdi attached. Make sure networking is enabled and the machine with the target disk and guest can see each other. Then, dd the virtual partition and pipe to netcat on the guest, and receive it on the host system with netcat and write to the partition with dd.
On the target machine run:
It will wait. Inside the guest run:
This is assuming the source and target devices are exactly the same size, which they probably are not.
Note that the target machine does not have to be the virtualization host machine, it can be any machine that the guest machine can reach over the network.
For special software to manipulate .vdi images in a variety of ways see: Mount a VirtualBox drive image (vdi)?
http://superuser.com/questions/114445/is-it-possible-to-convert-virtual-machines-to-physical-environments I searched vdi to physical and this was the first of many existing posts on this issue. Remember Google first then ask.
You should copy the contents of the file system instead of writing an image to a physical disk in bitwise mode. This is especially recommended for SSDs with TRIM support, because when TRIM kicks in it will delete files that it doesn't know about (it just starts to clean blocks where it assumes that no files are stored, which is the case for everything that is written in bitwise mode to a SSD). Additionally, copying files to a new file system automatically defragments the files for you.
You can use
At last you need to re-install the boot loader, to have a functional booting operating system. GRUB and GRUB2 can be re-installed via live CD with the