grub-mount
linux
Mount a filesystem or filesystem image read-only using GRUB's filesystem drivers.
More info →Options (6)
-r, --rootbooleanMount an entire disk image's second partition, `-r` specifies the partition number in the image
Example:
grub-mount {{[-r|--root]}} {{2}} {{disk.img}} {{/mnt}}-C, --cryptobooleanMount an encrypted device and prompt for a passphrase
Example:
grub-mount {{[-C|--crypto]}} {{/dev/sdXY}} {{/mnt}}-K, --zfs-keybooleanLoad a ZFS encryption key from a file
Example:
grub-mount {{[-K|--zfs-key]}} /{{path/to/zfs.key}} {{/dev/sdX}} {{/mnt}}-d, --debugbooleanShow debugging output for a matching category
Example:
grub-mount {{[-d|--debug]}} {{string}} {{image}} {{/mnt}}-v, --verbosebooleanEnable verbose output
Example:
grub-mount {{[-v|--verbose]}} {{image}} {{/mnt}}--helpbooleanDisplay help
Example:
grub-mount {{[-?|--help]}}Examples (8)
Mount a block device or filesystem image to a mount point
grub-mount /dev/sdXY /mntMount an entire disk image's second partition, `-r` specifies the partition number in the image
grub-mount [-r|--root] 2 disk.img /mntMount an encrypted device and prompt for a passphrase
grub-mount [-C|--crypto] /dev/sdXY /mntLoad a ZFS encryption key from a file
grub-mount [-K|--zfs-key] /path/to/zfs.key /dev/sdX /mntShow debugging output for a matching category
grub-mount [-d|--debug] string image /mntEnable verbose output
grub-mount [-v|--verbose] image /mntDisplay help
grub-mount [-?|--help]Display version
grub-mount --versionmade by @shridhargupta | data from tldr-pages