| |
- _ctypes.Structure(_ctypes._CData)
-
- GPTHeader
- GPTPartitionEntry
- MBRHeader
- MBRPartitionEntry
- builtins.object
-
- Partition
- enum.Enum(builtins.object)
-
- GptPartitionType
- MbrPartitionType
- PartitionStatus
class GPTHeader(_ctypes.Structure) |
|
This class defines the GPT structure. |
|
- Method resolution order:
- GPTHeader
- _ctypes.Structure
- _ctypes._CData
- builtins.object
Methods defined here:
- to_partition(self)
- This function makes partition from GPT.
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
- backup_lba
- current_lba
- disk_guid
- first_usable_lba
- header_crc32
- header_size
- last_usable_lba
- num_part_entries
- part_array_crc32
- part_entry_size
- partition_entry_lba
- reserved
- revision
- signature
Methods inherited from _ctypes.Structure:
- __init__(self, /, *args, **kwargs)
- Initialize self. See help(type(self)) for accurate signature.
Static methods inherited from _ctypes.Structure:
- __new__(*args, **kwargs) from _ctypes.PyCStructType
- Create and return a new object. See help(type) for accurate signature.
Methods inherited from _ctypes._CData:
- __ctypes_from_outparam__(...)
- __hash__(self, /)
- Return hash(self).
- __reduce__(...)
- Helper for pickle.
- __setstate__(...)
|
class GptPartitionType(enum.Enum) |
|
GptPartitionType(value, names=None, *, module=None, qualname=None, type=None, start=1)
Enum for disk partitions type. |
|
- Method resolution order:
- GptPartitionType
- enum.Enum
- builtins.object
Data and other attributes defined here:
- EMPTY = <GptPartitionType.EMPTY: '00000000-0000-0000-0000-000000000000'>
- LEGACY_MBR_PARTITION_GUID = <GptPartitionType.LEGACY_MBR_PARTITION_GUID: '024DEE41-33E7-11D3-9D69-0008C781F39F'>
- PARTITION_BASIC_DATA_GUID = <GptPartitionType.PARTITION_BASIC_DATA_GUID: 'EBD0A0A2-B9E5-4433-87C0-68B6B72699C7'>
- PARTITION_LINUX_FILE_SYSTEM_DATA_GUID = <GptPartitionType.PARTITION_LINUX_FILE_SYSTEM_DATA_GUID: '0FC63DAF-8483-4772-8E79-3D69D8477DE4'>
- PARTITION_LINUX_LVM_GUID = <GptPartitionType.PARTITION_LINUX_LVM_GUID: 'E6D6D379-F507-44C2-A23C-238F2A3DF928'>
- PARTITION_LINUX_RAID_GUID = <GptPartitionType.PARTITION_LINUX_RAID_GUID: 'A19D880F-05FC-4D3B-A006-743F0F84911E'>
- PARTITION_LINUX_SWAP_GUID = <GptPartitionType.PARTITION_LINUX_SWAP_GUID: '0657FD6D-A4AB-43C4-84E5-0933C84B4F4F'>
- PARTITION_MSFT_RESERVED_GUID = <GptPartitionType.PARTITION_MSFT_RESERVED_GUID: 'E3C9E316-0B5C-4DB8-817D-F92DF00215AE'>
- PARTITION_SYSTEM_GUID = <GptPartitionType.PARTITION_SYSTEM_GUID: 'C12A7328-F81F-11D2-BA4B-00A0C93EC93B'>
- PARTITION_U_BOOT_ENVIRONMENT = <GptPartitionType.PARTITION_U_BOOT_ENVIRONMENT: '3DE21764-95BD-54BD-A5C3-4ABE786F38A8'>
- WINDOWS_RECOVERY_TOOLS = <GptPartitionType.WINDOWS_RECOVERY_TOOLS: 'DE94BBA4-06D1-4D40-A16A-BFD50179D6AC'>
Data descriptors inherited from enum.Enum:
- name
- The name of the Enum member.
- value
- The value of the Enum member.
Readonly properties inherited from enum.EnumMeta:
- __members__
- Returns a mapping of member name->value.
This mapping lists all enum members, including aliases. Note that this
is a read-only view of the internal mapping.
|
class MbrPartitionType(enum.Enum) |
|
MbrPartitionType(value, names=None, *, module=None, qualname=None, type=None, start=1)
Enum for disk partitions type. |
|
- Method resolution order:
- MbrPartitionType
- enum.Enum
- builtins.object
Data and other attributes defined here:
- EMPTY = <MbrPartitionType.EMPTY: 0>
- EXT2 = <MbrPartitionType.EXT2: 131>
- FAT12 = <MbrPartitionType.FAT12: 1>
- FAT16 = <MbrPartitionType.FAT16: 4>
- FAT32 = <MbrPartitionType.FAT32: 11>
- FAT32_LBA = <MbrPartitionType.FAT32_LBA: 12>
- GPT_PROTECTIVE = <MbrPartitionType.GPT_PROTECTIVE: 238>
- LINUX_LVM = <MbrPartitionType.LINUX_LVM: 142>
- LINUX_SWAP = <MbrPartitionType.LINUX_SWAP: 130>
- NTFS = <MbrPartitionType.NTFS: 7>
- WINDOWS_RE = <MbrPartitionType.WINDOWS_RE: 39>
Data descriptors inherited from enum.Enum:
- name
- The name of the Enum member.
- value
- The value of the Enum member.
Readonly properties inherited from enum.EnumMeta:
- __members__
- Returns a mapping of member name->value.
This mapping lists all enum members, including aliases. Note that this
is a read-only view of the internal mapping.
|
class Partition(builtins.object) |
|
Partition(start_sector: int, end_sector: int, size: int) -> None
Partition(start_sector: int, end_sector: int, size: int) |
|
Methods defined here:
- __eq__(self, other)
- Return self==value.
- __init__(self, start_sector: int, end_sector: int, size: int) -> None
- Initialize self. See help(type(self)) for accurate signature.
- __repr__(self)
- Return repr(self).
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes defined here:
- __annotations__ = {'end_sector': <class 'int'>, 'size': <class 'int'>, 'start_sector': <class 'int'>}
- __dataclass_fields__ = {'end_sector': Field(name='end_sector',type=<class 'int'>,defau...appingproxy({}),kw_only=False,_field_type=_FIELD), 'size': Field(name='size',type=<class 'int'>,default=<da...appingproxy({}),kw_only=False,_field_type=_FIELD), 'start_sector': Field(name='start_sector',type=<class 'int'>,def...appingproxy({}),kw_only=False,_field_type=_FIELD)}
- __dataclass_params__ = _DataclassParams(init=True,repr=True,eq=True,order=False,unsafe_hash=False,frozen=False)
- __hash__ = None
- __match_args__ = ('start_sector', 'end_sector', 'size')
|
class PartitionStatus(enum.Enum) |
|
PartitionStatus(value, names=None, *, module=None, qualname=None, type=None, start=1)
Enum for disk partitions status (bootable or not bootable). |
|
- Method resolution order:
- PartitionStatus
- enum.Enum
- builtins.object
Data and other attributes defined here:
- ACTIVE = <PartitionStatus.ACTIVE: 128>
- INACTIVE = <PartitionStatus.INACTIVE: 0>
Data descriptors inherited from enum.Enum:
- name
- The name of the Enum member.
- value
- The value of the Enum member.
Readonly properties inherited from enum.EnumMeta:
- __members__
- Returns a mapping of member name->value.
This mapping lists all enum members, including aliases. Note that this
is a read-only view of the internal mapping.
| |