]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* docs/grub.texi (Invoking grub-probe): New section.
authorColin Watson <cjwatson@ubuntu.com>
Tue, 27 Mar 2012 23:37:00 +0000 (00:37 +0100)
committerColin Watson <cjwatson@ubuntu.com>
Tue, 27 Mar 2012 23:37:00 +0000 (00:37 +0100)
Reported by: Filipus Klutiero.  Fixes Debian bug #666031.

ChangeLog
docs/grub.texi

index b95a6e26aaf40ed7048ddbe4647be4b3811a4f43..7e146a89dc99d3bb3a0b961d35956381f661c0fc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-03-28  Colin Watson  <cjwatson@ubuntu.com>
+
+       * docs/grub.texi (Invoking grub-probe): New section.
+       Reported by: Filipus Klutiero.  Fixes Debian bug #666031.
+
 2012-03-27  Vladimir Serbinenko  <phcoder@gmail.com>
 
        Fix tab and wide character handling in editor and menu.
index 86c9adc7e9131642c3c2ad1f02d5a9a42a786be7..530984cb1bfc3f9f9fe175b95a07dbb7b42bb7c7 100644 (file)
@@ -37,6 +37,7 @@ Invariant Sections.
 * grub-mkconfig: (grub)Invoking grub-mkconfig.  Generate GRUB configuration
 * grub-mkpasswd-pbkdf2: (grub)Invoking grub-mkpasswd-pbkdf2.
 * grub-mkrescue: (grub)Invoking grub-mkrescue.  Make a GRUB rescue image
+* grub-probe: (grub)Invoking grub-probe.        Probe device information
 @end direntry
 
 @setchapternewpage odd
@@ -100,6 +101,7 @@ This edition documents version @value{VERSION}.
 * Invoking grub-mkpasswd-pbkdf2::
                                 Generate GRUB password hashes
 * Invoking grub-mkrescue::      Make a GRUB rescue image
+* Invoking grub-probe::         Probe device information for GRUB
 * Obtaining and Building GRUB:: How to obtain and build GRUB
 * Reporting bugs::              Where you should send a bug report
 * Future::                      Some future plans on GRUB
@@ -4647,6 +4649,92 @@ built-in default.
 @end table
 
 
+@node Invoking grub-probe
+@chapter Invoking grub-probe
+
+The program @command{grub-probe} probes device information for a given path
+or device.
+
+@example
+grub-probe --target=fs /boot/grub
+grub-probe --target=drive --device /dev/sda1
+@end example
+
+@command{grub-probe} must be given a path or device as a non-option
+argument, and also accepts the following options:
+
+@table @option
+@item --help
+Print a summary of the command-line options and exit.
+
+@item --version
+Print the version number of GRUB and exit.
+
+@item -d
+@itemx --device
+If this option is given, then the non-option argument is a system device
+name (such as @samp{/dev/sda1}), and @command{grub-probe} will print
+information about that device.  If it is not given, then the non-option
+argument is a filesystem path (such as @samp{/boot/grub}), and
+@command{grub-probe} will print information about the device containing that
+part of the filesystem.
+
+@item -m @var{file}
+@itemx --device-map=@var{file}
+Use @var{file} as the device map (@pxref{Device map}) rather than the
+default, usually @samp{/boot/grub/device.map}.
+
+@item -t @var{target}
+@itemx --target=@var{target}
+Print information about the given path or device as defined by @var{target}.
+The available targets and their meanings are:
+
+@table @samp
+@item fs
+GRUB filesystem module.
+@item fs_uuid
+Filesystem Universally Unique Identifier (UUID).
+@item fs_label
+Filesystem label.
+@item drive
+GRUB device name.
+@item device
+System device name.
+@item partmap
+GRUB partition map module.
+@item abstraction
+GRUB abstraction module (e.g. @samp{lvm}).
+@item cryptodisk_uuid
+Crypto device UUID.
+@item msdos_parttype
+MBR partition type code (two hexadecimal digits).
+@item hints_string
+A string of platform search hints suitable for passing to the
+@command{search} command (@pxref{search}).
+@item bios_hints
+Search hints for the PC BIOS platform.
+@item ieee1275_hints
+Search hints for the IEEE1275 platform.
+@item baremetal_hints
+Search hints for platforms where disks are addressed directly rather than
+via firmware.
+@item efi_hints
+Search hints for the EFI platform.
+@item arc_hints
+Search hints for the ARC platform.
+@item compatibility_hint
+A guess at a reasonable GRUB drive name for this device, which may be
+used as a fallback if the @command{search} command fails.
+@item disk
+System device name for the whole disk.
+@end table
+
+@item -v
+@itemx --verbose
+Print verbose messages.
+@end table
+
+
 @node Obtaining and Building GRUB
 @appendix How to obtain and build GRUB