grub-probe probes device information for a given path
grub-probe --target=fs /boot/grub grub-probe --target=drive --device /dev/sda1
grub-probe must be given a path or device as a non-option
argument, and also accepts the following options:
Print a summary of the command-line options and exit.
Print the version number of GRUB and exit.
If this option is given, then the non-option argument is a system device
name (such as ‘/dev/sda1’), and
grub-probe will print
information about that device. If it is not given, then the non-option
argument is a filesystem path (such as ‘/boot/grub’), and
grub-probe will print information about the device containing that
part of the filesystem.
Use file as the device map (see Device map) rather than the default, usually ‘/boot/grub/device.map’.
Print information about the given path or device as defined by target. The available targets and their meanings are:
GRUB filesystem module.
Filesystem Universally Unique Identifier (UUID).
GRUB device name.
System device name.
GRUB partition map module.
GRUB abstraction module (e.g. ‘lvm’).
Crypto device UUID.
MBR partition type code (two hexadecimal digits).
A string of platform search hints suitable for passing to the
search command (see search).
Search hints for the PC BIOS platform.
Search hints for the IEEE1275 platform.
Search hints for platforms where disks are addressed directly rather than via firmware.
Search hints for the EFI platform.
Search hints for the ARC platform.
A guess at a reasonable GRUB drive name for this device, which may be
used as a fallback if the
search command fails.
System device name for the whole disk.
Print verbose messages.