Bug#514976: grub-probe cannot locate /boot on /dev/sdag1, even when device.map is correct

Brian May brian at vpac.org
Wed Nov 10 00:52:18 UTC 2010


Excerpts from Vladimir 'φ-coder/phcoder' Serbinenko's message of 2010-11-09 20:27:10 +1100:
> This file is actually shared between GRUB2 and GRUB1 in Debian and comes
> from GRUB2 upstream. I fixed it upstream in GRUB2.
> You don't need to actually install any GRUB to test it. It's enough to:
> bzr branch http://bzr.savannah.gnu.org/r/grub/trunk/grub/
> cd grub
> ./autogen.sh
> ./configure
> make
> sudo ./grub-probe -t fs <sdag1 mountpoint>
> 
> Last command should give you the FS of sdag1

Unfortunately we have restructed our storage, so we no longer have as many
drives as we use to. So the last drive is now /dev/sdr. As a result, I don't think
I can test this anymore.

However, in case this helps. Initially I get an error, I had to use the -d flag
for it to work, is this expected?

stg7 grub # ./grub-probe -t fs  -v /dev/sdq1 
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: scanning hd0 for LVM.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: no LVM signature found
.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: scanning hd0 for LVM.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: no LVM signature found
.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: scanning hd0,msdos2 for LVM.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: scanning hd0,msdos1 for LVM.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: no LVM signature found
.
./grub-probe: info: changing current directory to /dev.
./grub-probe: info: changing current directory to bus.
./grub-probe: info: changing current directory to usb.
./grub-probe: info: changing current directory to 004.
./grub-probe: info: changing current directory to 003.
./grub-probe: info: changing current directory to 002.
./grub-probe: info: changing current directory to 001.
./grub-probe: info: changing current directory to snd.
./grub-probe: info: changing current directory to net.
./grub-probe: info: changing current directory to shm.
./grub-probe: info: changing current directory to pts.
./grub-probe: info: changing current directory to stg7.
./grub-probe: info: changing current directory to mapper.
./grub-probe: info: changing current directory to md.
./grub-probe: info: changing current directory to disk.
./grub-probe: info: changing current directory to by-uuid.
./grub-probe: info: changing current directory to by-path.
./grub-probe: info: changing current directory to by-id.
./grub-probe: info: changing current directory to input.
./grub-probe: info: changing current directory to by-id.
./grub-probe: info: changing current directory to by-path.
./grub-probe: info: changing current directory to char.
./grub-probe: info: changing current directory to bsg.
./grub-probe: info: changing current directory to block.
./grub-probe: error: cannot find a device for /dev/sdq1 (is /dev mounted?).


Using the -d option works:

stg7 grub # ./grub-probe -t fs  -v -d /dev/sdq1 
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: scanning hd0 for LVM.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: no LVM signature found
.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: scanning hd0 for LVM.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: no LVM signature found
.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: scanning hd0,msdos2 for LVM.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: scanning hd0,msdos1 for LVM.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: no LVM signature found
.
./grub-probe: info: /dev/sdq1 starts from 63.
./grub-probe: info: opening the device hd0.
./grub-probe: info: the size of hd0 is 488017920.
./grub-probe: info: Partition 0 starts from 63.
./grub-probe: info: opening hd0,msdos1.
./grub-probe: info: the size of hd0 is 488017920.
ext2
--
Brian May <brian at vpac.org>





More information about the Pkg-grub-devel mailing list