Linux command
systemd-dissect 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Show
systemd-dissect [path/to/image.raw]
Mount
systemd-dissect -m [path/to/image.raw] [/mnt/image]
Unmount
systemd-dissect -u [/mnt/image]
List
systemd-dissect -l [path/to/image.raw]
Attach
systemd-dissect --attach [path/to/image.raw]
Detach
systemd-dissect --detach [path/to/device]
说明
systemd-dissect introspects and interacts with Discoverable Disk Images (DDIs) and other OS disk images. It can mount, list, and manipulate image contents without requiring manual loopback setup. The tool supports various image formats including raw disk images with GPT partition tables, following the Discoverable Partitions Specification for automatic partition type recognition.
参数
- -m, --mount
- Mount the image to a directory
- -u, --umount
- Unmount a mounted image
- -l, --list
- List files in the image
- --attach
- Attach image to loopback device
- --detach
- Detach image from loopback device
- -x, --copy-from
- Copy files from image
- -a, --copy-to
- Copy files to image
- --root-hash _hash_
- Specify dm-verity root hash
FAQ
What is the systemd-dissect command used for?
systemd-dissect introspects and interacts with Discoverable Disk Images (DDIs) and other OS disk images. It can mount, list, and manipulate image contents without requiring manual loopback setup. The tool supports various image formats including raw disk images with GPT partition tables, following the Discoverable Partitions Specification for automatic partition type recognition.
How do I run a basic systemd-dissect example?
Run `systemd-dissect [path/to/image.raw]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -m, --mount do in systemd-dissect?
Mount the image to a directory