Update cheatsheets

This commit is contained in:
ivuorinen
2025-10-11 00:18:10 +00:00
parent 4ccd905055
commit d185573d5d
9 changed files with 193 additions and 1 deletions

41
tldr/linux/grub-mount Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# grub-mount
> Mount a file system or file system image read-only using GRUB's file system drivers.
> More information: <https://www.gnu.org/software/grub/manual/grub/grub.html#Invoking-grub_002dmount>.
- Mount a block device or file system image to a mount point:
`grub-mount {{/dev/sdXY}} {{/mnt}}`
- Mount an entire disk image's second partition, `-r` specifies the partition number in the image:
`grub-mount {{[-r|--root]}} {{2}} {{disk.img}} {{/mnt}}`
- Mount an encrypted device and prompt for a passphrase:
`grub-mount {{[-C|--crypto]}} {{/dev/sdXY}} {{/mnt}}`
- Load a ZFS encryption key from a file:
`grub-mount {{[-K|--zfs-key]}} {{/path/to/zfs.key}} {{/dev/sdX}} {{/mnt}}`
- Show debugging output for a matching category:
`grub-mount {{[-d|--debug]}} {{string}} {{image}} {{/mnt}}`
- Enable verbose output:
`grub-mount {{[-v|--verbose]}} {{image}} {{/mnt}}`
- Display help:
`grub-mount {{[-?|--help]}}`
- Display version:
`grub-mount --version`