Creating Physical disk VMDK file help

Discussions related to using VirtualBox on Windows hosts.

Creating Physical disk VMDK file help

Postby MIRKOSOFT » 21. Nov 2017, 23:41

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   Expand viewCollapse view
VBoxManage internalcommands listpartitions -rawdisk \\.\PhysicalDrive5

It reports error:
Code: Select all   Expand viewCollapse view
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   Expand viewCollapse view
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   Expand viewCollapse view
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
MIRKOSOFT
 
Posts: 68
Joined: 25. Dec 2015, 02:23

Return to VirtualBox on Windows Hosts

Who is online

Users browsing this forum: Google [Bot] and 35 guests