grub-probe(8) - man - phpman

Look up a command

 

Markdown Format | JSON API | MCP Server Tool


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.

       -?, --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.06-2ubuntu7.2                        December 2022                              GRUB-PROBE(8)

Generated by phpMan Author: Che Dong Under GNU General Public License
2026-06-02 12:38 @216.73.216.151 CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 TransitionalValid CSS!