重装系统自定义分区撰写格式

在插件管理—重装系统中,对某个操作系统,点击修改 进入页面后,修改”BIOS启动默认分区栏“即可

image.png

例1:格式化第一个分区

<WillShowUI>Never</WillShowUI>
   <Disk>
      <DiskID>0</DiskID>
      <WillWipeDisk>false</WillWipeDisk>
      <ModifyPartitions>
         <ModifyPartition>
            <Order>1</Order>
            <PartitionID>1</PartitionID>
            <Letter>C</Letter>
            <Format>NTFS</Format>
            <Active>true</Active>
         </ModifyPartition>
      </ModifyPartitions>
   </Disk>


例2:设置windows 分区 C盘100G 

 <Disk wcm:action="add">

    <CreatePartitions>
        <CreatePartition wcm:action="add">
            <Order>1</Order>
            <Size>102407</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>
            <Format>NTFS</Format>
            <Label>System</Label>
            <Order>1</Order>
            <PartitionID>1</PartitionID>
        </ModifyPartition>
        <ModifyPartition wcm:action="add">
            <Format>NTFS</Format>
            <Label>Windows</Label>
            <Order>2</Order>
            <PartitionID>2</PartitionID>
        </ModifyPartition>
    </ModifyPartitions>
    <DiskID>0</DiskID>
    <WillWipeDisk>true</WillWipeDisk>
</Disk>
<WillShowUI>OnError</WillShowUI>


例3:设置linux分区 单位(M)

 part /boot —fstype ext4 —size=500
part swap —size=16384
part / —fstype ext4 —size=51200 —grow 


参考官网地址:

1. Windows自动化安装程序

https://msdn.microsoft.com/zh-cn/library/windows/hardware/dn898487(v=vs.85).aspx

2. OSImage 相关信息

https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-8.1-and-8/ff715537(v%3dwin.10)

3.使用Windows SIM创建基于BIOS的硬盘分区

https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-7/dd744365(v%3dws.10)

4.ubuntu相关信息

https://help.ubuntu.com/lts/installation-guide/s390x/apbs04.html

5.centos相关信息

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/installation_guide/sect-kickstart-syntax


在线咨询