Options (3)
-t, --targetbooleanGet GRUB filesystem module for a path
Example:
sudo grub-probe {{[-t|--target]}} fs {{/boot/grub}}-d, --devicebooleanGet GRUB disk name for a system device
Example:
sudo grub-probe {{[-t|--target]}} drive {{/dev/sdX}} {{[-d|--device]}}-m, --device-mapbooleanProbe using a custom device map
Example:
sudo grub-probe {{[-t|--target]}} drive {{/boot/grub}} {{[-m|--device-map]}} {{path/to/custom_device.map}}Examples (7)
Get GRUB filesystem module for a path
sudo grub-probe [-t|--target] fs /boot/grubGet the system device containing a path
sudo grub-probe [-t|--target] device /boot/grubGet GRUB disk name for a system device
sudo grub-probe [-t|--target] drive /dev/sdX [-d|--device]Get filesystem UUID
sudo grub-probe [-t|--target] fs_uuid /boot/grubGet filesystem label
sudo grub-probe [-t|--target] fs_label /boot/grubGet MBR partition type code(two hexadecimal digits)
sudo grub-probe [-t|--target] msdos_parttype /dev/sdXProbe using a custom device map
sudo grub-probe [-t|--target] drive /boot/grub [-m|--device-map] path/to/custom_device.mapmade by @shridhargupta | data from tldr-pages