HDs changing number
Posted: 19. Oct 2014, 10:46
Hi everyone,
I'm using a couple of raw disks to move data between different systems and for testing purposes.
I'm running Virtualbox on a Windows 7 Host and the guest is a FreeBSD (ZFS) machine.
Everything is ok, I can even use disks in a mirror/RAIDZ1 and export/import them to a physical FreeBSD machine,
the only problem is that every time I start Windows, the drive number changes, so I have to re-create the raw disk with
the new drive number.
As you can see in this image this time raw disks are number 0 and 4. The previous time they were 3 and 4 (only number 3 moved this time).

I looked around and found this guide:
http://scarygliders.net/2011/10/28/virt ... t-numbers/
The problem is that Windows sees the drives (as you can see in the previous image), gpart lists them, but they don't get an actual ArcName:

Raw disks are indeed multi(0)disk(0)rdisk(3) and multi(0)disk(0)rdisk(5), but if I try to run the code
I get this (obviously since they have no ArcName):
Is there a way to stop drives changing number?
Or is there a way to 'register' ArcName in Windows?
Or just a virtualbox way of registering the hardware so even if disks have a new number it will still recognise them?
Thanks in advance,
Gherardo
I'm using a couple of raw disks to move data between different systems and for testing purposes.
I'm running Virtualbox on a Windows 7 Host and the guest is a FreeBSD (ZFS) machine.
Everything is ok, I can even use disks in a mirror/RAIDZ1 and export/import them to a physical FreeBSD machine,
the only problem is that every time I start Windows, the drive number changes, so I have to re-create the raw disk with
the new drive number.
As you can see in this image this time raw disks are number 0 and 4. The previous time they were 3 and 4 (only number 3 moved this time).

I looked around and found this guide:
http://scarygliders.net/2011/10/28/virt ... t-numbers/
The problem is that Windows sees the drives (as you can see in the previous image), gpart lists them, but they don't get an actual ArcName:

Raw disks are indeed multi(0)disk(0)rdisk(3) and multi(0)disk(0)rdisk(5), but if I try to run the code
Code: Select all
vboxmanage internalcommands createrawvmdk -filename WD30EFRX1.vmdk -rawdisk "\\.\GLOBALROOT\ArcName\multi(0)disk(0)rdisk(3)"Code: Select all
VBoxManage.exe: error: Cannot open the raw disk '\\.\GLOBALROOT\ArcName\multi(0)
disk(0)rdisk(3)': VERR_FILE_NOT_FOUND
VBoxManage.exe: error: The raw disk vmdk file was not createdOr is there a way to 'register' ArcName in Windows?
Or just a virtualbox way of registering the hardware so even if disks have a new number it will still recognise them?
Thanks in advance,
Gherardo