iamtheky Posted November 16, 2009 Posted November 16, 2009 (edited) The following works excellent for a single partition occupying the entire disk. I would like to specify a C partition with <size>20000</size> and a D partition that is extended occupying the rest of the disk.I have tried many a different ways to accomplish this and 7 liked none of them, so I figured it best to provide the working single disk and let some kind soul add the additional disk with the proper syntax I seem to lack. <DiskConfiguration> <Disk wcm:action="add"> <CreatePartitions> <CreatePartition wcm:action="add"> <Order>1</Order> <Type>Primary</Type> <Extend>true</Extend> </CreatePartition> </CreatePartitions> <ModifyPartitions> <ModifyPartition wcm:action="add"> <Active>true</Active> <Format>NTFS</Format> <Label>Seven</Label> <Letter>C</Letter> <Order>1</Order> <PartitionID>1</PartitionID> </ModifyPartition> </ModifyPartitions> <DiskID>0</DiskID> <WillWipeDisk>true</WillWipeDisk> </Disk> <WillShowUI>OnError</WillShowUI> </DiskConfiguration> Edited November 18, 2009 by iamtheky
jbm Posted November 18, 2009 Posted November 18, 2009 I modified this from what I use <DiskConfiguration> <WillShowUI>OnError</WillShowUI> <Disk wcm:action="add"> <DiskID>0</DiskID> <WillWipeDisk>true</WillWipeDisk> <CreatePartitions> <CreatePartition wcm:action="add"> <Order>1</Order> <Size>20000</Size> <Type>Primary</Type> </CreatePartition> <CreatePartition wcm:action="add"> <Order>2</Order> <Extend>true</Extend> <Type>Primary</Type> </CreatePartition> </CreatePartitions> <ModifyPartitions> <ModifyPartition wcm:action="add"> <Active>true</Active> <Format>NTFS</Format> <Label>Windows</Label> <Order>1</Order> <Letter>C</Letter> <PartitionID>1</PartitionID> </ModifyPartition> <ModifyPartition wcm:action="add"> <Format>NTFS</Format> <Label>Data</Label> <Order>2</Order> <Letter>D</Letter> <PartitionID>2</PartitionID> </ModifyPartition> </ModifyPartitions> </Disk> </DiskConfiguration>It creates a 20GB partion and a second that covers the rest of the drive.Both are Primary partitions.
iamtheky Posted November 18, 2009 Author Posted November 18, 2009 Thank you sir. I will reply with a result in the morning.
jbm Posted November 18, 2009 Posted November 18, 2009 Thank you sir. I will reply with a result in the morning.I had tested this on vmware with two disk drives and it was working fine.Then I decided to delete all the partitions.After that I got the following errorSo...
iamtheky Posted November 18, 2009 Author Posted November 18, 2009 No worries, a coworker got one functional today I will post that to this thread.
jbm Posted November 18, 2009 Posted November 18, 2009 I found the problemWas trying to install to disk 1 when I changed it to disk 0 it worked.On my physical computer disk 0 is a eSata drive and disk 1 and 2are internal drives. Guess I'll have to stick with manuallychoosing the partition
iamtheky Posted November 18, 2009 Author Posted November 18, 2009 (edited) **for a system with a single hard drive**This makes a C drive of 20GBand a D drive that occupies the restapparently you have to have a logical partition to extend or vice versa, im still hunting that down <DiskConfiguration> <Disk wcm:action="add"> <CreatePartitions> <CreatePartition wcm:action="add"> <Order>1</Order> <Type>Primary</Type> <Extend>false</Extend> <Size>20000</Size> </CreatePartition> <CreatePartition wcm:action="add"> <Extend>true</Extend> <Order>3</Order> <Type>Logical</Type> </CreatePartition> <CreatePartition wcm:action="add"> <Order>2</Order> <Extend>true</Extend> <Type>Extended</Type> </CreatePartition> </CreatePartitions> <ModifyPartitions> <ModifyPartition wcm:action="add"> <Active>true</Active> <Format>NTFS</Format> <Label>Winblows7</Label> <Letter>C</Letter> <Order>1</Order> <PartitionID>1</PartitionID> <Extend>false</Extend> </ModifyPartition> <ModifyPartition wcm:action="add"> <Active>false</Active> <Extend>false</Extend> <Format>NTFS</Format> <Label>DataTest</Label> <Letter>D</Letter> <Order>2</Order> <PartitionID>2</PartitionID> </ModifyPartition> </ModifyPartitions> <DiskID>0</DiskID> <WillWipeDisk>true</WillWipeDisk> </Disk> <WillShowUI>OnError</WillShowUI> </DiskConfiguration> Edited November 18, 2009 by iamtheky
MrJinje Posted November 18, 2009 Posted November 18, 2009 Was trying to install to disk 1 when I changed it to disk 0 it worked.On my physical computer disk 0 is a eSata drive and disk 1 and 2are internal drives.That is exactly why I prefer to partition manually, each of my machines is different, and is too easy to wipe the wrong drive.
iamtheky Posted November 18, 2009 Author Posted November 18, 2009 (edited) indeed the above code is for machines with a single disk split in 2 partitions.-fixed the above to post to reflect as such. Edited November 18, 2009 by iamtheky
jbm Posted November 19, 2009 Posted November 19, 2009 indeed the above code is for machines with a single disk split in 2 partitions.-fixed the above to post to reflect as such.Your code creates one primary partition (C:) and one extened partition with one logical drive (D:)Mine creates two primary partitions. (C: D:). Both will work as far as installing windows.The only reason I can see to create an extended partition is if you want to have a drivepartitioned into more the four drives.
jbm Posted November 19, 2009 Posted November 19, 2009 Was trying to install to disk 1 when I changed it to disk 0 it worked.On my physical computer disk 0 is a eSata drive and disk 1 and 2are internal drives.That is exactly why I prefer to partition manually, each of my machines is different, and is too easy to wipe the wrong drive.Before I've always partitioned manually. Just had a bug to try something new.I keep backups of my backups for just this reason
iamtheky Posted November 19, 2009 Author Posted November 19, 2009 I apologize, i had misread your earlier post and thought you were indicating that what you had posted had an error.The one I posted is one my coworker made by throwing my .xml into WAIK and adding the second partition.I always thought the thinking was 1 primary partition per OS. Then again, I just re-learned that an extended partition is just a container for logical partitions, so I could be wholly incorrect
jbm Posted November 19, 2009 Posted November 19, 2009 I apologize, i had misread your earlier post and thought you were indicating that what you had posted had an error.The one I posted is one my coworker made by throwing my .xml into WAIK and adding the second partition.I always thought the thinking was 1 primary partition per OS. Then again, I just re-learned that an extended partition is just a container for logical partitions, so I could be wholly incorrect No Problem
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