Directory of Autounattend.xml for partitioning an disk

Discussion in 'Windows Vista Installation' started by Mazzaroc, Feb 2, 2009.

  1. Mazzaroc

    Mazzaroc Guest

    HI

    In which directory of the DVD of Vista SP1 64 bit I have to put the
    Autounattend.xml file in order to allow Vista to automatically erase
    and create the partitions of an disk?


    THANKS

    BYE
     
    Mazzaroc, Feb 2, 2009
    #1
    1. Advertisements

  2. Put it in the root directory of the DVD.
     
    Zaphod Beeblebrox, Feb 2, 2009
    #2
    1. Advertisements

  3. Mazzaroc

    Mazzaroc Guest

    Are you absolutely sure that a Autounattend.xml file that contains the
    DiskConfiguration section used to partition a hard disk, is placed in
    the root directory of the DVD of Vista SP1 64 bit?

    THANKS

    BYE
     
    Mazzaroc, Feb 2, 2009
    #3
  4. As I understand it, the only place Windows looks for an autounattend.xml
    is in the root directory of any/all removable media, and I don't believe
    it makes a difference what sections are included. That said, I
    personally wouldn't put one that erases and partitions the hard disk in
    the root of my installation DVD, rather I would use a USB drive that way
    I don't suffer any nasty surprises...
     
    Zaphod Beeblebrox, Feb 2, 2009
    #4
  5. Mazzaroc

    lakmilis Guest

    There are issues sometimes with (I forgot lol.. just look on firegeier'
    guide about that). When I use it on my DVD (which I think is perfectl
    fine and better), I add it to root and it works always
     
    lakmilis, Feb 3, 2009
    #5
  6. Mazzaroc

    Mazzaroc Guest

    HI

    Can someone explain to me why this autounattend.xml file

    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowsPE">
    <component name="Microsoft-Windows-Setup"
    processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35"
    language="neutral" versionScope="NonSxS" xmlns:wcm="http://
    schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://
    www.w3.org/2001/XMLSchema-instance">
    <UserData>
    <AcceptEula>true</AcceptEula>
    </UserData>
    <DiskConfiguration>
    <WillShowUI>OnError</WillShowUI>
    <Disk wcm:action="add">
    <CreatePartitions>
    <CreatePartition wcm:action="add">
    <Order>1</Order>
    <Size>25000</Size>
    <Type>Primary</Type>
    </CreatePartition>
    <CreatePartition wcm:action="add">
    <Extend>true</Extend>
    <Order>2</Order>
    <Type>Primary</Type>
    </CreatePartition>
    </CreatePartitions>
    <ModifyPartitions>
    <ModifyPartition wcm:action="add">
    <Active>true</Active>
    <Extend>false</Extend>
    <Format>NTFS</Format>
    <Label>Vista_SP1_64_bit</Label>
    <Letter>C</Letter>
    <Order>1</Order>
    <PartitionID>1</PartitionID>
    </ModifyPartition>
    <ModifyPartition wcm:action="add">
    <Active>false</Active>
    <Extend>false</Extend>
    <Format>NTFS</Format>
    <Label>Data</Label>
    <Letter>D</Letter>
    <Order>2</Order>
    <PartitionID>2</PartitionID>
    </ModifyPartition>
    </ModifyPartitions>
    <DiskID>0</DiskID>
    <WillWipeDisk>true</WillWipeDisk>
    </Disk>
    </DiskConfiguration>
    </component>
    </settings>
    <settings pass="oobeSystem">
    <component name="Microsoft-Windows-Shell-Setup"
    processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35"
    language="neutral" versionScope="NonSxS" xmlns:wcm="http://
    schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://
    www.w3.org/2001/XMLSchema-instance">
    <FolderLocations>
    <ProfilesDirectory>D:\Users</ProfilesDirectory>
    </FolderLocations>
    </component>
    </settings>
    <settings pass="specialize">
    <component name="Microsoft-Windows-Security-Licensing-SLC-UX"
    processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35"
    language="neutral" versionScope="NonSxS" xmlns:wcm="http://
    schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://
    www.w3.org/2001/XMLSchema-instance">
    <SkipAutoActivation>true</SkipAutoActivation>
    </component>
    </settings>
    <settings pass="generalize">
    <component name="Microsoft-Windows-Security-Licensing-SLC"
    processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35"
    language="neutral" versionScope="nonSxS" xmlns:wcm="http://
    schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://
    www.w3.org/2001/XMLSchema-instance">
    <SkipRearm>0</SkipRearm>
    </component>
    </settings>
    <cpi:eek:fflineImage cpi:source="wim:C:/Users/Public/Documents/
    Vista_SP1_64_bit/sources/install.wim#Windows Vista ULTIMATE"
    xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>

    does not create two primary partitions?

    Now, how do you automatically create two primary partitions?

    THANKS

    BYE
     
    Mazzaroc, Feb 9, 2009
    #6
  7. The only things I see that might cause problems are that you don't set
    the size of the 2nd partition you want to create, and you don't set the
    Extend property for the 1st partition. I don't know if either is
    required, but worth a shot. Try the following to see if it helps:

    <Disk wcm:action="add">
    <CreatePartitions>
    <CreatePartition wcm:action="add">
    <Extend>false</Extend>
    <Order>1</Order>
    <Size>25000</Size>
    <Type>Primary</Type>
    </CreatePartition>
    <CreatePartition wcm:action="add">
    <Extend>true</Extend>
    <Order>2</Order>
    <Size>25000</Size>
    <Type>Primary</Type>
    </CreatePartition>
    </CreatePartitions>

    By the way, another good source for help with Vista deployment issues is
    at
    http://social.technet.microsoft.com/forums/en-US/itprovistadeployment/threads/

    --
    Zaphod

    Pan-Galactic Gargle Blaster: A cocktail based on Janx Spirit.
    The effect of one is like have your brain smashed out
    by a slice of lemon wrapped round a large gold brick.
     
    Zaphod Beeblebrox, Feb 9, 2009
    #7
  8. Mazzaroc

    Mazzaroc Guest

    Finally I created those two partitions by putting the file
    autounattend.xml in the root directory of the DVD of Vista SP1 64 bit.
    Now my file is:


    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowsPE">
    <component name="Microsoft-Windows-Setup"
    processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35"
    language="neutral" versionScope="NonSxS" xmlns:wcm="http://
    schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://
    www.w3.org/2001/XMLSchema-instance">
    <UserData>
    <AcceptEula>true</AcceptEula>
    </UserData>
    <DiskConfiguration>
    <Disk wcm:action="add">
    <CreatePartitions>
    <CreatePartition wcm:action="add">
    <Order>1</Order>
    <Size>25000</Size>
    <Type>Primary</Type>
    </CreatePartition>
    <CreatePartition wcm:action="add">
    <Extend>true</Extend>
    <Order>2</Order>
    <Type>Extended</Type>
    </CreatePartition>
    <CreatePartition wcm:action="add">
    <Order>3</Order>
    <Type>Logical</Type>
    <Extend>true</Extend>
    </CreatePartition>
    </CreatePartitions>
    <ModifyPartitions>
    <ModifyPartition wcm:action="add">
    <Active>true</Active>
    <Extend>false</Extend>
    <Format>NTFS</Format>
    <Label>VISTA</Label>
    <Letter>C</Letter>
    <Order>1</Order>
    <PartitionID>1</PartitionID>
    </ModifyPartition>
    <ModifyPartition wcm:action="add">
    <Active>false</Active>
    <Extend>false</Extend>
    <Format>NTFS</Format>
    <Label>Data</Label>
    <Letter>D</Letter>
    <Order>2</Order>
    <PartitionID>2</PartitionID>
    </ModifyPartition>
    </ModifyPartitions>
    <DiskID>0</DiskID>
    <WillWipeDisk>true</WillWipeDisk>
    </Disk>
    <WillShowUI>OnError</WillShowUI>
    </DiskConfiguration>
    </component>
    </settings>
    <settings pass="oobeSystem">
    <component name="Microsoft-Windows-Shell-Setup"
    processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35"
    language="neutral" versionScope="NonSxS" xmlns:wcm="http://
    schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://
    www.w3.org/2001/XMLSchema-instance">
    <FolderLocations>
    <ProfilesDirectory>D:\Users</ProfilesDirectory>
    </FolderLocations>
    </component>
    </settings>
    <settings pass="specialize">
    <component name="Microsoft-Windows-Security-Licensing-SLC-UX"
    processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35"
    language="neutral" versionScope="NonSxS" xmlns:wcm="http://
    schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://
    www.w3.org/2001/XMLSchema-instance">
    <SkipAutoActivation>true</SkipAutoActivation>
    </component>
    </settings>
    <settings pass="generalize">
    <component name="Microsoft-Windows-Security-Licensing-SLC"
    processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35"
    language="neutral" versionScope="nonSxS" xmlns:wcm="http://
    schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://
    www.w3.org/2001/XMLSchema-instance">
    <SkipRearm>0</SkipRearm>
    </component>
    </settings>
    <cpi:eek:fflineImage cpi:source="wim:C:/Users/Public/Documents/
    Vista_SP1_64_bit/sources/install.wim#Windows Vista ULTIMATE"
    xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>




    now I saw a strange thing: the window that displays the partitions
    during the installation is proper, but when I click on the next
    window, Vista starts copying files on the disk but stops immediately
    with a window which says:


    Unable to prepare the computer to restart for the next step of
    installation. To install Windows, restart the installation.

    Or:


    Unable to prepare for the partition selected for installation

    Why? What is the trick?


    I have already tried to move the instruction <WillWipeDisk> true </
    WillWipeDisk> at the beginning of the structure, but does not work.

    Thanks

    Bye
     
    Mazzaroc, Feb 10, 2009
    #8
  9. Mazzaroc

    lakmilis Guest

    Why do you ask this in one thread.. and I reply to you what to do.. the
    you post it here and say.. finallly I did this.. and NOW what is wrong.
    Stick to one thread and what are you...lightheaded? your problem is yo
    say partition 2 is extended, then you in modifypartition 2 se
    extend(ed) to false.

    How hard can it be? I told you in other thread what to do. and instea
    of posting over and over... go through your settings! it is very simpl
    to see your problem

    *growls
     
    lakmilis, Feb 10, 2009
    #9
  10. You need to specify which partition you want Windows to be installed to,
    like this:

    <ImageInstall>
    <OSImage>
    <InstallTo>
    <DiskID>0</DiskID>
    <PartitionID>1</PartitionID>
    </InstallTo>
    <WillShowUI>OnError</WillShowUI>
    </OSImage>
    </ImageInstall>

    Put it just after the </DiskConfiguration> section.

    And by the way, I agree with lakmilis. You should really pick one thread
    and stick with it for continuity.
     
    Zaphod Beeblebrox, Feb 10, 2009
    #10
  11. An Extended partition is different than setting a partition to Extend,
    they are not mutually exclusive. An Extended partition is a type of
    partition (Primary vs Extended), while setting the Extend property tells
    it whether or not to extend the partition to take over the rest of the
    unused space on the drive.
     
    Zaphod Beeblebrox, Feb 10, 2009
    #11
  12. Mazzaroc

    lakmilis Guest

    zaphod ... that setting will make it fail.. im pretty sure.. try an
    reproduce it with no error :
    if you do.. I will say oki.. thanks for claryfying it, but I think i
    is a problem
     
    lakmilis, Feb 12, 2009
    #12
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.