Linux command
grub-mount 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Mount
grub-mount [/dev/sdXY] [/mnt]
Example
grub-mount -r [2] [disk.img] [/mnt]
Example
grub-mount -C [/dev/sdXY] [/mnt]
Example
grub-mount -K [path/to/zfs.key] [/dev/sdX] [/mnt]
Example
grub-mount -v [image] [/mnt]
说明
grub-mount mounts file systems or disk images read-only using GRUB's built-in file system drivers via FUSE. This is useful for accessing file systems that GRUB supports but the host operating system might not, or for inspecting boot images. The tool supports various file systems including ext2/3/4, XFS, Btrfs, ZFS, FAT, NTFS, and ISO9660. It can also handle encrypted volumes with the appropriate options.
参数
- -r, --root _PARTITION_
- Specify partition number to mount from a disk image
- -C, --crypto
- Enable cryptographic device support, prompts for passphrase
- -K, --zfs-key _FILE_
- Load ZFS encryption key from specified file
- -d, --debug _STRING_
- Show debugging output for matching category
- -v, --verbose
- Enable verbose output
- --version
- Display version information
FAQ
What is the grub-mount command used for?
grub-mount mounts file systems or disk images read-only using GRUB's built-in file system drivers via FUSE. This is useful for accessing file systems that GRUB supports but the host operating system might not, or for inspecting boot images. The tool supports various file systems including ext2/3/4, XFS, Btrfs, ZFS, FAT, NTFS, and ISO9660. It can also handle encrypted volumes with the appropriate options.
How do I run a basic grub-mount example?
Run `grub-mount [/dev/sdXY] [/mnt]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -r, --root _PARTITION_ do in grub-mount?
Specify partition number to mount from a disk image