commands.sh

systemd-dissect

linux

Introspect and interact with filesystem OS disk images, specifically Discoverable Disk Images (DDIs).

More info →

Options (3)

-m, --mountboolean

Mount an OS image

Example: systemd-dissect {{[-m|--mount]}} {{path/to/image.raw}} {{/mnt/image}}
-u, --umountboolean

Unmount an OS image

Example: systemd-dissect {{[-u|--umount]}} {{/mnt/image}}
-l, --listboolean

List files in an image

Example: systemd-dissect {{[-l|--list]}} {{path/to/image.raw}}

Examples (6)

Show general image information about the OS image

systemd-dissect path/to/image.raw

Mount an OS image

systemd-dissect [-m|--mount] path/to/image.raw /mnt/image

Unmount an OS image

systemd-dissect [-u|--umount] /mnt/image

List files in an image

systemd-dissect [-l|--list] path/to/image.raw

Attach an OS image to an automatically allocated loopback block device and print its path

systemd-dissect --attach path/to/image.raw

Detach an OS image from a loopback block device

systemd-dissect --detach path/to/device
made by @shridhargupta | data from tldr-pages