HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

systemd-dissect — Introspect and interact with file system OS disk images, specifically Discoverable Disk Images (DDIs

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandsystemd-dissectandinteractclifileintrospectwith
linux

Problem

How to use the systemd-dissect command: Introspect and interact with file system OS disk images, specifically Discoverable Disk Images (DDIs). More information: <https://www.freedesktop.org/software/systemd/man/latest/systemd-dissect.html>.

Solution

systemd-dissect — Introspect and interact with file system OS disk images, specifically Discoverable Disk Images (DDIs). More information: <https://www.freedesktop.org/software/systemd/man/latest/systemd-dissect.html>.

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}}

Code Snippets

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}}

Context

tldr-pages: linux/systemd-dissect

Revisions (0)

No revisions yet.