Jump to content

Recommended Posts

Posted

I have a hard disk which is about 150GB and I want to create two partitions on it. The following script shows how I did that, but it does not work. I got an error something like "error parsing DiskConfiguration". Could anyone help me out? thx

<DiskConfiguration>
<Disk>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
<CreatePartitions>
<CreatePartition>
<!-- Create primary partition, 50GB --!>
<Order>1</Order>
<Type>Primary</Type>
<Size>50000</Size>
</CreatePartition>
<!-- Create extended partition and fill the rest of the hard disk --!>
<CreatePartition>
<Order>2</Order>
<Type>Extended</Type>
<Extended>true</Extended>
</CreatePartition>
<!-- Create logical partition within the extended partition --!>
<CreatePartition>
<Order>2</Order>
<Type>Logical</Type>
<Extended>true</Extended>
</CreatePartition>
<CreatePartitions>
<ModifyPartitions>
<ModifyPartition>
<Order>1</Order>
<PartitionID>1</PartitionID>
<Letter>C</Letter>
<Format>NTFS</Format>
<Active>true</Active>
</ModifyPartition>
<ModifyPartition>
<Order>2</Order>
<PartitionID>2</PartitionID>
<Letter>D</Letter>
<Format>NTFS</Format>
</ModifyPartition>
</ModifyPartitions>
<Disk>
</DiskConfiguration>


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...