gareththegod Posted March 7, 2011 Share Posted March 7, 2011 Hi all.I've been trying to get an unattended.xml to wipe all of the partition information on disk 0. Then create 2 partitions a 100MB System (boot files) (Label System) and the rest of the drive as C (label OS).I have created a drive that works formatting with one partition but I can't make it work.Another small problem is that it keeps asking me to pick the language at first start. I would like this to be English (United Kingdom).I'm using an all in one disk so it prompts for the OS version as well. Is it possible to remove this sometimes.Find attached my file that I'm having problems with.GarethUnattend with 2 partitions.xml Link to comment Share on other sites More sharing options...
trainee Posted March 7, 2011 Share Posted March 7, 2011 I'm not really an expert here, but I think what you are missing is the entry to wipe the disk first: <WillWipeDisk>true</WillWipeDisk>I snagged the relevant section out of my autounattended.xml:<DiskConfiguration> <WillShowUI>OnError</WillShowUI> <Disk wcm:action="add"> <DiskID>0</DiskID> <WillWipeDisk>true</WillWipeDisk> <CreatePartitions> <CreatePartition> <Order>1</Order> <Type>Primary</Type> <Size>100</Size> </CreatePartition> <CreatePartition> <Order>2</Order> <Type>Primary</Type> <Extend>true</Extend> </CreatePartition> </CreatePartitions> <ModifyPartitions> <ModifyPartition wcm:action="add"> <Label>System Reserved</Label> <Format>NTFS</Format> <Active>true</Active> <Order>1</Order> <PartitionID>1</PartitionID> </ModifyPartition> <ModifyPartition wcm:action="add"> <Label>Main</Label> <Format>NTFS</Format> <Letter>C</Letter> <Order>2</Order> <PartitionID>2</PartitionID> </ModifyPartition> </ModifyPartitions> </Disk></DiskConfiguration> Link to comment Share on other sites More sharing options...
gareththegod Posted March 8, 2011 Author Share Posted March 8, 2011 I have resolved my problem with the drives not formatting. I had <Extend>true</Extend> when I was setting the size causing it to not work.See below the fixed code: <DiskConfiguration> <Disk wcm:action="add"> <CreatePartitions> <CreatePartition wcm:action="add"> <Extend>false</Extend> <Order>1</Order> <Type>Primary</Type> <Size>100</Size> </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> <TypeID>0x27</TypeID> </ModifyPartition> <ModifyPartition wcm:action="add"> <Active>true</Active> <Format>NTFS</Format> <Label>OS</Label> <Letter>C</Letter> <Order>2</Order> <PartitionID>2</PartitionID> </ModifyPartition> </ModifyPartitions> <DiskID>0</DiskID> <WillWipeDisk>true</WillWipeDisk> </Disk> </DiskConfiguration>Does any one know how to remove these screens?? 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