Page 1 of 1

Creating Physical disk VMDK file help

Posted: 21. Nov 2017, 23:41
by MIRKOSOFT
Hi!

I want to add physical disk to VBOX - I was reading manual and want to be sure about the commands.

First I tried to display partitions of disk 6 by command:

Code: Select all

VBoxManage internalcommands listpartitions -rawdisk \\.\PhysicalDrive5
It reports error:

Code: Select all

VBoxManage.exe: error: Cannot open the raw disk: VERR_SHARING_VIOLATION
Means it that it needs to set sharing of disk or partition?

Commands which I tried not while it reports error at partition list:
Create disk named APPS-NTFS.vmdk on L:\ root with access to 2nd partition of disk 6 (count beginning 1, command by 0) disk is formatted by NTFS, compression enabled:

Code: Select all

VBoxManage internalcommands createrawvmdk -filename L:\APPS-NTFS.vmdk -rawdisk \\.\PhysicalDrive5 -partitions 1
Create disk named DOS-FAT.vmdk on L:\ root with access 3rd patitiion of disk 6 (count beginning 1, command by 0) disk is formatted by FAT:

Code: Select all

VBoxManage internalcommands createrawvmdk -filename L:\DOS-FAT.vmdk -rawdisk \\.\PhysicalDrive5 -partitions 2
Please confirm me commands that are not mistakes - I'm trying to do it first time.
Thank you for help.
Miro