Page 1 of 1

Connecting phisycal partitions

PostPosted: 2. Jul 2012, 12:31
by angelinux71
Hi all,

on a Linux Ubuntu 12.04 Hosts, I want to make usable from a Windows Virtual-box machine a partition that is a true phisycal windows partition.
The partition is a NTFS partition hosted in an extended one.

What I did:

With the "listpartitions" option I've discovered the partition is number 5, then:

Code: Select all   Expand viewCollapse view
sudo VBoxManage internalcommands createrawvmdk -filename Dati.vmdk -rawdisk /dev/sda -partitions 5
RAW host disk access VMDK file Dati.vmdk created successfully.


But when I try to connect the image at the virtual machine, it says is not correct
Code: Select all   Expand viewCollapse view
NS_ERROR_FAILURE (0x80004005)


I try to check if there is some permission issue, but it does seems to help.

Any idea??

Thanks in advance.

Angelo

Re: Connecting phisycal partitions

PostPosted: 2. Jul 2012, 14:28
by Perryg
On the command to create you need to add -relative
http://www.virtualbox.org/manual/ch09.html#rawdisk

Re: Connecting phisycal partitions

PostPosted: 4. Jul 2012, 15:46
by angelinux71
It does not seems to be enough.... getting the same error....

Re: Connecting phisycal partitions

PostPosted: 4. Jul 2012, 16:02
by Perryg
Using RAW is really tricky and I assume you have read all of the warnings in the link I sent you.
That said it is not something that can be diagnosed remotely. Be sure that you use absolute paths and case letters matter.

Re: Connecting phisycal partitions

PostPosted: 4. Jul 2012, 16:43
by angelinux71
I tried all that I found in your suggestion and other resources, that actually points the same informations.
Something is not correct, but I can't find it. Maybe I will try another strategy. My laptop is dual-boot Win7/Ubuntu, I would like to recycle the "Data" partition of the Win side in a Virtual Machine that runs into ubuntu to get full access to Office documents (Libre Office does not completely guarantee compatibility with the "rest of the world" near to me). Maybe I can reach the same result using the Folder sharing feature...

Thanks for every suggestion and help!

Angelo

Re: Connecting phisycal partitions

PostPosted: 21. Aug 2012, 16:14
by ringods
I bumped into the same problems initially, but found a stable solution. As a note to myself, I described it into a blog article:

VirtualBox and raw host disk access