Linux Commands Examples

A great documentation place for Linux commands

grub-probe

probe device information for GRUB


see also : grub-fstest

Synopsis

grub-probe [OPTION...] [OPTION]... [PATH|DEVICE]


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

1
source
            
for device in $BOOT_DEVICE; do
GROOT=$($ROOTCMD grub-probe -tdrive -d $device)
$ROOTCMD grub-install --no-floppy --modules="lvm raid" "$GROOT"
0
source
            
GROOT=$($ROOTCMD grub-probe -tdrive -d $BOOT_DEVICE)
# see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=606035
GROOT=$(echo $GROOT | sed 's:md/:md:g')

description

Probe device information for a given path (or device, if the -d option is given).
-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=
(fs|fs_uuid|fs_label|drive|device|partmap|abstraction|cryptodisk_uuid|msdos_parttype)

print filesystem module, GRUB drive, system device, partition map module, abstraction module or cryptographic container UUID [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 corresponding short options.

reporting bugs

Report bugs to <bug-grub[:at:]gnu[:dot:]org>.


see also

grub-fstest

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.

How can this site be more helpful to YOU ?


give  feedback