grub-probe
Probe device information for a particular path or device. More information: https://www.gnu.org/software/grub/manual/grub/html_node/Invoking-grub_002dprobe.html.
- Get GRUB filesystem module for a path:
sudo grub-probe fs
- Get the system device containing a path:
sudo grub-probe device
- Get GRUB disk name for a system device:
sudo grub-probe drive
- Get filesystem UUID:
sudo grub-probe fs_uuid
- Get filesystem label:
sudo grub-probe fs_label
- Get MBR partition type code(two hexadecimal digits):
sudo grub-probe msdos_parttype
- Probe using a custom device map:
sudo grub-probe drive
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
