Recently I repartitioned my harddrive and had to recreate VMDK file which is used to access some of my physical partitions by guest machine.
You can do it using the command
Code:
$ sudo vboxmanage internalcommands createrawvmdk -filename test.vmdk -rawdisk /dev/sda -partitions 1,3
The result did not satisfy me, because guest machine required RW access to entire /dev/sda.
Looking for description of VMDK format I have found
this.
So, I modified the lines in VMDK file...