Create a raw disk redirection vmdk in Virtualbox

Original Post here.

VBoxManage internalcommands createrawvmdk -filename d:\VMs\gCFRAW.vmdk -rawdisk \\.\PhysicalDrive4

C:\Program Files\Oracle\VirtualBox>VBoxManage internalcommands createrawvmdk -filename d:\VMs\gCFRAW.vmdk -rawdisk \\.\PhysicalDrive4

Oracle VM VirtualBox Command Line Management Interface Version 3.2.8
(C) 2005-2010 Oracle Corporation
All rights reserved.

RAW host disk access VMDK file d:\VMs\gCFRAW.vmdk created successfully.

You can also access specific partitions of host physical disk from VirtualBox, run the same command with additional switches,

VBoxManage internalcommands createrawvmdk -filename c: \Users \sunuser \.Virtualbox \VDI \ mydrive.vmdk -rawdisk \ \. \ PhysicalDrive4 -partitions 1,4

1,4 : are the partitions numbers of PhysicalDrive 0. It will allow you to access the first and fourth partitions of the physical drive.

This command also will create a VMDK file and you can access the drives as explained in first method.

 

Has one comment to “Create a raw disk redirection vmdk in Virtualbox”

You can leave a reply or Trackback this post.
  1. Thanks for guide me to create a raw disk redirection vmdk in Virtualbox.

Write a Reply or Comment

Your email address will not be published.