Microsoft KB Archive/929848: Difference between revisions

From BetaArchive Wiki
(importing KB archive)
 
m (Text replacement - "<" to "<")
Line 56: Line 56:
<div class="indent">
<div class="indent">


<pre class="fixed_text">&lt;DiskConfiguration&gt;
<pre class="fixed_text"><DiskConfiguration&gt;
   &lt;Disk&gt;
   <Disk&gt;
     &lt;DiskID&gt;0&lt;/DiskID&gt;
     <DiskID&gt;0</DiskID&gt;
     &lt;CreatePartitions&gt;
     <CreatePartitions&gt;
       &lt;!—Create Partition 1--&gt;
       <!—Create Partition 1--&gt;
       &lt;CreatePartition&gt;
       <CreatePartition&gt;
         &lt;Order&gt;1&lt;/Order&gt;
         <Order&gt;1</Order&gt;
         &lt;Type&gt;Primary&lt;/Type&gt;
         <Type&gt;Primary</Type&gt;
         &lt;Size&gt;100&lt;/Size&gt;
         <Size&gt;100</Size&gt;
       &lt;/CreatePartition&gt;
       </CreatePartition&gt;
           &lt;!—Create Partition 2--&gt;
           <!—Create Partition 2--&gt;
       &lt;CreatePartition&gt;
       <CreatePartition&gt;
         &lt;Order&gt;2&lt;/Order&gt;
         <Order&gt;2</Order&gt;
         &lt;Type&gt;Primary&lt;/Type&gt;
         <Type&gt;Primary</Type&gt;
         &lt;Extend&gt;true&lt;/Extend&gt;
         <Extend&gt;true</Extend&gt;
       &lt;/CreatePartition&gt;
       </CreatePartition&gt;
     &lt;/CreatePartitions&gt;
     </CreatePartitions&gt;
     &lt;ModifyPartitions&gt;
     <ModifyPartitions&gt;
       &lt;!—Assign Drive Letter C to Partition 1--&gt;
       <!—Assign Drive Letter C to Partition 1--&gt;
       &lt;ModifyPartition&gt;
       <ModifyPartition&gt;
         &lt;Order&gt;1&lt;/Order&gt;
         <Order&gt;1</Order&gt;
         &lt;PartitionID&gt;1&lt;/PartitionID&gt;
         <PartitionID&gt;1</PartitionID&gt;
         &lt;Letter&gt;C&lt;/Letter&gt;
         <Letter&gt;C</Letter&gt;
       &lt;/ModifyPartition&gt;
       </ModifyPartition&gt;
     &lt;ModifyPartitions&gt;
     <ModifyPartitions&gt;
&lt;/Disk&gt;
</Disk&gt;
   &lt;/DiskConfiguration&gt;
   </DiskConfiguration&gt;
</pre>
</pre>


Line 89: Line 89:
<div class="indent">
<div class="indent">


<pre class="fixed_text">&lt;ImageInstall&gt;
<pre class="fixed_text"><ImageInstall&gt;
     &lt;OSImage&gt;
     <OSImage&gt;
       &lt;InstallTo&gt;
       <InstallTo&gt;
         &lt;DiskID&gt;0&lt;/DiskID&gt;
         <DiskID&gt;0</DiskID&gt;
         &lt;PartitionID&gt;2&lt;/PartitionID&gt;
         <PartitionID&gt;2</PartitionID&gt;
       &lt;/InstallTo&gt;
       </InstallTo&gt;
     &lt;/OSImage&gt;
     </OSImage&gt;
   &lt;/ImageInstall&gt;
   </ImageInstall&gt;
</pre>
</pre>


Line 117: Line 117:
<div class="indent">
<div class="indent">


<pre class="fixed_text">&lt;ModifyPartition&gt;
<pre class="fixed_text"><ModifyPartition&gt;
         &lt;Order&gt;2&lt;/Order&gt;
         <Order&gt;2</Order&gt;
         &lt;PartitionID&gt;2&lt;/PartitionID&gt;
         <PartitionID&gt;2</PartitionID&gt;
         &lt;Letter&gt;D&lt;/Letter&gt;
         <Letter&gt;D</Letter&gt;
       &lt;/ModifyPartition&gt;</pre>
       </ModifyPartition&gt;</pre>


</div>
</div>

Revision as of 09:32, 21 July 2020

Knowledge Base


In unattended installations of Windows Vista, the wrong partition becomes the installation drive

Article ID: 929848

Article Last Modified on 1/4/2007



APPLIES TO

  • Windows Vista Ultimate
  • Windows Vista Business
  • Windows Vista Enterprise
  • Windows Vista Home Basic
  • Windows Vista Home Premium
  • Windows Vista Starter



SYMPTOMS

In unattended installations of Windows Vista that have multiple partitions on the hard disk drive, the first partition is not assigned driver letter C as expected. Also, Windows Vista is installed on a different partition.

CAUSE

This behavior occurs when the Unattend.xml file does not assign a drive letter to the installation partition. Then, the installation partition uses drive letter C. If another partition has been assigned drive letter C in the DiskConfiguration setting, that partition is assigned another drive letter.

For example, the following "DiskConfiguration" section of the Unattend.xml file creates partitions on a disk, and then assigns drive letter C to the first partition:

<DiskConfiguration>
  <Disk>
    <DiskID>0</DiskID>
    <CreatePartitions>
      <!—Create Partition 1-->
      <CreatePartition>
        <Order>1</Order>
        <Type>Primary</Type>
        <Size>100</Size>
      </CreatePartition>
           <!—Create Partition 2-->
      <CreatePartition>
        <Order>2</Order>
        <Type>Primary</Type>
        <Extend>true</Extend>
      </CreatePartition>
    </CreatePartitions>
    <ModifyPartitions>
      <!—Assign Drive Letter C to Partition 1-->
      <ModifyPartition>
        <Order>1</Order>
        <PartitionID>1</PartitionID>
        <Letter>C</Letter>
      </ModifyPartition>
    <ModifyPartitions>
</Disk>
   </DiskConfiguration>

Then, in the following "ImageInstall" section of the Unattended.xml file, you specify that Windows Vista is installed on Partition 2:

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

You expect the following results:

  • Partition 1 is assigned drive letter C.
  • Partition 2 is either assigned drive letter D or the next available drive letter.

The actual results are as follows:

  • Partition 1 is either assigned drive letter D or the next available drive letter.
  • Partition 2 is assigned drive letter C.


RESOLUTION

To avoid this behavior, add the following fragment to the DiskConfiguration setting in the Unattend.xml file. This fragment assigns a drive letter to the installation partition.

<ModifyPartition>
        <Order>2</Order>
        <PartitionID>2</PartitionID>
        <Letter>D</Letter>
      </ModifyPartition>

Keywords: kbprb KB929848