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

Moritz Naumann bugs.debian.org at moritz-naumann.com
Wed Jul 23 19:23:38 UTC 2008


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

Felix Zielcke wrote:
> ./configure; make install installs everything to /usr/local not /usr
> and /usr is before /usr/local in PATH
> update-grub is just a bash script which invokes some commands

I realized this, thanks for making me aware though. I *think* the
update-grub script also sets a 'PREFIX' variable which all executables
the script invokes are prefixed with.

> In your case it still took the old grub-probe in /usr/sbin/

... so I'm not sure this is true. But even if it is...

> The best would be to use directly ./grub-probe

I did this, see the output I quoted in my previous email.

>> > debby:~/grub2-1.96+20080704# ./grub-probe -v -d /dev/dm-5
> 
> Urm sorry didn't see that you invoked it with ./

That's alright.

> and update-grub just generates grub.cfg.

menu.lst actually, since I use grub legacy, but I get your point:

> grub-install uses grub-probe.
> 
>> > grub-probe: error: Cannot find a GRUB drive for /dev/dm-5.  Check your
> device.map
> 
> Delele /boot/grub/device.map and call grub-install so that it gets regenerated.
> But make sure it's using the new grub-probe and not the old one from /usr 

Making sure...
> debby:~/grub2-1.96+20080704# dpkg -r --force-depends grub-common
> dpkg: grub-common: Abhängigkeitsprobleme, aber entferne es auf Anfrage dennoch:
>  grub hängt ab von grub-common.
> (Lese Datenbank ... 219381 Dateien und Verzeichnisse sind derzeit installiert.)
> Entferne grub-common ...
> debby:~/grub2-1.96+20080704# 

Running grub-install...
> debby:~/grub2-1.96+20080704# /usr/local/sbin/grub-install --recheck /dev/md0
> grub-setup: error: Unknown device number: 254, 5
> debby:~/grub2-1.96+20080704# 

> debby:~/grub2-1.96+20080704# /usr/local/sbin/grub-install --recheck /dev/md2
> grub-setup: error: Unknown device number: 254, 7
> debby:~/grub2-1.96+20080704# 

> debby:~/grub2-1.96+20080704# mount |grep md
> /dev/md2 on / type ext3 (rw,errors=remount-ro)
> /dev/md0 on /boot type ext3 (rw)
> debby:~/grub2-1.96+20080704# 



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

iEYEAREKAAYFAkiHhTMACgkQn6GkvSd/BgwSnACdFRDm4sfu7vgURRzn+CQCMLoD
lz0AoIHDinVXQwSQbLjdt1+cIQ+fcX1f
=fEzx
-----END PGP SIGNATURE-----





More information about the Pkg-grub-devel mailing list