Bug#473340: grub-probe: "cannot find a GRUB drive for ...."

Blaž Lorger blaz.lorger at triera.net
Mon Mar 31 21:45:47 UTC 2008


Dne Monday 31 of March 2008 je Robert Millan napisal(a):
> On Mon, Mar 31, 2008 at 10:24:59PM +0200, Blaž Lorger wrote:
> > Dne Monday 31 of March 2008 je Blaž Lorger napisal(a):
> > > > On Sun, Mar 30, 2008 at 03:23:03AM +0200, Blaž Lorger wrote:
> > > > > Package: grub
> > > > > Version: 0.97-35
> > > > >
> > > > > After upgrade from grub version 0.97-32, I was unable to install
> > > > > new kernel version becouse update-grub fails. It seems that problem
> > > > > is with grub-probe: isis:~# grub-probe  /
> > > > > 	grub-probe: error: cannot find a GRUB drive for /dev/sde1.
> > > >
> > > > Please attach your /boot/grub/device.map.
> > >
> > > It's just oneliner:
> > > (hd0)   /dev/sda
> > >
> > > This was true until I installed 5th drive. Now it'a a lottery whether
> > > hd0 is /dev/sda or /dev/sde.
> >
> > Some additional information may help.
> > Devices /dev/sda, ..., /dev/sdd are joined in RAID.
>
> And sde?
>
> Please provide the output of:
>
> grub-probe -t device /
> grub-probe -t device /boot
> grub-probe -t fs /boot

sde is physicall disk. It's 1st HD detected by BIOS.

Now using several different device.map files:

Default one:
isis:~# cat /boot/grub/device.map
(hd0)   /dev/sda

One containing only sde:
isis:~# cat sde-device.map
(hd0) /dev/sde

Newly generated one:
isis:~# echo quit |grub --device-map=new-device.map --batch
isis:~# cat new-device.map
(fd0)   /dev/fd0
(hd0)   /dev/sda
(hd1)   /dev/sdb
(hd2)   /dev/sdc
(hd3)   /dev/sdd
(hd4)   /dev/sde
(hd5)   /dev/sdf

Since I don't have floppy drive I had to edit generated file:
isis:~# cat edited-device.map
(hd0)   /dev/sda
(hd1)   /dev/sdb
(hd2)   /dev/sdc
(hd3)   /dev/sdd
(hd4)   /dev/sde
(hd5)   /dev/sdf

And finally using symlinks by ID:
isis:~# cat byid-device.map
(hd0) /dev/disk/by-id/scsi-S_3ND034S4
(hd1) /dev/disk/by-id/scsi-S_3ND1DBEF
(hd2) /dev/disk/by-id/scsi-S_9QG0RTF1
(hd3) /dev/disk/by-id/scsi-S_WD-WCAPW3292614
(hd4) /dev/disk/by-id/scsi-S_9QG0VRJT
(hd5) /dev/disk/by-id/scsi-S_WD-WCAPW3375714


Here is the result:

isis:~# grub-probe -t device /
/dev/sde1
isis:~# grub-probe -t device /boot
/dev/sde1
isis:~# grub-probe -t fs /boot
grub-probe: error: cannot find a GRUB drive for /dev/sde1.

isis:~# grub-probe --device-map=sde-device.map -t device /
/dev/sde1
isis:~# grub-probe --device-map=sde-device.map -t device /boot
/dev/sde1
isis:~# grub-probe --device-map=sde-device.map -t fs /boot
ext2

isis:~# grub-probe --device-map=new-device.map -t device /
grub-probe: error: Cannot get the real path of `/dev/fd0'
isis:~# grub-probe --device-map=new-device.map -t device /boot
grub-probe: error: Cannot get the real path of `/dev/fd0'
isis:~# grub-probe --device-map=new-device.map -t fs /boot
grub-probe: error: Cannot get the real path of `/dev/fd0'

isis:~# grub-probe --device-map=edited-device.map -t device /
/dev/sde1
isis:~# grub-probe --device-map=edited-device.map -t device /boot
/dev/sde1
isis:~# grub-probe --device-map=edited-device.map -t fs /boot
ext2

isis:~# grub-probe --device-map=byid-device.map -t device /
/dev/sde1
isis:~# grub-probe --device-map=byid-device.map -t device /boot
/dev/sde1
isis:~# grub-probe --device-map=byid-device.map -t fs /boot
ext2





More information about the Pkg-grub-devel mailing list