part_init
Description:
create an empty partition table
This creates an empty partition table on device
of one of the partition types listed below. Usually parttype
should
be either msdos
or gpt
(for large disks).
Initially there are no partitions. Following this, you should call part_add for each partition required.
Possible values for parttype
are:
efi gpt Intel EFI / GPT partition table.
This is recommended for >= 2 TB partitions that will be accessed from Linux and Intel-based Mac OS X. It also has limited backwards
compatibility with the mbr
format.
mbr msdos The standard PC "Master Boot Record" (MBR) format used by MS-DOS and Windows. This partition type will only work for device sizes up
to 2 TB. For large disks we recommend using gpt
.
Other partition table types that may work but are not supported include:
aix AIX disk labels.
amiga rdb Amiga "Rigid Disk Block" format.
bsd BSD disk labels.
dasd DASD, used on IBM mainframes.
dvh MIPS/SGI volumes.
mac Old Mac partition format. Modern Macs use gpt
.
pc98 NEC PC-98 format, common in Japan apparently.
sun Sun disk labels.
Parameters:
this |
A GuestfsSession object |
Returns:
true on success, false on error |