Is it not possible to access raw disks from Windows 8.1 x64 Host?
I'm trying to access a 3TB GPT SATA disk.
There are two problems I'm experiencing.
#1) createrawvmdk does not appear to work for sata drives in Windows 8.1 (it did work for a USB Flash drive).
Flash drive success:
Code: Select all
c:\Program Files\Oracle\VirtualBox>VBoxManage.exe internalcommands createrawvmdk -filename "c:\Users\Admin\Documents\USBDrive.vmdk" -rawdisk "\\.\PhysicalDrive3"
RAW host disk access VMDK file c:\Users\Admin\Documents\test.vmdk created successfully.
Code: Select all
c:\Program Files\Oracle\VirtualBox>VBoxManage.exe internalcommands createrawvmdk -filename "c:\Users\Admin\Documents\PhysicalDrive.vmdk" -rawdisk "\\.\PhysicalDrive0"
VBoxManage.exe: error: Cannot open the raw disk '\\.\PhysicalDrive0': VERR_SHARING_VIOLATION
VBoxManage.exe: error: The raw disk vmdk file was not created
Code: Select all
c:\Program Files\Oracle\VirtualBox>diskpart
Microsoft DiskPart version 6.3.9600
Copyright (C) 1999-2013 Microsoft Corporation.
On computer: TEST
DISKPART> list disk
Disk ### Status Size Free Dyn Gpt
-------- ------------- ------- ------- --- ---
Disk 0 Offline 2794 GB 0 B *
Disk 3 Online 7640 MB 7168 KB
DISKPART>
Modified file contents of test.vmdk:
Code: Select all
# Disk DescriptorFile
version=1
CID=xxxxxxx
parentCID=ffffffff
createType="fullDevice"
# Extent description
RW 5860533168 FLAT "\\.\PhysicalDrive0" 0
# The disk Data Base
#DDB
ddb.virtualHWVersion = "4"
ddb.adapterType="sata"
ddb.geometry.cylinders="16383"
ddb.geometry.heads="16"
ddb.geometry.sectors="63"
ddb.uuid.image="xxxxxxxxxxxxx"
ddb.uuid.parent="00000000-0000-0000-0000-000000000000"
ddb.uuid.modification="00000000-0000-0000-0000-000000000000"
ddb.uuid.parentmodification="00000000-0000-0000-0000-000000000000"
#2) VirtualBox believes the raw disk is set to read-only.
Using the Linux created vmdk, VirtualBox thinks the disk is read-only...
However, this is not true. Again, looking at disk part:
Code: Select all
DISKPART> attribute disk
Current Read-only State : No
Read-only : No
Boot Disk : No
Pagefile Disk : No
Hibernation File Disk : No
Crashdump Disk : No
Clustered Disk : No
Code: Select all
Failed to open a session for the virtual machine
Failed to open image 'C:\Users\Admin\Documents\PhysicalDisk.vmdk' for writing due to wrong permissions (VERR_VD_IMAGE_READ_ONLY).
Failed to attach driver below us! Image is read-only. (VERR_VD_IMAGE_READ_ONLY).
AHCI: Failed to attach drive to Port1 (VERR_VD_IMAGE_READ_ONLY).
Thanks in advance.