locked
Unattended partitioning RRS feed

  • Question

  • Hi all,
    I explain what I'm trying to do, I hope that someone could help me:

    I have to make a recovery partition that contains WES7 and all the software provided by default. The user have to start the recovery procedure by pressing a key at the startup.

    My problem is that this procedure must reinstall the operating system (main partition + system partition) and clean all the previous informations inside these two partitions. Inside of the disk there is a partition with all the user datas, and this one must be untouched and must maintain its drive letter.

    I'm trying to do this by using ICE and setting on Product > Operating System > Foundation Core > Windows > DiskConfiguration (right click, "Insert new disk "), I set some entries, I right click on "CreatePartitions " and "ModifyPartitions " and probably here I do something wrong because I don't get any good result (in almost every attempt i got an error message).

    Somone has tryed something similar and has any suggestion for doing this? I'm following the online guide for partition management but is not exhaustive.

    Thank you very much!

    Monday, August 2, 2010 10:14 AM

All replies

  • Is the hard drive partitioning consistent for all installations?  Are you guaranteed to know the partition ID of the partition that you want to wipe?

    Monday, August 2, 2010 4:14 PM
  • Disks IDs start at 0, partition IDs start at 1. So, if you wanted to wipe disk 0 and create some partitions on it, you might do something like this:

    <DiskConfiguration>
                    <Disk wcm:action="add">
                        <CreatePartitions>
                            <CreatePartition wcm:action="add">
                                <Order>1</Order>
                                <Type>Primary</Type>
                                <Size>100</Size>
                            </CreatePartition>
                            <CreatePartition wcm:action="add">
                                <Order>2</Order>
                                <Type>Primary</Type>
                                <Size>9000</Size>
                            </CreatePartition>
                            <CreatePartition wcm:action="add">
                                <Order>3</Order>
                                <Type>Primary</Type>
                                <Size>5000</Size>
                            </CreatePartition>
                            <CreatePartition wcm:action="add">
                                <Order>4</Order>
                                <Type>Primary</Type>
                                <Size>10</Size>
                            </CreatePartition>
                        </CreatePartitions>
                        <ModifyPartitions>
                            <ModifyPartition wcm:action="add">
                                <Order>1</Order>
                                <PartitionID>1</PartitionID>
                                <Label>System Reserved</Label>
                                <Format>NTFS</Format>
                                <Active>true</Active>
                            </ModifyPartition>
                            <ModifyPartition wcm:action="add">
                                <Order>2</Order>
                                <PartitionID>2</PartitionID>
                                <Label>WES7</Label>
                                <Letter>C</Letter>
                                <Format>NTFS</Format>
                                <Extend>false</Extend>
                                <Active>false</Active>
                            </ModifyPartition>
                            <ModifyPartition wcm:action="add">
                                <Order>3</Order>
                                <PartitionID>3</PartitionID>
                                <Label>MEDIA</Label>
                                <Letter>E</Letter>
                                <Format>NTFS</Format>
                                <Extend>false</Extend>
                            </ModifyPartition>
                            <ModifyPartition wcm:action="add">
                                <Order>4</Order>
                                <PartitionID>4</PartitionID>
                                <Label>APP</Label>
                                <Letter>C</Letter>
                                <Format>NTFS</Format>
                                <Extend>true</Extend>
                            </ModifyPartition>
                        </ModifyPartitions>
                        <DiskID>0</DiskID>
                        <WillWipeDisk>true</WillWipeDisk>
                    </Disk>
                    <WillShowUI>Always</WillShowUI>
                </DiskConfiguration>
                <ImageInstall>
                    <OSImage>
                        <InstallTo>
                            <PartitionID>2</PartitionID>
                            <DiskID>0</DiskID>
                        </InstallTo>
                        <WillShowUI>Never</WillShowUI>
                    </OSImage>
                </ImageInstall>

    • Proposed as answer by beemr007 Thursday, October 14, 2010 3:39 PM
    Monday, August 2, 2010 4:26 PM