2

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

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

PS. Obviously you need to install Virtualbox to be able to do it...

1 Answers1

5

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.