Skip to contentSkip to conversation

grub-probe --target=disk not documented

DISCUSSION Phillip Susi 2 participants 2 messages Mar 25, 2014

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I noticed that --target=disk is not mentioned in either the grub-probe man page, nor --help.

Also I noticed that it gives no output, or error for lvm disks:

grub-probe --target=disk /
#no output or error
grub-probe --target=device / /dev/mapper/devserv-root
grub-probe --target=disk -d /dev/mapper/devserv-root #no output or error
grub-probe --target=disk -d /dev/mapper/md0 /dev/md0

Why does it appear to give the same output as --target=device when run on md or sd devices, then nothing for lvm?

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTMaJtAAoJEI5FoCIzSKrwDmsIAI5DNbE1q4WHSD9oKo0akmx2 FWzmt3cTTBhbwXRASwATtlf7RKtf21rJUfjN5OHEjy4lndss7OZahqv52Par3LJZ Jkw6dLCu4VoOETfK8pdo+OBBPtLyBFCTSWwDHvswtPMCPUhtVV3kQNnCLmrETNc8 iv/LAMoJiUGC0kkRXB+6fHjoBh5dohZ8M8gkqLMXKdhFsa2NEch6QYDdpAA41jvs az2sNmcYYmXbrUP3PjE+GYDCLEHH22GDcaiSL/gTcXFSRXsIvdwRg6eM5NGq6SBY crVRDlry44OepYCRVcyZ4kBo1dDYipKWntqUCww5iLq/YNAAbDBirp8g4tpiVqw= =ald9
-----END PGP SIGNATURE-----

#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

В Tue, 25 Mar 2014 11:36:13 -0400
Phillip Susi <[email protected]> пишет:

Quoted 6 lines

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I noticed that --target=disk is not mentioned in either the grub-probe man page, nor --help.

It is in current master (man page is autogenerated from --help output).

Quoted 11 lines

Also I noticed that it gives no output, or error for lvm disks:

grub-probe --target=disk /
#no output or error
grub-probe --target=device / /dev/mapper/devserv-root
grub-probe --target=disk -d /dev/mapper/devserv-root #no output or error
grub-probe --target=disk -d /dev/mapper/md0 /dev/md0

Quoted 3 lines

Why does it appear to give the same output as --target=device when run on md or sd devices, then nothing for lvm?

There was quite a number of changes in master related to device-mapper handling so I suggest you retest using current HEAD.

bor@opensuse:~/build/grub> sudo ./grub-probe --target disk --device /dev/mapper/system-root /dev/mapper/system-root
bor@opensuse:~/build/grub>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iEYEARECAAYFAlMxpsYACgkQR6LMutpd94wiIQCgwKcGcoP9fWlnIEzBX++4IXp5 jEwAn2jZfJlvibUN1q94sSYOHroQXg+Y
=v7lH
-----END PGP SIGNATURE-----