+ Post New Thread
Results 1 to 15 of 15
O/S Deployment Thread, Is there a way to delete existing partitions in Technical; Good afternoon all .. Right, I seem to have got WDS Successfully deploying images of W7 thanks to the Sticky ...
  1. #1
    soveryapt's Avatar
    Join Date
    Jan 2009
    Location
    Lancashire
    Posts
    2,405
    Thank Post
    648
    Thanked 277 Times in 244 Posts
    Rep Power
    78

    Is there a way to delete existing partitions

    Good afternoon all ..

    Right, I seem to have got WDS Successfully deploying images of W7 thanks to the Sticky on it and a little jiggery pokery with the Firewall and ports on the server ..

    Anyway, the question I have now is, can WDS remove the existing partitions on a drive? I have it set so that it formats the drive if it's a vanilla drive in there, however, if it's an existing machine with partitions on and the likes, then it just falls over unless I remove the partitions manually and then restart the PXE Boot at which point it goes through and sets the things going fine ..

    Many thanks
    Andy

  2. #2

    teejay's Avatar
    Join Date
    Apr 2008
    Posts
    3,187
    Thank Post
    285
    Thanked 775 Times in 585 Posts
    Rep Power
    336
    In your windows pe phase, set will wipe disk to true. Our disk config section is:
    Code:
    <DiskConfiguration>
                    <Disk wcm:action="add">
                        <CreatePartitions>
                            <CreatePartition wcm:action="add">
                                <Extend>true</Extend>
                                <Order>2</Order>
                                <Type>Primary</Type>
                            </CreatePartition>
                            <CreatePartition wcm:action="add">
                                <Order>1</Order>
                                <Size>300</Size>
                                <Type>Primary</Type>
                            </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>false</Active>
                                <Format>NTFS</Format>
                                <Label>Windows</Label>
                                <Order>2</Order>
                                <PartitionID>2</PartitionID>
                                <Letter>C</Letter>
                            </ModifyPartition>
                        </ModifyPartitions>
                        <DiskID>0</DiskID>
                        <WillWipeDisk>true</WillWipeDisk>
                    </Disk>
                    <WillShowUI>OnError</WillShowUI>
                </DiskConfiguration>

  3. #3
    soveryapt's Avatar
    Join Date
    Jan 2009
    Location
    Lancashire
    Posts
    2,405
    Thank Post
    648
    Thanked 277 Times in 244 Posts
    Rep Power
    78
    I already have it set to that, but it doesn't seem to do much.. if the disk is empty, or only has a single partition on it, it does it's job, but if there is more than one partition on it (I have some new HP Machines with HP Partitions on) then it doesn't delete them.

    This is my disk configuration section .. Any suggestions?

    Code:
    <DiskConfiguration>
                    <WillShowUI>Always</WillShowUI>
                    <Disk wcm:action="add">
                        <CreatePartitions>
                            <CreatePartition wcm:action="add">
                                <Extend>true</Extend>
                                <Order>1</Order>
                                <Type>Primary</Type>
                            </CreatePartition>
                        </CreatePartitions>
                        <ModifyPartitions>
                            <ModifyPartition wcm:action="add">
                                <Active>true</Active>
                                <Extend>false</Extend>
                                <Format>NTFS</Format>
                                <Label>System OS</Label>
                                <Letter>C</Letter>
                                <Order>1</Order>
                                <PartitionID>1</PartitionID>
                            </ModifyPartition>
                        </ModifyPartitions>
                        <DiskID>0</DiskID>
                        <WillWipeDisk>true</WillWipeDisk>
                    </Disk>
                </DiskConfiguration>
    Ta

  4. #4

    teejay's Avatar
    Join Date
    Apr 2008
    Posts
    3,187
    Thank Post
    285
    Thanked 775 Times in 585 Posts
    Rep Power
    336
    Change Will Show UI to OnError otherwise I don't think it runs through the unattend setting properly.

  5. Thanks to teejay from:

    soveryapt (11th August 2010)

  6. #5
    soveryapt's Avatar
    Join Date
    Jan 2009
    Location
    Lancashire
    Posts
    2,405
    Thank Post
    648
    Thanked 277 Times in 244 Posts
    Rep Power
    78
    TeeJay .. I love ya! lol .. That's worked brilliantly .. Ta

  7. #6

    teejay's Avatar
    Join Date
    Apr 2008
    Posts
    3,187
    Thank Post
    285
    Thanked 775 Times in 585 Posts
    Rep Power
    336
    Lol, manly hugs all round! Cough, errmmm, back to work....

  8. #7
    soveryapt's Avatar
    Join Date
    Jan 2009
    Location
    Lancashire
    Posts
    2,405
    Thank Post
    648
    Thanked 277 Times in 244 Posts
    Rep Power
    78
    Quote Originally Posted by teejay View Post
    Lol, manly hugs all round! Cough, errmmm, back to work....
    Indeed! lol ..

    Is there a way that you can also say "Install this image" in the Unattended file? Saves me having to select Windows 7 Professional from each one (there's only the one image at the moment so ..)

  9. #8

    teejay's Avatar
    Join Date
    Apr 2008
    Posts
    3,187
    Thank Post
    285
    Thanked 775 Times in 585 Posts
    Rep Power
    336
    Yep, something along these lines:
    Code:
                <ImageSelection>
                   <WillShowUI>OnError</WillShowUI>
                   <InstallImage>
                      <ImageName>Windows 7 with Office</ImageName>
                      <ImageGroup>ImageGroup1</ImageGroup>
                      <Filename>Install.wim</Filename>
                   </InstallImage>
                      <InstallTo>
                      <DiskID>0</DiskID>
                      <PartitionID>1</PartitionID>
                   </InstallTo>
                </ImageSelection>

  10. #9
    soveryapt's Avatar
    Join Date
    Jan 2009
    Location
    Lancashire
    Posts
    2,405
    Thank Post
    648
    Thanked 277 Times in 244 Posts
    Rep Power
    78
    Quote Originally Posted by teejay View Post
    Yep, something along these lines:
    Code:
                <ImageSelection>
                   <WillShowUI>OnError</WillShowUI>
                   <InstallImage>
                      <ImageName>Windows 7 with Office</ImageName>
                      <ImageGroup>ImageGroup1</ImageGroup>
                      <Filename>Install.wim</Filename>
                   </InstallImage>
                      <InstallTo>
                      <DiskID>0</DiskID>
                      <PartitionID>1</PartitionID>
                   </InstallTo>
                </ImageSelection>
    Thanks for that, I've put that into the XML File, but I still need to press Enter to tell it to go ahead with the install for the Image .. is there anyway round that? Or should that additional information of sorted that?

    (I've replaced all the various bits with the information as per my own server).

  11. #10

    teejay's Avatar
    Join Date
    Apr 2008
    Posts
    3,187
    Thank Post
    285
    Thanked 775 Times in 585 Posts
    Rep Power
    336
    Quote Originally Posted by aptproductions View Post
    Thanks for that, I've put that into the XML File, but I still need to press Enter to tell it to go ahead with the install for the Image .. is there anyway round that? Or should that additional information of sorted that?

    (I've replaced all the various bits with the information as per my own server).
    It should go past it, if the dialogue box is appearing it means there is an error. Double check the ImageName, ImageGroup and filename are correct.

  12. #11
    soveryapt's Avatar
    Join Date
    Jan 2009
    Location
    Lancashire
    Posts
    2,405
    Thank Post
    648
    Thanked 277 Times in 244 Posts
    Rep Power
    78
    Quote Originally Posted by teejay View Post
    It should go past it, if the dialogue box is appearing it means there is an error. Double check the ImageName, ImageGroup and filename are correct.
    Meh .. double checked it and it's all right .. reapplied the unattended file to the boot image but there we go .. still not working ..

  13. #12

    teejay's Avatar
    Join Date
    Apr 2008
    Posts
    3,187
    Thank Post
    285
    Thanked 775 Times in 585 Posts
    Rep Power
    336
    Hmmm, if I get chance I'll test on ours, it's not something I've used as we have 4 different images we deploy now. I was really trying to keep to 1, but wasn't acheivable, but hey it's much better than teh 30 odd images we had in RIS ;-)

  14. #13
    soveryapt's Avatar
    Join Date
    Jan 2009
    Location
    Lancashire
    Posts
    2,405
    Thank Post
    648
    Thanked 277 Times in 244 Posts
    Rep Power
    78
    Quote Originally Posted by teejay View Post
    Hmmm, if I get chance I'll test on ours, it's not something I've used as we have 4 different images we deploy now. I was really trying to keep to 1, but wasn't acheivable, but hey it's much better than teh 30 odd images we had in RIS ;-)
    Yeah, that's why I've never gone for it before .. too many different machines to set for .. where as now I've managed to get a standard set of software (that I might actually put into the image once I've got the school back up and running for quicker deployment) and the odd extra thing that is only licensed for the ICT Suites ..

  15. #14

    Join Date
    Jun 2008
    Posts
    719
    Thank Post
    118
    Thanked 64 Times in 52 Posts
    Rep Power
    31
    Quote Originally Posted by teejay View Post
    In your windows pe phase, set will wipe disk to true. Our disk config section is:
    Code:
    <DiskConfiguration>
                    <Disk wcm:action="add">
                        <CreatePartitions>
                            <CreatePartition wcm:action="add">
                                <Extend>true</Extend>
                                <Order>2</Order>
                                <Type>Primary</Type>
                            </CreatePartition>
                            <CreatePartition wcm:action="add">
                                <Order>1</Order>
                                <Size>300</Size>
                                <Type>Primary</Type>
                            </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>false</Active>
                                <Format>NTFS</Format>
                                <Label>Windows</Label>
                                <Order>2</Order>
                                <PartitionID>2</PartitionID>
                                <Letter>C</Letter>
                            </ModifyPartition>
                        </ModifyPartitions>
                        <DiskID>0</DiskID>
                        <WillWipeDisk>true</WillWipeDisk>
                    </Disk>
                    <WillShowUI>OnError</WillShowUI>
                </DiskConfiguration>


    Whereabouts do you apply this?

  16. #15

    Join Date
    Jan 2011
    Posts
    13
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    WDS - Unattended file - Removing /Formatting Drive Partitions

    __________________________________________________ ______________________________________
    Here's some more information that might be helpful,


    WDS - Unattended file - Removing /Formatting Drive Partitions

    Pete

SHARE:
+ Post New Thread

Similar Threads

  1. How many Partitions do you have??
    By actech in forum Windows
    Replies: 31
    Last Post: 28th August 2011, 08:00 PM
  2. Best Way to Setup Partitions
    By Cache in forum Windows Server 2008 R2
    Replies: 5
    Last Post: 2nd June 2010, 06:58 PM
  3. [Fedora] Move to own partitions
    By Gatt in forum *nix
    Replies: 9
    Last Post: 27th October 2009, 12:15 PM
  4. Delete Acer Partitions
    By TechSupp in forum How do you do....it?
    Replies: 3
    Last Post: 16th July 2008, 12:01 PM
  5. Delete Partitions
    By Silverman in forum Scripts
    Replies: 4
    Last Post: 9th April 2008, 04:20 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •