How can I clone a (physical) hard drive directly to a vdi image on WINDOWS

0

This questions is based on How can I clone a hard drive directly to a vdi image

ps. I've did this question only to share the answer.

Michel Conrado Diz

Posted 2019-03-22T00:30:49.560

Reputation: 1

So you have to install vbox first? – Moab – 2019-03-22T00:40:57.723

what? didn't get it. Of Course? – Michel Conrado Diz – 2019-03-22T00:47:33.697

Clearly you cannot do it in Windows without installing something first, your answer does not include all one has to do before creating the image, so it is an incomplete answer. – Moab – 2019-03-22T01:18:08.310

Well, I assume that anyone who is going to read this has the basics of logic in their heads. Master a keyboard and mouse that will understand what this issue is that I raised. Obviously you need to install Virtual Box. The whole situation behind it is about Virtual Box... – Michel Conrado Diz – 2019-03-22T01:22:07.197

Quote VDI: This format is the VirtualBox-specific VirtualBox Disk Image and stores data in files bearing a ".vdi" – Michel Conrado Diz – 2019-03-22T01:24:23.063

Answers

0

I've did this question only to share the answer.

cd  C:\Program Files\Oracle\VirtualBox

First check the driver with:

VBoxManage internalcommands listpartitions -rawdisk \.\PhysicalDrive1

\.\PhysicalDrive0

\.\PhysicalDrive1

\.\PhysicalDrive2 ... and so on. If you see the right one with partitions and exact size, memorize the name.

Now you just do like:

VBoxManage convertfromraw \\.\PhysicalDrive0 MyImage.vdi --format VDI

Converting from raw image file="\.\PhysicalDrive0" to file="MyImage.vdi"...

Creating dynamic image with size 120034123776 bytes (114474MB)...

I've tested just to copy a Windows install from a small SSD. And then I ran in Virtualbox 6.

Michel Conrado Diz

Posted 2019-03-22T00:30:49.560

Reputation: 1