Adding physical disk failed - where I did mistake?

Discussions related to using VirtualBox on Windows hosts.

Adding physical disk failed - where I did mistake?

Postby MIRKOSOFT » 3. Dec 2017, 22:35

Hi!

I tried to attach to VM physical disk partition, I was following guide and failed.
First I addsharing of two partitions for 5 users with full access.
Then I opened command line as admin and typed commands below - you can see results:

Code: Select all   Expand viewCollapse view
E:\Desktop>cd C:\Program Files\Oracle\VirtualBox

E:\Desktop>c:

C:\Program Files\Oracle\VirtualBox>VBoxManage internalcommands listpartitions -rawdisk \\.\PhysicalDrive5
VBoxManage.exe: error: Cannot open the raw disk: VERR_SHARING_VIOLATION

C:\Program Files\Oracle\VirtualBox>VBoxManage internalcommands createrawvmdk -filename L:\APPS-NTFS.vmdk -rawdisk \\.\PhysicalDrive5 -partitions 1
VBoxManage.exe: error: Cannot open the raw disk '\\.\PhysicalDrive5': VERR_SHARING_VIOLATION
VBoxManage.exe: error: The raw disk vmdk file was not created

C:\Program Files\Oracle\VirtualBox>VBoxManage internalcommands createrawvmdk -filename L:\DOS-FAT.vmdk -rawdisk \\.\PhysicalDrive5 -partitions 2
VBoxManage.exe: error: Cannot open the raw disk '\\.\PhysicalDrive5': VERR_SHARING_VIOLATION
VBoxManage.exe: error: The raw disk vmdk file was not created

C:\Program Files\Oracle\VirtualBox>


Where do I mistake?

Thank you all for help.
Miro
MIRKOSOFT
 
Posts: 68
Joined: 25. Dec 2015, 02:23

Re: Adding physical disk failed - where I did mistake?

Postby socratis » 4. Dec 2017, 08:49

1) You could ask whoever wrote the guide you're following.
2) You need the disk to be ejected from the host, not being mounted.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 12648
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Re: Adding physical disk failed - where I did mistake?

Postby MIRKOSOFT » 4. Dec 2017, 11:15

what here means ejected? I mean it is not same as disconnected...

Miro
MIRKOSOFT
 
Posts: 68
Joined: 25. Dec 2015, 02:23

Re: Adding physical disk failed - where I did mistake?

Postby Martin » 4. Dec 2017, 11:19

Windows needs to unmount the disk partition so that nothing else from the OS is accessing/locking it.
Martin
Volunteer
 
Posts: 1823
Joined: 30. May 2007, 18:05
Primary OS: Fedora 18
VBox Version: PUEL
Guest OSses: XP, Win7, Linux, OS/2

Re: Adding physical disk failed - where I did mistake?

Postby socratis » 4. Dec 2017, 11:28

BTW, it's not just Windows, OSX needs the drive to be ejected/unmounted/whatever too, and I suspect so does Linux and Solaris.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 12648
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Re: Adding physical disk failed - where I did mistake?

Postby MIRKOSOFT » 4. Dec 2017, 11:43

Ok, really I'm not beginner in Windows but with this I meet never before...

So, I'm asking like beginner - how to do it?

Is enough to remove partition letter?

Miro
MIRKOSOFT
 
Posts: 68
Joined: 25. Dec 2015, 02:23

Re: Adding physical disk failed - where I did mistake?

Postby MIRKOSOFT » 8. Dec 2017, 23:47

I tried to remove drive letters, but helped not - same errors.

Can anybody help me?

Miro
MIRKOSOFT
 
Posts: 68
Joined: 25. Dec 2015, 02:23

Re: Adding physical disk failed - where I did mistake?

Postby socratis » 9. Dec 2017, 00:41

If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 12648
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Re: Adding physical disk failed - where I did mistake?

Postby MIRKOSOFT » 9. Dec 2017, 02:57

Ok, this I didn't knew really and my UEFI has feature which allows to work with drives like removable media... Quick Remove
But last Q is - it must to be unmounted always?
If only while running VirtualBox it's ok, but if always it is useless..

Miro
MIRKOSOFT
 
Posts: 68
Joined: 25. Dec 2015, 02:23

Re: Adding physical disk failed - where I did mistake?

Postby socratis » 9. Dec 2017, 09:49

The raw disk option requires the drive to be unmounted, as long as it is being used as a raw disk. You can of course mount it afterwards.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 12648
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Re: Adding physical disk failed - where I did mistake?

Postby MIRKOSOFT » 9. Dec 2017, 15:18

Yesterday evening I tried to unmount partition and tried also whole disk, but unmount button is gray and it means not usable.
When I triedunmount whole disk from taskbar icon, it reports error "Disk is in use, close programs..."

Today I tried to do the same after logoff and then logon - not success.

But really on disk or partitions which I want to unmount are no files - no data, so don't understand...

Miro
MIRKOSOFT
 
Posts: 68
Joined: 25. Dec 2015, 02:23

Re: Adding physical disk failed - where I did mistake?

Postby MIRKOSOFT » 13. Dec 2017, 01:33

No idea?

Miro
MIRKOSOFT
 
Posts: 68
Joined: 25. Dec 2015, 02:23

Re: Adding physical disk failed - where I did mistake?

Postby socratis » 13. Dec 2017, 10:34

This is not actually a VirtualBox question, per se. Treat it as such, and search the internet accordingly...
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 12648
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Re: Adding physical disk failed - where I did mistake?

Postby MIRKOSOFT » 13. Dec 2017, 12:24

So, I have to go to other forum for asking part of Q?

In posts above was recommened how to unmount disk for creating virtual disk from physical...
Sadly it looks like here is not so big support, sadly.

Miro
MIRKOSOFT
 
Posts: 68
Joined: 25. Dec 2015, 02:23

Re: Adding physical disk failed - where I did mistake?

Postby socratis » 13. Dec 2017, 12:45

All I said is to search the internet for your problem. Is that a hard thing to ask? Plus if I'm not mistaken, you do not have a support contract, right? So "demanding" support, is something that you're not entitled to. ;)
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 12648
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5


Return to VirtualBox on Windows Hosts

Who is online

Users browsing this forum: Yahoo [Bot] and 64 guests