Skip to main contentNedix.io

VirtualBox

Connecting a physical drive

This applies to Windows installations.

List partitions

vboxmanage internalcommands listpartitions -rawdisk \\.\PhysicalDrive0

Create the disk file

vboxmanage internalcommands createrawvmdk -filename "C:\Users\user\VirtualBox VMs\Fedora\RawDisk.vmdk" -rawdisk \\.\PhysicalDrive0 -partitions 4,5

Import the disk file into the virtual machine