Solved

Autounattend.xml Issue

Posted on 2012-12-27
11
2,173 Views
Last Modified: 2012-12-27
I'm having issues with setting up an autounattend.xml file. It appears to work fine until the partitions are to be made. It brings up the partition window and from there I receive an error message stating :"Windows could not prepare the partition selected for installation."

I was going to copy and paste the XML file but the formatting is atrocious. So I have attached it instead.

I have received no syntax errors while validating this answer file.

Thanks in advance.
Autounattend.xml
0
Comment
Question by:csg_int_it
  • 5
  • 5
11 Comments
 
LVL 7

Expert Comment

by:mmicha
ID: 38724093
I'm not certain and not an expert at the autounattend file.  

However, I see that you are creating two partitions but have extended set on both of them.

I'm thinking maybe that is using all of the disk space and therefore no room for the second partition?
0
 

Author Comment

by:csg_int_it
ID: 38724201
I've tried numerous options in both partition types.
Primary - Primary
Primary - Extended
Extended - Extended

None have worked.
0
 
LVL 7

Assisted Solution

by:mmicha
mmicha earned 150 total points
ID: 38724222
I wasn't referring to primary vs extended partitions.  I bolded the statement below in the config I'm referencing...

- <CreatePartitions>
- <CreatePartition wcm:action="add">
  <Extend>true</Extend>
  <Order>1</Order>
  <Size>150</Size>
  <Type>Primary</Type>
  </CreatePartition>
- <CreatePartition wcm:action="add">
  <Order>2</Order>
  <Extend>true</Extend>
  <Type>Extended</Type>
  </CreatePartition>
  </CreatePartitions>
- <ModifyPartitions>
+ <ModifyPartition wcm:action="add">
  <Active>true</Active>
  <Format>NTFS</Format>
  <Label>Windows</Label>
  <Letter>C</Letter>
  <Order>1</Order>
  <PartitionID>1</PartitionID>
  </ModifyPartition>
- <ModifyPartition wcm:action="add">
  <Active>true</Active>
  <Format>NTFS</Format>
  <Label />
  <Letter>D</Letter>
  <Order>2</Order>
  <PartitionID>2</PartitionID>
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
LVL 7

Expert Comment

by:mmicha
ID: 38724235
I believe what that is saying is:

I want to create a partition of 150 GB, but extend that if there is additional room.  So after you create your first partition, there is no space left to create a second partition.

I believe what you would want to do is turn off the extend = true setting on the 150 GB partition (1), and leave it on for partition (2).

That will create a partition of 150 GB, and a second that will fill up the rest of the disks capacity.

Hope that makes sense...
0
 

Author Comment

by:csg_int_it
ID: 38724289
Ok. Well we are making progress. I am now getting this error message:

Windows could not extend a partition on disk 0. The specified partition does not exist on the target disk. The error occurred while applying the unattend answer file's <Disk Configuration> setting. Error code: 0x80300002.

Any suggestions? Would it be a setting that is in the second partition being made? I have updated my answer file to reflect what I have attached below.
Autounattend.xml
0
 
LVL 7

Expert Comment

by:mmicha
ID: 38724333
What would happen now if we switch the second partition to a primary partition as well?  Just not make it active?
0
 

Author Comment

by:csg_int_it
ID: 38724391
I have set the second partition to Primary. It is also set to not be active. I am still getting the error message listed above.
0
 
LVL 7

Expert Comment

by:mmicha
ID: 38724470
I wonder if you could possibly watch the following video:

http://www.youtube.com/watch?v=PWnPWoQ1jqI

At about 5:30, it talks about creating the partitions and modifying them.  May want to review it and make sure you aren't missing anything he has done.  I've used this video in the past for doing this.

One thing standing out is

<InstallToAvailablePartition>false</InstallToAvailablePartition>

Seems like that is saying don't install OS onto partition 1.
0
 

Author Comment

by:csg_int_it
ID: 38724800
Now it won't even partition the drives. I'm losing my mind.
Here is my current code, I've been messing with the settings trying to get this to work:
Autounattend.xml
0
 
LVL 40

Accepted Solution

by:
footech earned 350 total points
ID: 38724887
InstallToAvailablePartition will automatically select the first partition available with enough space.  With InstallTo being used, it is correct for this to be set to false, or you could just leave it out.  You can only use one or the other.

I'm not sure exactly what your current answer file is since you last posted it, but here's a sample config that works.
                    <CreatePartitions>
                        <CreatePartition wcm:action="add">
                            <Order>1</Order>
                            <Size>200</Size>
                            <Type>Primary</Type>
                        </CreatePartition>
                        <CreatePartition wcm:action="add">
                            <Order>2</Order>
                            <Extend>true</Extend>
                            <Type>Primary</Type>
                        </CreatePartition>
                    </CreatePartitions>
                    <ModifyPartitions>
                        <ModifyPartition wcm:action="add">
                            <Order>1</Order>
                            <PartitionID>1</PartitionID>
                            <Active>true</Active>
                            <Format>NTFS</Format>
                            <Label>System</Label>
                        </ModifyPartition>
                        <ModifyPartition wcm:action="add">
                            <Order>2</Order>
                            <PartitionID>2</PartitionID>
                            <Format>NTFS</Format>
                            <Label>OS</Label>
                        </ModifyPartition>
                    </ModifyPartitions>

Open in new window

I haven't played around with creating extended partitions through an answer file, I would just use primary partitions.  And yes, only one can be active (this is where the BCD will be).  

Some background on partition types.  An extended partition is really just a container for logical partitions, and as such can't be formatted.  Logical partitions inside the extended partition can/should be formatted in order to be used.  Unless you need more than 4 partitions, there's not much reason to create an extended partition.

There's not much point in assigning drive letters here.  Whatever partition contains the Windows folder will be the C:\ drive for Windows 7.  And remember, the size that you specify is in MB.
0
 

Author Comment

by:csg_int_it
ID: 38724939
Footech's post of an answer file worked for me. I'm going to award him 350 points. And for mmicha's effort in working towards a solution I will award 150.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows 10 Proxy server failing to work 5 25
Upgrade Windows 7 pro to Enterprise 8 77
Windows 7 Internet issue 14 54
Toshiba e456 color copier driver download 3 29
I recently purchased an HP EliteBook 2540p notebook/laptop. It has two video ports on it – VGA and DisplayPort. HP offers an optional docking station for the 2540p that also has both a VGA port and a DisplayPort. There are numerous online reports do…
If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question