Page 1 of 1

Raw Partition Ubuntu Guest on Same Disk

Posted: 30. Apr 2013, 20:24
by levmatta
I am having problems trying to run a Ubuntu that is living in a raw partition of the same disk as the Windows 8 Host.
My system is configured as dual boot with Ubuntu 13.04 -- fresh recent install -- and the Windows 8 -- 2 months old and updated --.

I am using PowerShell as Administrator:

Code: Select all

cd 'C:\Program Files\Oracle\VirtualBox'
.\VBoxManage internalcommands listpartitions -rawdisk \\.\PhysicalDrive0
This results in partition 7 (the root Ubuntu partition) and partition 6 (swap).

Then I ran:

Code: Select all

.\VBoxManage internalcommands createrawvmdk -filename "D:\VMs\LeLinuxVM\ubuntu_raw.vmdk" -rawdisk \\.\PhysicalDrive0 -partitions 7,6 -relative -register
# Error:  "6 is not a command"
.\VBoxManage internalcommands createrawvmdk -filename "D:\VMs\LeLinuxVM\ubuntu_raw.vmdk" -rawdisk \\.\PhysicalDrive0 -partitions 7 -relative -register
# Error: -register
.\VBoxManage internalcommands createrawvmdk -filename "D:\VMs\LeLinuxVM\ubuntu_raw.vmdk" -rawdisk \\.\PhysicalDrive0 -partitions 7 -relative
# Error: -relative
.\VBoxManage internalcommands createrawvmdk -filename "D:\VMs\LeLinuxVM\ubuntu_raw.vmdk" -rawdisk \\.\PhysicalDrive0 -partitions 7,6
# Error:  "6 is not a command"
.\VBoxManage internalcommands createrawvmdk -filename "D:\VMs\LeLinuxVM\ubuntu_raw.vmdk" -rawdisk \\.\PhysicalDrive0 -partitions 7
#SUCCESS
(Why Do I get the error on the 6 partition ????? isn't -relative required for this to work?? -- but it seams that it does not work on Windows hosts -- )

This created 2!! files, one "ubuntu_raw.vmdk" AND one "ubuntu_raw-pt.vmdk", and I bound one the first to the VM setting -- the other one gives an error.

Finally when I run the VM (starting the manager as Admin), it starts, GRUB2 load, I select Ubuntu, screen goes Blank, and Nothing happens.

Thanks for any help.

Re: Raw Partition Ubuntu Guest on Same Disk

Posted: 30. Apr 2013, 21:49
by noteirak
What about :

Code: Select all

.\VBoxManage internalcommands createrawvmdk -filename "D:\VMs\LeLinuxVM\ubuntu_raw.vmdk" -rawdisk \\.\PhysicalDrive0 -partitions 6,7 -relative -register
or

Code: Select all

.\VBoxManage internalcommands createrawvmdk -filename "D:\VMs\LeLinuxVM\ubuntu_raw.vmdk" -rawdisk \\.\PhysicalDrive0 -partitions 6 -relative -register

Re: Raw Partition Ubuntu Guest on Same Disk

Posted: 30. Apr 2013, 23:05
by levmatta
Both fail, but just partition 6 without -relative and/or -register Works (but has no use for me beacause it is the swap).

Thanks, I am still trying to find something on the net but no success.