dissect.volume#

View on GitHub

A Dissect module implementing a parser for different disk volume and partition systems, for example LVM2, GPT and MBR.

Installation#

dissect.volume is available on PyPI.

$ pip install dissect.volume

This module is also automatically installed if you install the dissect package.

Usage#

This package is a library with no CLI tools, so you can only interact with it from Python. For example, to print all partitions on a disk:

from dissect.volume.disk import Disk

fh = open_disk()  # Open any disk as a file-like object, e.g. a virtual disk using dissect.hypervisor

disk = Disk(fh)
print(disk.partitions)

Reference#

For more details, please refer to the API documentation of dissect.volume.