<simple-scsi-disk>.add-partial-diff-file <simple-scsi-disk>.info
Simics Reference Manual  /  3 Commands  /  3.2 Command List  / 

<simple-scsi-disk>.create-partition – deprecated

Synopsis

<simple-scsi-disk>.create-partition partition start_cylinder start_head start_sector end_cylinder end_head end_sector (type_id|"type_name") start_lba size_in_sectors [-boot-indication]

Description

Adds a partition to a disk's partition table. Will create a primary PC-style partition with number partition. Any existing partition will be overwritten. The start location of the partition is given both in CHS format with start_cylinder, start_head, start_sector, and in linear format with start_lba.

The partition endpoint is specified in CHS format with end_cylinder, end_head, and end_sector. The size in 512-byte sectors is size_in_sectors.

The slight overspecification of the parameters is there because they depend on how the BIOS translates the disk geometry to the BIOS geometry. All CHS coordinates given to this command should be in the translated BIOS geometry.

The partition boot bit is enabled with the -boot-indication flag (default off).

The partition type can either raw numerical code, type_id, or a symbolic name, type_name. The following symbolic names are understood by the command: "unused" (0x0), "FAT12" (0x1), "FAT16" (0x4), "Extended (CHS)" (0x5), "FAT16B" (0x6), "NTFS/exFAT" (0x7), "FAT32 (CHS)" (0xb), "FAT32 (LBA)" (0xc), "FAT16 (LBA)" (0xe), "Extended (LBA)" (0xf), "Linux swap" (0x82), "Linux native" (0x83), "Linux extended" (0x85), "Linux LVM" (0x8e), "FreeBSD" (0xa5), "OpenBSD" (0xa6), "Apple UFS" (0xa8), "NetBSD" (0xa9), "Apple boot" (0xab), "Apple HFS" (0xaf), and "EFI system" (0xef).

Provided By

simple-scsi-disk

See Also

<simple-scsi-disk>.print-partition-table
<simple-scsi-disk>.add-partial-diff-file <simple-scsi-disk>.info