{
    "content": [
        {
            "type": "text",
            "text": "# grub-probe(8) (man)\n\n## TLDR\n\n> Probe device information for a particular path or device.\n\n- Get GRUB filesystem module for a path:\n  `sudo grub-probe {{-t|--target}} fs {{/boot/grub}}`\n- Get the system device containing a path:\n  `sudo grub-probe {{-t|--target}} device {{/boot/grub}}`\n- Get GRUB disk name for a system device:\n  `sudo grub-probe {{-t|--target}} drive {{/dev/sdX}} {{-d|--device}}`\n- Get filesystem UUID:\n  `sudo grub-probe {{-t|--target}} fs_uuid {{/boot/grub}}`\n- Get filesystem label:\n  `sudo grub-probe {{-t|--target}} fs_label {{/boot/grub}}`\n- Get MBR partition type code(two hexadecimal digits):\n  `sudo grub-probe {{-t|--target}} msdos_parttype {{/dev/sdX}}`\n- Probe using a custom device map:\n  `sudo grub-probe {{-t|--target}} drive {{/boot/grub}} {{-m|--device-map}} {{path/to/custom_device.map}}`\n\n*Source: tldr-pages*\n\n---\n\n**Summary:** grub-probe - probe device information for GRUB\n\n**Synopsis:** grub-probe [OPTION...] [OPTION]... [PATH|DEVICE]\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| -0 | — | — |  |\n| -d | --device | — | given argument is a system device, not a path |\n| -m | --device-map | — | use FILE as the device map [default=/boot/grub/device.map] |\n| -t | --target | — | print TARGET available targets: abstraction, archints, baremetalhints, bioshints, compatibilityhint, cryptodiskuuid, dev |\n| -v | --verbose | — | print verbose messages. -?, --help give this help list |\n| — | --usage | — | give a short usage message |\n| -V | --version | — | print program version Mandatory or optional arguments to long options are also mandatory or optional for any corre‐ spon |\n\n## See Also\n\n- grub-fstest(1)\n- GRUB-PROBE(8)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (2 lines) — 7 subsections\n  - -0 (1 lines)\n  - -d --device (2 lines)\n  - -m --device-map (2 lines)\n  - -t --target (5 lines)\n  - -v --verbose (5 lines)\n  - --usage (2 lines)\n  - -V --version (5 lines)\n- **REPORTING BUGS** (2 lines)\n- **SEE ALSO** (12 lines)\n\n## Full Content\n\n### NAME\n\ngrub-probe - probe device information for GRUB\n\n### SYNOPSIS\n\ngrub-probe [OPTION...] [OPTION]... [PATH|DEVICE]\n\n### DESCRIPTION\n\nProbe device information for a given path (or device, if the -d option is given).\n\n#### -0\n\n#### -d --device\n\ngiven argument is a system device, not a path\n\n#### -m --device-map\n\nuse FILE as the device map [default=/boot/grub/device.map]\n\n#### -t --target\n\nprint  TARGET  available targets: abstraction, archints, baremetalhints, bioshints,\ncompatibilityhint, cryptodiskuuid, device, disk,  drive,  efihints,  fs,  fslabel,\nfsuuid,  gptparttype,  hintsstring, ieee1275hints, msdosparttype, partmap, partu‐\nuid, zerocheck [default=fs]\n\n#### -v --verbose\n\nprint verbose messages.\n\n-?, --help\ngive this help list\n\n#### --usage\n\ngive a short usage message\n\n#### -V --version\n\nprint program version\n\nMandatory or optional arguments to long options are also mandatory or optional for any corre‐\nsponding short options.\n\n### REPORTING BUGS\n\nReport bugs to <bug-grub@gnu.org>.\n\n### SEE ALSO\n\ngrub-fstest(1)\n\nThe  full  documentation  for  grub-probe is maintained as a Texinfo manual.  If the info and\ngrub-probe programs are properly installed at your site, the command\n\ninfo grub-probe\n\nshould give you access to the complete manual.\n\n\n\nGRUB 2.06-2ubuntu7.2                        December 2022                              GRUB-PROBE(8)\n\n"
        }
    ],
    "structuredContent": {
        "command": "grub-probe",
        "section": "8",
        "mode": "man",
        "summary": "grub-probe - probe device information for GRUB",
        "synopsis": "grub-probe [OPTION...] [OPTION]... [PATH|DEVICE]",
        "tldr_summary": "Probe device information for a particular path or device.",
        "tldr_examples": [
            {
                "description": "Get GRUB filesystem module for a path",
                "command": "sudo grub-probe {{-t|--target}} fs {{/boot/grub}}"
            },
            {
                "description": "Get the system device containing a path",
                "command": "sudo grub-probe {{-t|--target}} device {{/boot/grub}}"
            },
            {
                "description": "Get GRUB disk name for a system device",
                "command": "sudo grub-probe {{-t|--target}} drive {{/dev/sdX}} {{-d|--device}}"
            },
            {
                "description": "Get filesystem UUID",
                "command": "sudo grub-probe {{-t|--target}} fs_uuid {{/boot/grub}}"
            },
            {
                "description": "Get filesystem label",
                "command": "sudo grub-probe {{-t|--target}} fs_label {{/boot/grub}}"
            },
            {
                "description": "Get MBR partition type code(two hexadecimal digits)",
                "command": "sudo grub-probe {{-t|--target}} msdos_parttype {{/dev/sdX}}"
            },
            {
                "description": "Probe using a custom device map",
                "command": "sudo grub-probe {{-t|--target}} drive {{/boot/grub}} {{-m|--device-map}} {{path/to/custom_device.map}}"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "-0",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-d",
                "long": "--device",
                "arg": null,
                "description": "given argument is a system device, not a path"
            },
            {
                "flag": "-m",
                "long": "--device-map",
                "arg": null,
                "description": "use FILE as the device map [default=/boot/grub/device.map]"
            },
            {
                "flag": "-t",
                "long": "--target",
                "arg": null,
                "description": "print TARGET available targets: abstraction, archints, baremetalhints, bioshints, compatibilityhint, cryptodiskuuid, device, disk, drive, efihints, fs, fslabel, fsuuid, gptparttype, hintsstring, ieee1275hints, msdosparttype, partmap, partu‐ uid, zerocheck [default=fs]"
            },
            {
                "flag": "-v",
                "long": "--verbose",
                "arg": null,
                "description": "print verbose messages. -?, --help give this help list"
            },
            {
                "flag": "",
                "long": "--usage",
                "arg": null,
                "description": "give a short usage message"
            },
            {
                "flag": "-V",
                "long": "--version",
                "arg": null,
                "description": "print program version Mandatory or optional arguments to long options are also mandatory or optional for any corre‐ sponding short options."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "grub-fstest",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/grub-fstest/1/json"
            },
            {
                "name": "GRUB-PROBE",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/GRUB-PROBE/8/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 2,
                "subsections": [
                    {
                        "name": "-0",
                        "lines": 1,
                        "flag": "-0"
                    },
                    {
                        "name": "-d --device",
                        "lines": 2,
                        "flag": "-d",
                        "long": "--device"
                    },
                    {
                        "name": "-m --device-map",
                        "lines": 2,
                        "flag": "-m",
                        "long": "--device-map"
                    },
                    {
                        "name": "-t --target",
                        "lines": 5,
                        "flag": "-t",
                        "long": "--target"
                    },
                    {
                        "name": "-v --verbose",
                        "lines": 5,
                        "flag": "-v",
                        "long": "--verbose"
                    },
                    {
                        "name": "--usage",
                        "lines": 2,
                        "long": "--usage"
                    },
                    {
                        "name": "-V --version",
                        "lines": 5,
                        "flag": "-V",
                        "long": "--version"
                    }
                ]
            },
            {
                "name": "REPORTING BUGS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 12,
                "subsections": []
            }
        ]
    }
}