9.2. Command: part or partition

Either of these commands creates a partition on the system and uses the following syntax:

     part [mntpoint]
     partition [mntpoint]
            

If you do not provide mntpoint, Wic creates a partition but does not mount it.

The mntpoint is where the partition is mounted and must be in one of the following forms:

Specifying a mntpoint causes the partition to automatically be mounted. Wic achieves this by adding entries to the filesystem table (fstab) during image generation. In order for Wic to generate a valid fstab, you must also provide one of the --ondrive, --ondisk, or --use-uuid partition options as part of the command.

Note

The mount program must understand the PARTUUID syntax you use with --use-uuid and non-root mountpoint, including swap. The busybox versions of these application are currently excluded.

Here is an example that uses "/" as the mountpoint. The command uses --ondisk to force the partition onto the sdb disk:

     part / --source rootfs --ondisk sdb --fstype=ext3 --label platform --align 1024
            

Here is a list that describes other supported options you can use with the part and partition commands: