Create Multiple Partitions on a Device
![]() |
![]() |
![]() |
Create Multiple Partitions on a Device
The default templates and samples that are included with Automated Deployment Services (ADS) can create only one partition on a target device. When you deploy an image to a computer using ADS, you may want to create more than one partition in certain scenarios. For example, you may want to install the operating system on drive C and store program data on drive D.
Steps for creating multiple partitions are described in "HOW TO: Create Multiple Partitions by Using the Bmpart.exe Tool in Automated Deployment Services" in Microsoft Knowledge Base Article - 821303.
Display OEM Partition Types
OEM partition types can be displayed using the Bmpart.exe tool within a Deployment Agent task sequence. Use the -g option to have Bmpart return the partition information. The partition type value may vary by OEM.
Following are some common definitions for partition types:
- 0x12 // EISA partition (Compaq)
- 0x84 // Hibernation partition for laptops
- 0xA0 // Diagnostic partition on some Hewlett-Packard (HP) notebooks
- 0xDE // Dell partition
- 0xFE // IBM IML partition
The following is a sample OEM utility partition deployment sequence. The first task creates the OEM partition. <pre IsFakePre="true" xmlns="https://www.w3.org/1999/xhtml"> <task description="Create Util partition" doesReboot="false"> <command>/BMONITOR/bmpart.exe</command> <parameters> <parameter>\device\harddisk0</parameter> <parameter>-init</parameter> <parameter>"-t:0x12"</parameter> <parameter>-c:35</parameter> <parameter>-a</parameter> </parameters> </task> </pre>
The second part downloads the partition. <pre IsFakePre="true" xmlns="https://www.w3.org/1999/xhtml"> <task description="Download Utility image" doesReboot="false"> <command>/IMAGING/imgbmdeploy.exe</command> <parameters> <parameter>"cpqutil-35mb"</parameter> <parameter>\device\harddisk0\partition1</parameter> <parameter>-r</parameter> <parameter>-client</parameter> </parameters> </task> </pre>