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

Moritz Naumann bugs.debian.org at moritz-naumann.com
Sun Jul 27 22:36:10 UTC 2008


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

Robert Millan wrote:
> On Sun, Jul 27, 2008 at 03:07:41PM +0200, Moritz Naumann wrote:
>> debby:~# /usr/sbin/grub-probe -t device /boot
>> /dev/md0
>>
>> debby:~# /usr/sbin/grub-probe -t device /
>> /dev/md2
> 
> Does 'which grub-probe' return '/usr/sbin/grub-probe' ?

debby:~# which grub-probe
/usr/sbin/grub-probe
debby:~#

debby:~# which update-grub
/usr/sbin/update-grub
debby:~#

>> 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.
> 
> Please set the first line of update-grub to '#!/bin/bash -x' and capture
> the output.

debby:~# /usr/sbin/update-grub
+ set -e
++ uname -s
++ tr '[A-Z]' '[a-z]'
+ host_os=linux
++ find_grub_dir
++ echo -n 'Searching for GRUB installation directory ... '
Searching for GRUB installation directory ... ++ for d in /boot/grub
/boot/boot/grub
++ '[' -d /boot/grub ']'
++ grub_dir=/boot/grub
++ break
++ '[' -z /boot/grub ']'
++ echo 'found: /boot/grub'
found: /boot/grub
++ echo /boot/grub
+ grub_dir=/boot/grub
+ device_map=/boot/grub/device.map
+ menu_file_basename=menu.lst
+ menu_file=/boot/grub/menu.lst
+ default_file_basename=default
+ default_file=/boot/grub/default
++ find_device /
++ test -e /boot/grub/device.map
++ grub-probe --device-map=/boot/grub/device.map -t device /
+ root_device=/dev/md2
+ case ${root_device} in
++ find_device /boot
++ test -e /boot/grub/device.map
++ grub-probe --device-map=/boot/grub/device.map -t device /boot
+ boot_device=/dev/md0
++ make_system_path_relative_to_its_root /boot
++ path=/boot
++ test -e /boot
++ :
+++ readlink -f /boot
++ path=/boot
++ :
++ test -d /boot
++ dir=/boot
+++ stat -c %d /boot
++ num=2304
++ :
+++ readlink -f /boot/..
++ parent=/
+++ stat -c %d /
++ '[' x2306 = x2304 ']'
++ break
++ '[' /boot = / ']'
++ echo /boot
++ sed -e 's,^/boot,,g'
+ kernel_dir=
++ grub-probe -t abstraction --device /dev/md2
+ abstraction=raid
+ '[' raid = '' ']'
+ linux_root_device=/dev/md2
+ kopt='root=/dev/md2 ro'
++ uname -s
++ sed -e s,GNU/,,g
+ title='Debian GNU/Linux'
+ updatedefaultentry=false
++ convert_default /dev/md0
+++ convert_raid1 /dev/md0
++ tmp_dev=/dev/dm-5
++ :
++ convert /dev/dm-5
++ test -e /boot/grub/device.map
++ GRUB_LEGACY_0_BASED_PARTITIONS=1
++ grub-probe --device-map=/boot/grub/device.map -t drive -d /dev/dm-5
grub-probe: error: Cannot find a GRUB drive for /dev/dm-5.  Check your
device.map.

+ grub_root_device=
debby:~#

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

iEYEAREKAAYFAkiM+FIACgkQn6GkvSd/BgwwgQCdFdOMfcp++LCaEcu4EEjr1k5b
iugAn3SroxdIIpjrfrd3FpdSMR1coQ+p
=8Nxc
-----END PGP SIGNATURE-----





More information about the Pkg-grub-devel mailing list