man > GRUB-PROBE

⚡ TLDR: GRUB-PROBE (tldr-pages)

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}}
GRUB-PROBE(8)                      System Administration Utilities                     GRUB-PROBE(8)

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     separate items in output using ASCII NUL characters

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

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

       -t, --target=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 (pass twice to enable debug printing).

       -?, --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 AT gnu.org>.

SEE ALSO
       grub-fstest(1)

       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.12-1ubuntu7.3                         March 2025                                GRUB-PROBE(8)

Generated by phpman v4.12.26 · Markdown · JSON Author: Che Dong Under GNU General Public License
2026-11-09 19:33 @2600:1f28:365:80b0:e22:2a81:3fc7:d534
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Valid XHTML 1.0 Transitional!Valid CSS!