creating with rawdisk on an existing partition

Discussions related to using VirtualBox on Linux hosts.
Post Reply
mess-mate
Posts: 8
Joined: 23. Feb 2009, 15:21

creating with rawdisk on an existing partition

Post 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
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Post 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?
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
mess-mate
Posts: 8
Joined: 23. Feb 2009, 15:21

Post 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.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

The first partition is accessible, the rest isn't.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
mess-mate
Posts: 8
Joined: 23. Feb 2009, 15:21

Post 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.
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Post 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.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
Post Reply