If I don't specify partitions, the command works fine, but I'd rather have the .vmdk limited to the Linux partitions. It seems like it's just having trouble creating the file C:\linux-pt.vmdk; I don't know why that should be the case. Could this be a bug?
Here's the exact command I've been using, and the resulting error:
Code: Select all
C:\Program Files\innotek VirtualBox>VBoxManage.exe internalcommands createrawvmdk -filename C:\linux.vmdk -rawdisk \\.\PhysicalDrive0 -partitions 3,5
VirtualBox Command Line Management Interface Version 1.4.0
(C) 2005-2007 innotek GmbH
All rights reserved.
ERROR: VMDK: could not create new partition data file 'C:\linux-pt.vmdk'
Error code VERR_SHARING_VIOLATION at E:\vbox\w32-rel\src\VBox\Devices\Storage\VmdkHDDCore.cpp(2228) in function vmdkCreateImage
Error while creating the raw disk VMDK: VERR_SHARING_VIOLATION