Bug#479056: grub: destroys /boot/grub/device.map
Robert Millan
rmh at aybabtu.com
Fri May 2 19:18:01 UTC 2008
On Fri, May 02, 2008 at 03:27:38PM +0200, Aurelien Jarno wrote:
>
> Starting with version 0.97-33, /usr/sbin/update-grub destroys
> /boot/grub/device.map,
This is (probably) intentional. When device.map doesn't contain the needed
information, it regenerates it with grub-mkdevicemap in an attempt to solve
the situation.
> and then outputs the following error message:
>
> Searching for GRUB installation directory ... found: /boot/grub
> grub-probe: error: Cannot find a GRUB drive for /dev/vda1. Check your device.map.
>
> Here is the contents of /boot/grub/device.map before it is destroyed:
> (fd0) /dev/fd0
> (hd0) /dev/vda
>
> /dev/vda corresponds to the first virtio device.
AFAICS there are two problems here:
- grub-mkdevicemap doesn't grok virtio devices. Could you confirm the
attached quick & dirty patch makes it work? Also, is this device path
Linux-specific?
- grub-probe can't handle the conversion (once device.map is correct). I
need more information about this. Try:
grub-probe -t drive -d /dev/vda -v
and maybe also:
grub-probe -t drive -d /dev/vda -vv
--
Robert Millan
<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: virtio.diff
Type: text/x-diff
Size: 536 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20080502/ff95424a/attachment.diff
More information about the Pkg-grub-devel
mailing list