Windows 8 and 8.1 Forums


Using autounattended.xml to install 8 to D:

  1. #1


    Posts : 3
    Windows 7

    Using autounattended.xml to install 8 to D:


    Hi folks, I need to install 8 as the only OS on a box, but it needs to be on a drive other than C:, due to some legacy apps I need. I think I'm close to what I need, I made a autounattended.xml file, and put in on a usb stick. I booted from the 8 disk, and when I got to the 1st screen I hit F10 for a command prompt. I copied my xml file to the temporary X:, and ran the following command to start a new instance of setup.exe: "setup.exe /unattend:X:\sources\autounattend.xml". It goes through its thing and I get to the installation part where it begins to copy files, and then I get an error error that says "Setup was unable to create a new system partition or locate and existing system partition".

    If I go into setup manually after this error, and go to where I pick a partition to install, I can see the partitions were created, and if I select the one I want, it gives the same error.
    Here is the disk configuration part of the .xml file. It seems like I am missing something. Can anyone tell me if this is the correct way? You can see under the "<!-- Modify the Windows partition -->" the part that changes my letter: "<Letter>D</Letter>". Thanks for your help!


    <DiskConfiguration>
    <WillShowUI>OnError</WillShowUI>
    <Disk>
    <DiskID>0</DiskID>
    <WillWipeDisk>true</WillWipeDisk>
    <CreatePartitions>
    <CreatePartition>
    <!-- Create the system partition-->
    <Order>1</Order>
    <Type>Primary</Type>
    <Size>350</Size>
    </CreatePartition>
    <!-- Create the Windows partition and fill the rest of the hard disk -->
    <CreatePartition>
    <Order>2</Order>
    <Type>Primary</Type>
    <Extend>true</Extend>
    </CreatePartition>
    </CreatePartitions>
    <ModifyPartitions>
    <!-- Modify the system partition-->
    <ModifyPartition>
    <Order>1</Order>
    <PartitionID>1</PartitionID>
    <Format>NTFS</Format>
    <Label>System</Label>
    </ModifyPartition>
    <!-- Modify the Windows partition -->
    <ModifyPartition>
    <Order>2</Order>
    <PartitionID>2</PartitionID>
    <Format>NTFS</Format>
    <Letter>D</Letter>
    <Label>Windows</Label>
    </ModifyPartition>
    </ModifyPartitions>
    </Disk>
    </DiskConfiguration>

    <ImageInstall>
    <OSImage>
    <InstallTo>
    <DiskID>0</DiskID>
    <PartitionID>2</PartitionID>
    </InstallTo>
    </OSImage>
    </ImageInstall>

      My System SpecsSystem Spec

  2. #2


    Posts : 5,360
    7/8/ubuntu/Linux Deepin


    Is it looking for an active partition?
      My System SpecsSystem Spec

  3. #3


    Posts : 3
    Windows 7


    Possibly. I added:

    <Active>true</Active>

    Changing the section to:
    <!-- Modify the system partition-->
    <ModifyPartition>
    <Order>1</Order>
    <PartitionID>1</PartitionID>
    <Format>NTFS</Format>
    <Label>System</Label>
    <Active>true</Active>
    </ModifyPartition>

    I get the same error.
      My System SpecsSystem Spec

  4. #4


    Posts : 5,360
    7/8/ubuntu/Linux Deepin


    Not sure what the problem is with that. It would be easier to do it another way.

    Create partitions with diskpart. Mark the 350mb thing active.

    Apply the image from the wim to the big partition with imagex - or as you have dism built into boot.wim , you may as well use that.

    DISM.exe /Apply-Image /ImageFile:install.wim /Index:1 /ApplyDir:<installpartletter>:\


    Then run bcdboot <installpartletter >:\windows /s <350mbthingletter>

    Then still from pe run this script to set the os registry drive letter :

    NT6letter.cmd /targetletter:D /currentos:<installpartletter>

    NT6letter.zip
      My System SpecsSystem Spec

  5. #5


    Posts : 3
    Windows 7

    Works in Windows 8 too


    Followed your instructions, worked out perfectly. Thank you for your help, it is much appreciated.

    Now that its solved, I can let you in on a little secret. This was not for Windows 8. It was for Server 2012 R2. I knew(guessed) a Windows 8 answer would work out, and it did.

    Thanks again,
    MikeC
      My System SpecsSystem Spec

  6. #6


    Posts : 5,360
    7/8/ubuntu/Linux Deepin


    You're welcome. Glad it worked out for you.
      My System SpecsSystem Spec

Using autounattended.xml to install 8 to D:
Related Threads
I just got a new laptop, a Lenovo X230, for which I paid extra to have the OS on it as Windows 8 Pro. So--now I have it, and Win 8 Pro 64 is installed and activated on it. I am a legal owner of Win 8 Pro. However, I would like to do a clean install of Win 8 on the computer, to have it free of...
Hi, i recently by mistake formatted c partition and WindowsRE partition too. I didn´t touch SAMSUNG_REC & SAMSUNG_REC2 where install.wim file is and i don't know how to reinstall from it. Could some one tell me an easy way to reinstall my windows 8 based inthis scenario as i am not a microsoft...
So I have a removable SSD so that I could install O/S to suit. I installed Windows 8.1 Pro on it and had 2 3GB data drives attached. Changed these to GPT volumes and windows didn't like it and I had to do a repair on it. Repaired okay. Tonight I decided I wanted to try out Server 2012 R2 to see if...
Fresh install, installed Tuneup 2014, AVG Internet Security 2014, Firefox, Creative SoundCard Drivers, Updated Windows to current, Motioninjoy, Winrar, Bitcomet, and Installed and updated GeForce GTX 780 drivers. Crash occurred during test of DS3 Tool. Checked reliability history. Information is as...
I have a Win7 laptop, but the install disk is not currently in my possession. I insert my new Win8 upgrade disk and run the installer, will it ask for my Win7 disk ? I have my win7 product key....
During a virtual install, there is a question to install upgrade which says will move everything to the (new) windows folder or to install clean. If I answer upgrade, will all my windows ‘stuff’ be MOVED from my Windows 7 Pro? When I close the virtual machine will there be nothing left for my...
Hi, I am trying to install the W8 CP using the tutorial provided on W7F. Instead of the install.wim file, install.esd is present. I attempted to use imagex on that file, but it did not work. Is there another way to install it fast?
Eight Forums Android App Eight Forums IOS App Follow us on Facebook