Bug#475718: update-grub fails; grub-probe cannot find device -- disk device is in device.map
Chris Knadle
Chris.Knadle at coredump.us
Sat Apr 12 13:47:05 UTC 2008
Package: grub
Version: 0.97-36
Severity: important
Greetings.
It seems that since upgrade to grub 0.97-36 on April 9 that I
cannot install a new kernel becuase upgrade-grub fails.
grub-probe is for some reason is seemingly unable to detect any of
the individual partitions on the first hard disk, but *is* able to
detect partitions on other hard disks. Strange.
When using the prior version, grub 0.97-32, update-grub succeeds
but grub-probe is still unable to detect the device.
First, the kernel installation that failed:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
anon7# dpkg -i linux-image-2.6.24.3-686-xfsfix-crk2_2.6.24.4+686+xfsfix+crk2_i386.deb
Selecting previously deselected package linux-image-2.6.24.3-686-xfsfix-crk2.
(Reading database ... 348038 files and directories currently installed.)
Unpacking linux-image-2.6.24.3-686-xfsfix-crk2 (from
linux-image-2.6.24.3-686-xfsfix-crk2_2.6.24.4+686+xfsfix+crk2_i386.deb) ...
Done.
Setting up linux-image-2.6.24.3-686-xfsfix-crk2 (2.6.24.4+686+xfsfix+crk2) ...
Running depmod.
Running postinst hook script update-grub.
Searching for GRUB installation directory ... found: /boot/grub
grub-probe: error: Cannot find a GRUB drive for /dev/hde2. Check your device.map.
User postinst hook script [update-grub] exited with value 1
dpkg: error processing linux-image-2.6.24.3-686-xfsfix-crk2 (--install):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
linux-image-2.6.24.3-686-xfsfix-crk2
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
/boot/grub/device.map contains what I believe are the proper entries:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
anon7# cat /boot/grub/device.map
(fd0) /dev/fd0
(hd0) /dev/hde
(hd1) /dev/hdg
(hd2) /dev/hdh
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
After downgrading to grub 0.97-32 update-grub succeeds:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
anon7# dpkg -i grub_0.97-32_i386.deb
dpkg - warning: downgrading grub from 0.97-36 to 0.97-32.
(Reading database ... 348828 files and directories currently installed.)
Preparing to replace grub 0.97-36 (using grub_0.97-32_i386.deb) ...
Unpacking replacement grub ...
Setting up grub (0.97-32) ...
anon7# update-grub
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... found: (hd0,1)/grub/splash.xpm.gz
Found kernel: /vmlinuz-2.6.24.3-686-xfsfix-crk2
Found kernel: /vmlinuz-2.6.24.3-686-initrd-crk1
Found kernel: /vmlinuz-2.6.24.2-686-crk2
Found kernel: /vmlinuz-2.6.24.2-deb-686-crk1
Found kernel: /vmlinuz-2.6.24-1-686
Found kernel: /memtest86+.bin
Updating /boot/grub/menu.lst ... done
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
However, with both grub 0.97-36 and grub 0.97-32 running
grub-probe manually to detect /dev/hde2 seems to fail
(identical output from both):
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
anon7# grub-probe -d /dev/hde2 -v
grub-probe: info: the size of hd0 is 312581808
grub-probe: info: the size of hd0 is 312581808
grub-probe: info: the size of hd1 is 976773168
grub-probe: info: the size of hd1 is 976773168
grub-probe: info: the size of hd2 is 976773168
grub-probe: info: the size of hd2 is 976773168
grub-probe: info: the size of hd0 is 312581808
grub-probe: info: opening the device `/dev/hde'
grub-probe: info: the size of hd0 is 312581808
grub-probe: info: opening the device `/dev/hde'
grub-probe: info: the size of hd0 is 312581808
grub-probe: info: the size of hd0 is 312581808
grub-probe: info: opening the device `/dev/hde'
grub-probe: info: the size of hd0 is 312581808
grub-probe: info: opening the device `/dev/hde'
grub-probe: info: the size of hd0 is 312581808
grub-probe: info: the size of hd1 is 976773168
grub-probe: info: opening the device `/dev/hdg'
grub-probe: info: the size of hd1 is 976773168
grub-probe: info: opening the device `/dev/hdg'
grub-probe: info: the size of hd1 is 976773168
grub-probe: info: opening the device `/dev/hdg1'
grub-probe: info: opening the device `/dev/hdg1'
grub-probe: info: the size of hd2 is 976773168
grub-probe: info: opening the device `/dev/hdh'
grub-probe: info: the size of hd2 is 976773168
grub-probe: info: opening the device `/dev/hdh'
grub-probe: info: the size of hd2 is 976773168
grub-probe: info: opening the device `/dev/hdh1'
grub-probe: info: opening the device `/dev/hdh1'
grub-probe: info: /dev/hde2 starts from 80084025
grub-probe: info: opening the device hd0
grub-probe: info: the size of hd0 is 312581808
grub-probe: info: Partition 0 starts from 1
grub-probe: info: Partition 1 starts from 64
grub-probe: info: Partition 2 starts from 262208
grub-probe: info: Partition 3 starts from 312581792
grub-probe: error: Cannot find a GRUB drive for /dev/hde2. Check your device.map.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The specific devices are attached to a HighPoint 370 controller,
and are:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
anon7# fdisk -l
Disk /dev/hde: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x2f1b2f1a
Device Boot Start End Blocks Id System
/dev/hde1 1 4985 40041981 7 HPFS/NTFS
/dev/hde2 * 4986 4998 104422+ 83 Linux
/dev/hde3 4999 7563 20603362+ 83 Linux
/dev/hde4 7564 19457 95538555 5 Extended
/dev/hde5 7564 7989 3421813+ 82 Linux swap / Solaris
/dev/hde6 7990 19457 92116678+ 83 Linux
Disk /dev/hdg: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xa3e07c9f
Device Boot Start End Blocks Id System
/dev/hdg1 1 60801 488384001 83 Linux
Disk /dev/hdh: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xdc3371d1
Device Boot Start End Blocks Id System
/dev/hdh1 1 60801 488384001 83 Linux
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The above list are using the following filesystems:
/dev/hde1 ntfs
/dev/hde2 ext2
/dev/hde3 xfs
/dev/hde5 swap
/dev/hde6 xfs
/dev/hdg1 xfs
/dev/hdh1 xfs
So just to some up, there are two mysteries:
1) update-grub succeeds in 0.97-32 but fails in 0.97-36, and
2) grub-probe seems unable to detect any of the partitions on
the first hard disk
-- Chris
Chris Knadle
Chris.Knadle at coredump.us
-- Package-specific info:
*********************** BEGIN /proc/mounts
/dev/root / xfs rw,noatime,nodiratime,ikeep,noquota 0 0
/dev/root /dev/.static/dev xfs rw,ikeep,noquota 0 0
/dev/hde2 /boot ext2 rw,nosuid,nodev,noexec,noatime,nodiratime 0 0
/dev/hde6 /home xfs rw,nosuid,nodev,noatime,nodiratime,ikeep,noquota 0 0
*********************** END /proc/mounts
*********************** BEGIN /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / xfs rw,noatime,nodiratime,ikeep,noquota 0 0
tmpfs /lib/init/rw tmpfs rw,nosuid 0 0
proc /proc proc rw,nosuid,nodev,noexec 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec 0 0
usbfs /proc/bus/usb usbfs rw,nosuid,nodev,noexec 0 0
/dev/root /dev/.static/dev xfs rw,ikeep,noquota 0 0
tmpfs /dev tmpfs rw 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,nosuid,noexec 0 0
fusectl /sys/fs/fuse/connections fusectl rw 0 0
/dev/hde2 /boot ext2 rw,nosuid,nodev,noexec,noatime,nodiratime 0 0
/dev/hde6 /home xfs rw,nosuid,nodev,noatime,nodiratime,ikeep,noquota 0 0
*********************** END /proc/mounts
*********************** BEGIN /proc/mounts
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.24.2-686-crk2
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+20080408-1 GRand Unified Bootloader, version
ii libc6 2.7-10 GNU C Library: Shared libraries
ii libncurses5 5.6+20080405-1 Shared libraries for terminal hand
grub recommends no packages.
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20080412/f7843560/attachment.pgp
More information about the Pkg-grub-devel
mailing list