From 8dd16b530f05ab21dca9ec4577f322d483adc776 Mon Sep 17 00:00:00 2001 From: scar027 Date: Fri, 17 Oct 2025 15:24:08 +0530 Subject: [PATCH 1/6] grub-probe: add page Signed-off-by: scar027 --- pages/linux/grub-probe.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pages/linux/grub-probe.md diff --git a/pages/linux/grub-probe.md b/pages/linux/grub-probe.md new file mode 100644 index 00000000000000..12032ba4a55504 --- /dev/null +++ b/pages/linux/grub-probe.md @@ -0,0 +1,32 @@ +# grub-probe + +> Probe device information for a particular path or device. +> More information: . + +- 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 {{[-d|--device]}} {{[-t|--target=]}}drive {{/dev/sdX}}` + +- 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 {{[-m|--device-map=]}}{{path/to/custom_device.map}} {{[-t|--target=]}}drive {{/boot/grub}}` From bb8f712a5b64c5717fe6ed514c02f24b95d65aaf Mon Sep 17 00:00:00 2001 From: Shantanu Pai <142613623+scar027@users.noreply.github.com> Date: Fri, 17 Oct 2025 20:45:04 +0530 Subject: [PATCH 2/6] Update pages/linux/grub-probe.md Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> --- pages/linux/grub-probe.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/linux/grub-probe.md b/pages/linux/grub-probe.md index 12032ba4a55504..759595e604c7d2 100644 --- a/pages/linux/grub-probe.md +++ b/pages/linux/grub-probe.md @@ -5,7 +5,7 @@ - Get GRUB filesystem module for a path: -`sudo grub-probe {{[-t|--target=]}}fs {{/boot/grub}}` +`sudo grub-probe {{[-t|--target]}} fs {{/boot/grub}}` - Get the system device containing a path: From 0f6663b639f0e823ae68d0680c09415c0078a853 Mon Sep 17 00:00:00 2001 From: Shantanu Pai <142613623+scar027@users.noreply.github.com> Date: Fri, 17 Oct 2025 20:45:13 +0530 Subject: [PATCH 3/6] Update pages/linux/grub-probe.md Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> --- pages/linux/grub-probe.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/linux/grub-probe.md b/pages/linux/grub-probe.md index 759595e604c7d2..f7b2374947b998 100644 --- a/pages/linux/grub-probe.md +++ b/pages/linux/grub-probe.md @@ -29,4 +29,4 @@ - Probe using a custom device map: -`sudo grub-probe {{[-m|--device-map=]}}{{path/to/custom_device.map}} {{[-t|--target=]}}drive {{/boot/grub}}` +`sudo grub-probe {{[-m|--device-map]}} {{path/to/custom_device.map}} {{[-t|--target]}} drive {{/boot/grub}}` From e2467e6e56aa16d3475bfceb2110db62aa050539 Mon Sep 17 00:00:00 2001 From: scar027 Date: Fri, 17 Oct 2025 21:05:37 +0530 Subject: [PATCH 4/6] grub-probe: fix style Signed-off-by: scar027 --- pages/linux/grub-probe.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/linux/grub-probe.md b/pages/linux/grub-probe.md index f7b2374947b998..74e4aa41b1f702 100644 --- a/pages/linux/grub-probe.md +++ b/pages/linux/grub-probe.md @@ -9,23 +9,23 @@ - Get the system device containing a path: -`sudo grub-probe {{[-t|--target=]}}device {{/boot/grub}}` +`sudo grub-probe {{[-t|--target]}} device {{/boot/grub}}` - Get GRUB disk name for a system device: -`sudo grub-probe {{[-d|--device]}} {{[-t|--target=]}}drive {{/dev/sdX}}` +`sudo grub-probe {{[-d|--device]}} {{[-t|--target]}} drive {{/dev/sdX}}` - Get filesystem UUID: -`sudo grub-probe {{[-t|--target=]}}fs_uuid {{/boot/grub}}` +`sudo grub-probe {{[-t|--target]}} fs_uuid {{/boot/grub}}` - Get filesystem label: -`sudo grub-probe {{[-t|--target=]}}fs_label {{/boot/grub}}` +`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}}` +`sudo grub-probe {{[-t|--target]}} msdos_parttype {{/dev/sdX}}` - Probe using a custom device map: From dbe5b855c4c66f485bad6266a848950e818ab732 Mon Sep 17 00:00:00 2001 From: Shantanu Pai <142613623+scar027@users.noreply.github.com> Date: Fri, 17 Oct 2025 22:28:35 +0530 Subject: [PATCH 5/6] Update pages/linux/grub-probe.md Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> --- pages/linux/grub-probe.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/linux/grub-probe.md b/pages/linux/grub-probe.md index 74e4aa41b1f702..60e237c65fc8a9 100644 --- a/pages/linux/grub-probe.md +++ b/pages/linux/grub-probe.md @@ -13,7 +13,7 @@ - Get GRUB disk name for a system device: -`sudo grub-probe {{[-d|--device]}} {{[-t|--target]}} drive {{/dev/sdX}}` +`sudo grub-probe {{[-t|--target]}} drive {{/dev/sdX}} {{[-d|--device]}}` - Get filesystem UUID: From ce36b8012f05619edf7232a4ecb4333127e5412b Mon Sep 17 00:00:00 2001 From: Shantanu Pai <142613623+scar027@users.noreply.github.com> Date: Fri, 17 Oct 2025 22:28:42 +0530 Subject: [PATCH 6/6] Update pages/linux/grub-probe.md Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> --- pages/linux/grub-probe.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/linux/grub-probe.md b/pages/linux/grub-probe.md index 60e237c65fc8a9..cdd49077dcf12d 100644 --- a/pages/linux/grub-probe.md +++ b/pages/linux/grub-probe.md @@ -29,4 +29,4 @@ - Probe using a custom device map: -`sudo grub-probe {{[-m|--device-map]}} {{path/to/custom_device.map}} {{[-t|--target]}} drive {{/boot/grub}}` +`sudo grub-probe {{[-t|--target]}} drive {{/boot/grub}} {{[-m|--device-map]}} {{path/to/custom_device.map}}`