Bug#478004: grub-probe finds problematic partition device

Lupe Christoph lupe at lupe-christoph.de
Sat Apr 26 09:20:56 UTC 2008


Package: grub
Version: 0.97-36
Severity: important

Setup:

Two different *real* *hardware* RAID controllers as /dev/sda and
/dev/sdb. /boot is on /dev/scsi/host1/bus0/target2/lun0/part1.

This is found by grub-probe -t device /boot as
/dev/scsi/sdh1-f7ceb000c0i2l0p1. The problem is that grub generates a
device.map file likes this:
(fd0)	/dev/fd0
(hd0)	/dev/sda
(hd1)	/dev/sdb

So it does not understand where /boot is when update-grub is run:
Searching for GRUB installation directory ... found: /boot/grub
grub-probe: error: Cannot find a GRUB drive for /dev/scsi/sdh1-f7ceb000c0i2l0p1.  Check your device.map.

To make things more complicated, there is no
/dev/scsi/sdh1-f7ceb000c0i2l0. The device entries in /dev/scsi are:
brw-rw---- 1 root disk  8,  0 2008-04-10 15:49 /dev/scsi/sdh0-0c0i0l0
brw-rw---- 1 root disk  8,  1 2008-04-10 15:49 /dev/scsi/sdh0-0c0i0l0p1
brw-rw---- 1 root disk  8,  2 2008-04-10 15:49 /dev/scsi/sdh0-0c0i0l0p2
brw-rw---- 1 root disk  8, 16 2008-04-10 15:49 /dev/scsi/sdh1-0c0i2l0
brw-rw---- 1 root disk  8, 17 2008-04-10 15:49 /dev/scsi/sdh1-f7ceb000c0i2l0p1
brw-rw---- 1 root disk  8, 18 2008-04-10 15:49 /dev/scsi/sdh1-f7ceb000c0i2l0p2
crw------- 1 root root 21,  0 2008-04-10 15:49 /dev/scsi/sgh0-0c0i0l0
crw------- 1 root root 21,  1 2008-04-10 15:49 /dev/scsi/sgh1-f7ceb000c0i2l0

I'm afraid, I don't understand too well how these entries are created by
udev. And why there is 

Because this is an interaction of udev and GRUB, I'm not completely sure
I should file this against GRUB. I choose to, because I think that
grub-probe could just as well return /dev/sdb1 and be done...
lrwxrwxrwx 1 root root 34 2008-04-10 15:49 /dev/sdb1 -> scsi/host1/bus0/target2/lun0/part1
brw-rw---- 1 root disk 8, 17 2008-04-10 15:49 /dev/scsi/host1/bus0/target2/lun0/part1

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/mapper/scsi_vg-root / ext2 rw,errors=remount-ro 0 0
/dev/mapper/scsi_vg-root /dev/.static/dev ext2 rw,errors=remount-ro 0 0
/dev/sdb1 /boot ext2 rw 0 0
/dev/mapper/scsi_vg-var /var ext2 rw 0 0
/dev/mapper/scsi_vg-home /home ext2 rw 0 0
/dev/mapper/scsi_vg-news /news ext2 rw 0 0
/dev/mapper/scsi_vg-squid /squid ext2 rw 0 0
/dev/mapper/scsi_vg-sw /sw ext2 rw 0 0
/dev/mapper/scsi_vg-mysql /var/lib/mysql ext3 rw,data=ordered 0 0
/dev/mapper/scsi_vg-bacula /var/lib/bacula ext3 rw,data=ordered 0 0
/dev/mapper/scsi_vg-albums /var/www/albums ext2 rw 0 0
/dev/mapper/scsi_vg-cache /var/cache ext2 rw 0 0
/dev/mapper/ide_vg-sw--archive /sw/archive ext2 rw 0 0
/dev/mapper/ide_vg-music /music ext2 rw 0 0
/dev/mapper/ide_vg-video /video ext2 rw 0 0
/dev/mapper/ide_vg-diskless /var/lib/diskless ext2 rw 0 0
/dev/mapper/ide_vg-rsnapshots /rsnapshots ext2 rw 0 0
/dev/mapper/ide_vg-buexe /rsnapshots/buexe ext2 rw 0 0
/dev/mapper/ide_vg-janus /rsnapshots/janus ext2 rw 0 0
/dev/mapper/ide_vg-octogon /rsnapshots/octogon ext2 rw 0 0
/dev/mapper/ide_vg-zul--verreck /rsnapshots/zul-verreck ext2 rw 0 0
/dev/mapper/ide_vg-var--log--mysql /var/log/mysql ext2 rw 0 0
/dev/mapper/ide_vg-vmware /vmware ext2 rw 0 0
/dev/mapper/ide_vg-grml--live /grml ext2 rw 0 0
/dev/mapper/scsi_vg-sw /home/ftp/debian ext2 rw 0 0
*********************** END /proc/mounts

*********************** BEGIN /proc/mounts
rootfs / rootfs rw 0 0
none /sys sysfs rw,nosuid,nodev,noexec 0 0
none /proc proc rw,nosuid,nodev,noexec 0 0
udev /dev tmpfs rw 0 0
/dev/mapper/scsi_vg-root / ext2 rw,errors=remount-ro 0 0
/dev/mapper/scsi_vg-root /dev/.static/dev ext2 rw,errors=remount-ro 0 0
tmpfs /lib/init/rw tmpfs rw,nosuid 0 0
usbfs /proc/bus/usb usbfs rw,nosuid,nodev,noexec 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,nosuid,noexec 0 0
tmpfs /tmp tmpfs rw 0 0
/dev/sdb1 /boot ext2 rw 0 0
/dev/mapper/scsi_vg-var /var ext2 rw 0 0
/dev/mapper/scsi_vg-home /home ext2 rw 0 0
/dev/mapper/scsi_vg-news /news ext2 rw 0 0
/dev/mapper/scsi_vg-squid /squid ext2 rw 0 0
/dev/mapper/scsi_vg-sw /sw ext2 rw 0 0
/dev/mapper/scsi_vg-mysql /var/lib/mysql ext3 rw,data=ordered 0 0
/dev/mapper/scsi_vg-bacula /var/lib/bacula ext3 rw,data=ordered 0 0
/dev/mapper/scsi_vg-albums /var/www/albums ext2 rw 0 0
/dev/mapper/scsi_vg-cache /var/cache ext2 rw 0 0
/dev/mapper/ide_vg-sw--archive /sw/archive ext2 rw 0 0
/dev/mapper/ide_vg-music /music ext2 rw 0 0
/dev/mapper/ide_vg-video /video ext2 rw 0 0
/dev/mapper/ide_vg-diskless /var/lib/diskless ext2 rw 0 0
/dev/mapper/ide_vg-rsnapshots /rsnapshots ext2 rw 0 0
/dev/mapper/ide_vg-buexe /rsnapshots/buexe ext2 rw 0 0
/dev/mapper/ide_vg-janus /rsnapshots/janus ext2 rw 0 0
/dev/mapper/ide_vg-octogon /rsnapshots/octogon ext2 rw 0 0
/dev/mapper/ide_vg-zul--verreck /rsnapshots/zul-verreck ext2 rw 0 0
/dev/mapper/ide_vg-var--log--mysql /var/log/mysql ext2 rw 0 0
/dev/mapper/ide_vg-vmware /vmware ext2 rw 0 0
/dev/mapper/ide_vg-grml--live /grml ext2 rw 0 0
/dev/mapper/scsi_vg-sw /home/ftp/debian ext2 rw 0 0
nfsd /proc/fs/nfsd nfsd rw 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,nosuid,nodev,noexec 0 0
rpc_pipefs /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
*********************** END /proc/mounts

*********************** BEGIN /proc/mounts

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (100, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages grub depends on:
ii  grub-common              1.96+20080413-1 GRand Unified Bootloader, version 
ii  libc6                    2.7-10          GNU C Library: Shared libraries
ii  libncurses5              5.6+20080308-1  Shared libraries for terminal hand

grub recommends no packages.

-- no debconf information





More information about the Pkg-grub-devel mailing list