:py:mod:`dissect.volume.disk.schemes.mbr` ========================================= .. py:module:: dissect.volume.disk.schemes.mbr Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: dissect.volume.disk.schemes.mbr.MBR Attributes ~~~~~~~~~~ .. autoapisummary:: dissect.volume.disk.schemes.mbr.mbr_def dissect.volume.disk.schemes.mbr.c_mbr .. py:data:: mbr_def :value: Multiline-String .. raw:: html
Show Value .. code-block:: python """ typedef struct part_s { uint8 bootable; // +0: 0x80/0x00 - bootable/not bootable uint8 start_head; // +1: head (start) uint16 start_cyl_sec; // +2: cyl+sect (start) uint8 type; // +4: type uint8 end_head; // +5: head (end) uint16 end_cyl_sec; // +6: cyl+sec (end) uint32 sector_ofs; // +8: offset in sectors uint32 sector_size; // +12: size in sectors } part; typedef struct mbr_s { char bootcode[0x1b8]; uint32 vol_no; uint16 pad1; part part[4]; uint16 bootsig; } mbr; """ .. raw:: html
.. py:data:: c_mbr .. py:class:: MBR(fh: BinaryIO, sector_size: int = 512) Master Boot Record.