MSFN Forum: <SOLVED>Will Create System partition Windows Partition But Not - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

<SOLVED>Will Create System partition Windows Partition But Not Autounattend.xml Partition Issue

#1 User is offline   swain90 

  • Newbie
  • Group: Members
  • Posts: 25
  • Joined: 07-July 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 31 May 2012 - 03:57 AM

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!

Thanks

Swain90

This post has been edited by swain90: 31 May 2012 - 06:31 AM



#2 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,409
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 31 May 2012 - 04:19 AM

View Postswain90, on 31 May 2012 - 03:57 AM, said:

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? :whistle:

Quote

<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

#3 User is offline   swain90 

  • Newbie
  • Group: Members
  • Posts: 25
  • Joined: 07-July 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 31 May 2012 - 04:23 AM

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 drive


Edit: I've also tried setting the 3rd Partition to 1GB <Size>1000</Size> and this has made no difference

This post has been edited by swain90: 31 May 2012 - 04:31 AM


#4 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,409
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 31 May 2012 - 05:33 AM

View Postswain90, on 31 May 2012 - 04:23 AM, said:

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 drive


Edit: I've also tried setting the 3rd Partition to 1GB <Size>1000</Size> and this has made no difference


Yep, but I would guess that you cannot EXTEND BOTH partition 2 and 3....


What happens with :unsure::

Quote

<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

#5 User is offline   swain90 

  • Newbie
  • Group: Members
  • Posts: 25
  • Joined: 07-July 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 31 May 2012 - 05:38 AM

Ahhhh i shall try this and report back, thanks!

#6 User is offline   swain90 

  • Newbie
  • Group: Members
  • Posts: 25
  • Joined: 07-July 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 31 May 2012 - 06:30 AM

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>



#7 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,409
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 31 May 2012 - 07:20 AM

View Postswain90, on 31 May 2012 - 06:30 AM, said:

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

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy