# grub-probe(8) - man - phpman

> **TLDR:** Probe device information for a particular path or device.
>
- Get GRUB filesystem module for a path:
  `sudo grub-probe {{-t|--target}} fs {{/boot/grub}}`
- Get the system device containing a path:
  `sudo grub-probe {{-t|--target}} device {{/boot/grub}}`
- Get 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/grub}}`
- Get filesystem label:
  `sudo grub-probe {{-t|--target}} fs_label {{/boot/grub}}`
- Get MBR partition type code(two hexadecimal digits):
  `sudo grub-probe {{-t|--target}} msdos_parttype {{/dev/sdX}}`
- Probe using a custom device map:
  `sudo grub-probe {{-t|--target}} drive {{/boot/grub}} {{-m|--device-map}} {{path/to/custom_device.map}}`

*Source: tldr-pages*

---

[GRUB-PROBE(8)](https://www.chedong.com/phpMan.php/man/GRUB-PROBE/8/markdown)                      System Administration Utilities                     [GRUB-PROBE(8)](https://www.chedong.com/phpMan.php/man/GRUB-PROBE/8/markdown)



## NAME
       grub-probe - probe device information for GRUB

## SYNOPSIS
       **grub-probe** [_OPTION_...] [_OPTION_]... [_PATH|DEVICE_]

## DESCRIPTION
       Probe device information for a given path (or device, if the **-d** option is given).

### -0

### -d --device
              given argument is a system device, not a path

### -m --device-map
              use FILE as the device map [default=/boot/grub/device.map]

### -t --target
              print  TARGET  available targets: abstraction, arc_hints, baremetal_hints, bios_hints,
              compatibility_hint, cryptodisk_uuid, device, disk,  drive,  efi_hints,  fs,  fs_label,
              fs_uuid,  gpt_parttype,  hints_string, ieee1275_hints, msdos_parttype, partmap, partu‐
              uid, zero_check [default=fs]

### -v --verbose
              print verbose messages.

       -?, **--help**
              give this help list

### --usage
              give a short usage message

### -V --version
              print program version

       Mandatory or optional arguments to long options are also mandatory or optional for any corre‐
       sponding short options.

## REPORTING BUGS
       Report bugs to <<bug-grub@gnu.org>>.

## SEE ALSO
       [**grub-fstest**(1)](https://www.chedong.com/phpMan.php/man/grub-fstest/1/markdown)

       The  full  documentation  for  **grub-probe** is maintained as a Texinfo manual.  If the **info** and
       **grub-probe** programs are properly installed at your site, the command

              **info** **grub-probe**

       should give you access to the complete manual.



GRUB 2.06-2ubuntu7.2                        December 2022                              [GRUB-PROBE(8)](https://www.chedong.com/phpMan.php/man/GRUB-PROBE/8/markdown)
