Jump to content

Create 2 Partition


Recommended Posts

hi :hello:

can some one fix the DiskConfiguration part 4 me please

<component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<UseConfigurationSet>true</UseConfigurationSet>
<DiskConfiguration>
<WillShowUI>OnError</WillShowUI>
<Disk>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
<CreatePartitions>
<CreatePartition wcm:action="add">
<Order>1</Order>
<Type>Primary</Type>
<Size>105000</Size>
</CreatePartition>
<CreatePartition wcm:action="add">
<Order>2</Order>
<Extend>true</Extend>
<Type>Extended</Type>
</CreatePartition>
<CreatePartition wcm:action="add">
<Extend>true</Extend>
<Order>3</Order>
<Type>Logical</Type>
<Size>65000</Size>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition wcm:action="add">
<Order>1</Order>
<PartitionID>1</PartitionID>
<Letter>C</Letter>
<Label>Vista</Label>
<Format>NTFS</Format>
<Active>true</Active>
</ModifyPartition>
<ModifyPartition wcm:action="add">
<Order>2</Order>
<PartitionID>2</PartitionID>
<Letter>D</Letter>
<Label>XP</Label>
<Format>NTFS</Format>
<Extend>true</Extend>
</ModifyPartition>
</ModifyPartitions>
</Disk>
</DiskConfiguration>

Link to comment
Share on other sites


<component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<UseConfigurationSet>true</UseConfigurationSet>
<DiskConfiguration>
<Disk>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
<CreatePartitions>
<CreatePartition>
<Order>1</Order>
<Size>105000</Size>
<Type>Primary</Type>
</CreatePartition>
<CreatePartition>
<Extend>true</Extend>
<Order>2</Order>
<Type>Extended</Type>
</CreatePartition>
<CreatePartition>
<Extend>true</Extend>
<Order>3</Order>
<Type>Logical</Type>
<Size>65000</Size>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition>
<Format>NTFS</Format>
<Label>Vista</Label>
<Letter>C</Letter>
<Order>1</Order>
<PartitionID>1</PartitionID>
<Active>true</Active>
</ModifyPartition>
<ModifyPartition>
<Format>NTFS</Format>
<Label>XP</Label>
<Letter>D</Letter>
<Order>2</Order>
<PartitionID>2</PartitionID>
</ModifyPartition>
</ModifyPartitions>
</Disk>
</DiskConfiguration>

Link to comment
Share on other sites

What if I wanna split my disk 0 into the following desired configuration using WDS? Desired config:

Partition 1: Active, primary, size 3 GB and drive letter D:

Partition 2: Primary or extended with a logical drive, remaining drive space, drive letter C:

I wanna get this in place, so that the Vista boot files are placed on the D: drive (active) and the remaining

files on the C: drive, which would be the remaining Vista operating system. I wanna get this in place so that

we can run BitLocker.... my .xml fails when trying to deploying this configuration, and no luck so far:

XML:

<DiskConfiguration>
<Disk wcm:action="add">
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
<CreatePartitions>
<CreatePartition wcm:action="add">
<Extend>false</Extend>
<Order>1</Order>
<Type>Primary</Type>
<Size>3000</Size>
</CreatePartition>
<CreatePartition wcm:action="add">
<Extend>true</Extend>
<Order>2</Order>
<Type>Extended</Type>
</CreatePartition>
<CreatePartition wcm:action="add">
<Extend>true</Extend>
<Order>3</Order>
<Type>Logical</Type>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition wcm:action="add">
<Order>1</Order>
<PartitionID>1</PartitionID>
<Letter>H</Letter>
<Label>VistaBoot</Label>
<Format>NTFS</Format>
<Extend>false</Extend>
<Active>true</Active>
</ModifyPartition>
<ModifyPartition wcm:action="add">
<Order>2</Order>
<PartitionID>2</PartitionID>
<Letter>C</Letter>
<Label>BitLock</Label>
<Format>NTFS</Format>
<Extend>true</Extend>
<Active>false</Active>
</ModifyPartition>
</ModifyPartitions>
</Disk>
<WillShowUI>Never</WillShowUI>
</DiskConfiguration>

If I perform the same manual steps (using diskpart) from WinPE 2.0 and then kick of the installation, it works, just a matter of xml entries that seems to go wrong! The image goes to partition #2 with the following parameters:

<WindowsDeploymentServices>
<ImageSelection>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>2</PartitionID>
</InstallTo>
</ImageSelection>
</WindowsDeploymentServices>

Any thoughts? or even better, solutions to this one?

Thanks in advance!

Edited by Br4tt3
Link to comment
Share on other sites

<ModifyPartition wcm:action="add">
<Order>2</Order>
<PartitionID>2</PartitionID>
<Letter>C</Letter>
<Label>BitLock</Label>
<Format>NTFS</Format>
<Extend>true</Extend>
<Active>false</Active>
</ModifyPartition>

Try to change this to:

<ModifyPartition wcm:action="add">
<Order>2</Order>
<PartitionID>2</PartitionID>
<Letter>C</Letter>
<Label>BitLock</Label>
<Format>NTFS</Format>
<Extend>false</Extend>
<Active>false</Active>
</ModifyPartition>

Martin

Link to comment
Share on other sites

Tried it, works so far with some exceptions:

1. The drive letters are still messed up, the first primary drive still gets C: assigned, should be G:

2. The next partition (logical) gets assigned E: (?) even though I told it to use C:

Thanks for your response, I still dont know what the actual setting does, cause when reading the .chm file the most logical value should be True (as in fill up the remaining empty space to the drive).

Thanks again, man...

Link to comment
Share on other sites

...

Thanks for your response, I still dont know what the actual setting does, cause when reading the .chm file the most logical value should be True (as in fill up the remaining empty space to the drive).

...

Your filling up the remaining space of drive with the following command allready:

<CreatePartition wcm:action="add">
<Extend>true</Extend>
<Order>2</Order>
<Type>Extended</Type>
</CreatePartition>

So there is nothing left to extend when using Modifiy command. With the Modify command you're just attaching a drive letter to the drive and formating it in this case.

You're welcome!

Martin

Link to comment
Share on other sites

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...