Page 1 of 1
creating with rawdisk on an existing partition
Posted: 23. Feb 2009, 19:03
by mess-mate
Hi,
i can create the virtualbox with rawdisk and partitions 1.
When i enter virtualbox, it seems created for the entire disk but the first partition is only 50G.
Did i something wrong or is the parameter -partition 1 not working.
My virtualbox version = 2.1.4
Posted: 23. Feb 2009, 19:49
by TerryE
Sorry but you need to give us more specific details: what exactly do you type in your VBoxManage command(s)? What exactly were the errors?
Posted: 23. Feb 2009, 20:12
by mess-mate
I've typed:
Code: Select all
VBoxManage internalcommands createrawvmdk -filename ~/Vbox/win2000.vmdk -rawdisk /dev/hda -partitions 1 -register -mbr mbr.mbr
and the vbox was created. But for the entire disk space, not the first partition.
Posted: 23. Feb 2009, 20:45
by Sasquatch
The first partition is accessible, the rest isn't.
Posted: 23. Feb 2009, 20:53
by mess-mate
Thanks, but why the created vbox is about 149G large and the partition i'd selected only 50G ?
Code: Select all
Number Type StartCHS EndCHS Size (MiB) Start (Sect)
1 0x0c 0 /1 /1 1023/254/63 50610 63
5 0x83 1023/254/63 1023/254/63 70 103651443
6 0x83 1023/254/63 1023/254/63 1427 103796028
7 0x83 1023/254/63 1023/254/63 23838 106719858
8 0x83 1023/254/63 1023/254/63 9538 155541393
9 0x83 1023/254/63 1023/254/63 1906 175076433
10 0x83 1023/254/63 1023/254/63 3812 178980228
11 0x83 1023/254/63 1023/254/63 1906 186787818
12 0x83 1023/254/63 1023/254/63 956 190691613
13 0x83 1023/254/63 1023/254/63 956 192651543
14 0x82 1023/254/63 1023/254/63 666 194611473
15 0x83 1023/254/63 1023/254/63 20002 195976998
16 0x83 1023/254/63 1023/254/63 16747 231 942748
hda1 is a primary partition.
Posted: 23. Feb 2009, 23:04
by TerryE
mess-mate wrote:I've typed:
Code: Select all
VBoxManage internalcommands createrawvmdk -filename ~/Vbox/win2000.vmdk -rawdisk /dev/hda -partitions 1 -register -mbr mbr.mbr
and the vbox was created. But for the entire disk space, not the first partition.
Read the documentation carefully. As sasquatch says your VMDK looks like the full disk, but you only have r/w access to the partitions that you specify.