Bug#491977: grub-probe fails with "Cannot find a GRUB drive for /dev/dm-N."

Moritz Naumann bugs.debian.org at moritz-naumann.com
Sat Jul 26 16:00:47 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Robert Millan wrote:
> [..] Simply run from your build dir:
> 
>   ./grub-probe -t device /
>   ./grub-probe -t device /boot
> 
> Instead of /dev/dm-X, it should print /dev/md0 or /dev/md2.

While this worked, installing the new grub-common package (from
unstable) didn't change anything. Just to be sure, I also upgraded grub
to the latest legacy version and moved /boot/grub/device.map out of the way.


debby:~# dpkg-query -W -f '${Package} ${Status} ${Version}\n' grub\*
grub install ok installed 0.97-42
grub-choose-default purge ok not-installed
grub-common install ok installed 1.96+20080724-1
grub-efi unknown ok not-installed
grub-ieee1275 unknown ok not-installed
grub-legacy-doc unknown ok not-installed
grub-linuxbios unknown ok not-installed
grub-pc purge ok not-installed
grub2 purge ok not-installed

debby:~# dpkg --configure -a
Setting up linux-image-2.6.25-2-686 (2.6.25-7) ...
Running depmod.
Finding valid ramdisk creators.
Using mkinitramfs-kpkg to build the ramdisk.
Other valid candidates: mkinitramfs-kpkg mkinitrd.yaird
initrd.img(/boot/initrd.img-2.6.25-2-686
) points to /boot/initrd.img-2.6.25-2-686
 (/boot/initrd.img-2.6.25-2-686) -- doing nothing at
/var/lib/dpkg/info/linux-image-2.6.25-2-686.postinst line 569.
vmlinuz(/boot/vmlinuz-2.6.25-2-686
) points to /boot/vmlinuz-2.6.25-2-686
 (/boot/vmlinuz-2.6.25-2-686) -- doing nothing at
/var/lib/dpkg/info/linux-image-2.6.25-2-686.postinst line 569.
Running postinst hook script /usr/sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
grub-probe: error: Cannot find a GRUB drive for /dev/dm-5.  Check your
device.map.

User postinst hook script [/usr/sbin/update-grub] exited with value 1
dpkg: error processing linux-image-2.6.25-2-686 (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-2.6-686:
 linux-image-2.6-686 depends on linux-image-2.6.25-2-686; however:
  Package linux-image-2.6.25-2-686 is not configured yet.
dpkg: error processing linux-image-2.6-686 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-686:
 linux-image-686 depends on linux-image-2.6-686; however:
  Package linux-image-2.6-686 is not configured yet.
dpkg: error processing linux-image-686 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-2.6-k7:
 linux-image-2.6-k7 depends on linux-image-2.6-686; however:
  Package linux-image-2.6-686 is not configured yet.
dpkg: error processing linux-image-2.6-k7 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-k7:
 linux-image-k7 depends on linux-image-686; however:
  Package linux-image-686 is not configured yet.
dpkg: error processing linux-image-k7 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-2.6.25-2-686
 linux-image-2.6-686
 linux-image-686
 linux-image-2.6-k7
 linux-image-k7
debby:~#

debby:~# /usr/sbin/grub-probe -t device /
/dev/md2
debby:~# /usr/sbin/grub-probe -t device /boot
/dev/md0
debby:~#


Am I missing something? Should I take additional measures before retrying?

Thank in advance.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEAREKAAYFAkiLSiEACgkQn6GkvSd/BgxoQwCeJTmSo6YC8wM+/heQmeyUuvke
bp4AoI4APyNYhxdOu0VQEZMoeWrUA8De
=QSO6
-----END PGP SIGNATURE-----





More information about the Pkg-grub-devel mailing list