swain90 Posted May 31, 2012 Share Posted May 31, 2012 (edited) Hi I am using part of a unattended xml file for the disk partitions which was kindly shared by negatiiv which looks like this; (this works fine I have no problems using this)<DiskConfiguration> <Disk wcm:action="add"> <CreatePartitions> <CreatePartition wcm:action="add"> <Order>1</Order> <Size>200</Size> <Type>Primary</Type> </CreatePartition> <CreatePartition wcm:action="add"> <Order>2</Order> <Type>Primary</Type> <Extend>true</Extend> </CreatePartition> </CreatePartitions> <ModifyPartitions> <ModifyPartition wcm:action="add"> <Active>true</Active> <Format>NTFS</Format> <Label>System</Label> <Order>1</Order> <PartitionID>1</PartitionID> </ModifyPartition> <ModifyPartition wcm:action="add"> <Format>NTFS</Format> <Label>Windows</Label> <Order>2</Order> <PartitionID>2</PartitionID> </ModifyPartition> </ModifyPartitions> <DiskID>0</DiskID> <WillWipeDisk>true</WillWipeDisk> </Disk> </DiskConfiguration> <ImageInstall> <OSImage> <InstallTo> <DiskID>0</DiskID> <PartitionID>2</PartitionID> </InstallTo> <WillShowUI>OnError</WillShowUI> </OSImage> </ImageInstall>My issue is that when im trying to add a 3rd partition using the following code it doesn't work and shows the Diskparition UI not sure why ? <DiskConfiguration> <Disk wcm:action="add"> <CreatePartitions> <CreatePartition wcm:action="add"> <Order>1</Order> <Size>200</Size> <Type>Primary</Type> </CreatePartition> <CreatePartition wcm:action="add"> <Order>2</Order> <Size>20000</Size> <Type>Primary</Type> <Extend>true</Extend> </CreatePartition> <CreatePartition wcm:action="add"> <Order>3</Order> <Type>Primary</Type> <Extend>true</Extend> </CreatePartition> </CreatePartitions> <ModifyPartitions> <ModifyPartition wcm:action="add"> <Active>true</Active> <Format>NTFS</Format> <Label>System</Label> <Order>1</Order> <PartitionID>1</PartitionID> </ModifyPartition> <ModifyPartition wcm:action="add"> <Format>NTFS</Format> <Label>Windows</Label> <Order>2</Order> <PartitionID>2</PartitionID> </ModifyPartition> <ModifyPartition wcm:action="add"> <Format>NTFS</Format> <Label>Backup</Label> <Order>3</Order> <PartitionID>3</PartitionID> </ModifyPartition> </ModifyPartitions> <DiskID>0</DiskID> <WillWipeDisk>true</WillWipeDisk> </Disk> </DiskConfiguration> <ImageInstall> <OSImage> <InstallTo> <DiskID>0</DiskID> <PartitionID>2</PartitionID> </InstallTo> <WillShowUI>OnError</WillShowUI> </OSImage> </ImageInstall>As you can see the only bits I have added are the bits in red not sure why its not working any help would be greatly appriciated!ThanksSwain90 Edited May 31, 2012 by swain90 Link to comment Share on other sites More sharing options...
jaclaz Posted May 31, 2012 Share Posted May 31, 2012 As you can see the only bits I have added are the bits in red not sure why its not working any help would be greatly appriciated!Which SIZE is that partiion? <CreatePartitions><CreatePartition wcm:action="add"><Order>1</Order><Size>200</Size><Type>Primary</Type></CreatePartition><CreatePartition wcm:action="add"><Order>2</Order><Size>20000</Size><Type>Primary</Type><Extend>true</Extend></CreatePartition><CreatePartition wcm:action="add"><Order>3</Order><.....><Type>Primary</Type><Extend>true</Extend></CreatePartition></CreatePartitions>jaclaz Link to comment Share on other sites More sharing options...
swain90 Posted May 31, 2012 Author Share Posted May 31, 2012 (edited) I was hoping it would fill up the rest of the drive space the HDD is 25GB, 200mb for System, 20GB for Windows Install and i was wanting the 3rd Partition to use the remaining of the driveEdit: I've also tried setting the 3rd Partition to 1GB <Size>1000</Size> and this has made no difference Edited May 31, 2012 by swain90 Link to comment Share on other sites More sharing options...
jaclaz Posted May 31, 2012 Share Posted May 31, 2012 I was hoping it would fill up the rest of the drive space the HDD is 25GB, 200mb for System, 20GB for Windows Install and i was wanting the 3rd Partition to use the remaining of the driveEdit: I've also tried setting the 3rd Partition to 1GB <Size>1000</Size> and this has made no differenceYep, but I would guess that you cannot EXTEND BOTH partition 2 and 3....What happens with :<CreatePartitions><CreatePartition wcm:action="add"><Order>1</Order><Size>200</Size><Type>Primary</Type><Extend>false</Extend></CreatePartition><CreatePartition wcm:action="add"><Order>2</Order><Size>20000</Size><Type>Primary</Type><Extend>false</Extend></CreatePartition><CreatePartition wcm:action="add"><Order>3</Order><Size>1000</Size><Type>Primary</Type><Extend>true</Extend></CreatePartition></CreatePartitions>In this case I guess that the "<Size>1000</Size>" is unneeded..jaclaz Link to comment Share on other sites More sharing options...
swain90 Posted May 31, 2012 Author Share Posted May 31, 2012 Ahhhh i shall try this and report back, thanks! Link to comment Share on other sites More sharing options...
swain90 Posted May 31, 2012 Author Share Posted May 31, 2012 MANY THANKS!!!!!It now reads as this and works; <DiskConfiguration> <Disk wcm:action="add"> <CreatePartitions> <CreatePartition wcm:action="add"> <Order>1</Order> <Size>200</Size> <Type>Primary</Type> </CreatePartition> <CreatePartition wcm:action="add"> <Order>2</Order> <Size>20000</Size> <Type>Primary</Type> <Extend>False</Extend> </CreatePartition> <CreatePartition wcm:action="add"> <Order>3</Order> <Type>Primary</Type> <Extend>True</Extend> </CreatePartition> </CreatePartitions> <ModifyPartitions> <ModifyPartition wcm:action="add"> <Active>true</Active> <Format>NTFS</Format> <Label>System</Label> <Order>1</Order> <PartitionID>1</PartitionID> </ModifyPartition> <ModifyPartition wcm:action="add"> <Active>true</Active> <Format>NTFS</Format> <Label>Windows</Label> <Order>2</Order> <PartitionID>2</PartitionID> </ModifyPartition> <ModifyPartition wcm:action="add"> <Format>NTFS</Format> <Label>Backup</Label> <Order>3</Order> <PartitionID>3</PartitionID> </ModifyPartition> </ModifyPartitions> <DiskID>0</DiskID> <WillWipeDisk>true</WillWipeDisk> </Disk> </DiskConfiguration> <ImageInstall> <OSImage> <InstallTo> <DiskID>0</DiskID> <PartitionID>2</PartitionID> </InstallTo> <WillShowUI>OnError</WillShowUI> </OSImage> </ImageInstall> Link to comment Share on other sites More sharing options...
jaclaz Posted May 31, 2012 Share Posted May 31, 2012 MANY THANKS!!!!!It now reads as this and works;Good. (though I would add a "<Extend>False</Extend>" to 1st partition, as a placeholder as it won't do any harm or - to be coherent - remove the "<Extend>False</Extend>" from 2nd partition)jaclaz Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now