39
22
I would like to make a VirtualBox .vdi image out of my hard drive.
I've found howto's online that describe doing this by first usind DD to create a .raw image, then using VBoxManage to convert the .raw to a .vdi. SO if my HD is 1 TB, this process (temporarily) requires 2TB of space, to store both the .raw and .vdi.
I only have a bit more than 1TB of free space. Is there a way to create a .vdi image of a hard drive, without first having to create a .raw image?
This is risky, but if you have your hard drive that you want to P2V, then you could create the image on your spare drive with about 1TB Free. Then format your original drive and copy the RAW file to the original drive. Then convert the RAW to VDI back onto your main drive. However, if it gets screwed up (could happen) then you're stuck with a RAW Image and no original. – kobaltz – 2013-07-02T01:03:25.173
@kolbatz I considered this, but I thought that it had a high chance of failure. When I image the hard drive, the resulting .raw file is the size of the hard drive. But before copying the file back to the original drive, I need to give the drive a filesystem. This involves writing some metadata to the drive, leaving not enough space to hold the drive-sized file. – SuperElectric – 2013-07-02T04:30:51.503