The program grub-mount performs a read-only mount of any file system or file system image that GRUB understands, using GRUB’s file system drivers via FUSE. (It is only available if FUSE development files were present when GRUB was built.) This has a number of uses:
Using grub-mount is normally as simple as:
grub-mount /dev/sda1 /mntgrub-mount must be given one or more images and a mount point as non-option arguments (if it is given more than one image, it will treat them as a RAID set).
--helpPrint a summary of the command-line options and exit.
--versionPrint the version number of GRUB and exit.
-C--cryptoMount encrypted devices, prompting for a passphrase if necessary.
-d string--debug=stringShow debugging output for conditions matching string.
-K prompt|file--zfs-key=prompt|fileLoad a ZFS encryption key. If you use ‘prompt’ as the argument, grub-mount will read a passphrase from the terminal; otherwise, it will read key material from the specified file.
-r device--root=deviceSet the GRUB root device to device. You do not normally need to set this; grub-mount will automatically set the root device to the root of the supplied file system.
If device is just a number, then it will be treated as a partition number within the supplied image. This means that, if you have an image of an entire disk in disk.img, then you can use this command to mount its second partition:
grub-mount -r 2 disk.img mount-point-v--verbosePrint verbose messages.