Bug#620390: grub-pc: grub-install fails on devices with exactly one partition that ends at the end of the disk

Daniel Kahn Gillmor dkg at fifthhorseman.net
Sat Apr 2 01:12:59 UTC 2011


Package: grub-pc
Version: 1.98+20100804-14
Severity: important

I have the following small disks with a single partition, linked in RAID1.

0 root at molly:~# fdisk -lu /dev/sde

Disk /dev/sde: 128 MB, 128188416 bytes
150 heads, 6 sectors/track, 278 cylinders, total 250368 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0004fe14

   Device Boot      Start         End      Blocks   Id  System
/dev/sde1   *        8192      250367      121088   fd  Linux raid autodetect
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(0, 130, 3) logical=(9, 15, 3)
Partition 1 has different physical/logical endings:
     phys=(15, 149, 6) logical=(278, 27, 6)
0 root at molly:~# fdisk -lu /dev/sdf

Disk /dev/sdf: 128 MB, 128188416 bytes
150 heads, 6 sectors/track, 278 cylinders, total 250368 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00048f2c

   Device Boot      Start         End      Blocks   Id  System
/dev/sdf1   *        8192      250367      121088   fd  Linux raid autodetect
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(0, 130, 3) logical=(9, 15, 3)
Partition 1 has different physical/logical endings:
     phys=(15, 149, 6) logical=(278, 27, 6)
0 root at molly:~# 

grub-install fails in the following way:

0 root at molly:~# grub-install /dev/sde
error: found two disks with the number 0.
error: superfluous RAID member (2 found).
error: found two disks with the number 0.
error: superfluous RAID member (2 found).
/usr/sbin/grub-probe: error: unknown filesystem.
Auto-detection of a filesystem of /dev/md0 failed.
Please report this together with the output of "/usr/sbin/grub-probe --device-map=/boot/grub/device.map --target=fs -v /boot/grub" to <bug-grub at gnu.org>
1 root at molly:~# /usr/sbin/grub-probe --device-map=/boot/grub/device.map --target=fs -v /boot/grub
/usr/sbin/grub-probe: info: the size of hd0 is 3907029168.
/usr/sbin/grub-probe: info: the size of hd0 is 3907029168.
/usr/sbin/grub-probe: info: the size of hd1 is 3907029168.
/usr/sbin/grub-probe: info: the size of hd1 is 3907029168.
/usr/sbin/grub-probe: info: the size of hd2 is 3907029168.
/usr/sbin/grub-probe: info: the size of hd2 is 3907029168.
/usr/sbin/grub-probe: info: the size of hd3 is 3907029168.
/usr/sbin/grub-probe: info: the size of hd3 is 3907029168.
/usr/sbin/grub-probe: info: the size of hd4 is 250368.
/usr/sbin/grub-probe: info: the size of hd4 is 250368.
/usr/sbin/grub-probe: info: the size of hd4 is 250368.
error: found two disks with the number 0.
/usr/sbin/grub-probe: info: the size of hd5 is 250368.
/usr/sbin/grub-probe: info: the size of hd5 is 250368.
/usr/sbin/grub-probe: info: the size of hd5 is 250368.
error: superfluous RAID member (2 found).
/usr/sbin/grub-probe: info: the size of hd0 is 3907029168.
/usr/sbin/grub-probe: info: the size of hd0 is 3907029168.
/usr/sbin/grub-probe: info: the size of hd1 is 3907029168.
/usr/sbin/grub-probe: info: the size of hd1 is 3907029168.
/usr/sbin/grub-probe: info: the size of hd2 is 3907029168.
/usr/sbin/grub-probe: info: the size of hd2 is 3907029168.
/usr/sbin/grub-probe: info: the size of hd3 is 3907029168.
/usr/sbin/grub-probe: info: the size of hd3 is 3907029168.
/usr/sbin/grub-probe: info: the size of hd4 is 250368.
/usr/sbin/grub-probe: info: the size of hd4 is 250368.
/usr/sbin/grub-probe: info: the size of hd4 is 250368.
/usr/sbin/grub-probe: info: the size of hd5 is 250368.
/usr/sbin/grub-probe: info: the size of hd5 is 250368.
/usr/sbin/grub-probe: info: the size of hd5 is 250368.
/usr/sbin/grub-probe: info: changing current directory to /dev.
/usr/sbin/grub-probe: info: changing current directory to dri.
/usr/sbin/grub-probe: info: changing current directory to snd.
/usr/sbin/grub-probe: info: changing current directory to net.
/usr/sbin/grub-probe: info: changing current directory to shm.
/usr/sbin/grub-probe: info: changing current directory to network.
/usr/sbin/grub-probe: info: changing current directory to vg_molly0.
/usr/sbin/grub-probe: info: changing current directory to mapper.
/usr/sbin/grub-probe: info: opening md/0.
/usr/sbin/grub-probe: error: unknown filesystem.
1 root at molly:~# 



on #grub, phcoder suggests that this is fixed upstream in r3082.

	--dkg

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/mapper/vg_molly0-root / ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/md0 /boot ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/mapper/vg_molly0-var /var ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/mapper/vg_molly0-home /home ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/mapper/vg_molly0-tmp /tmp ext3 rw,relatime,errors=continue,data=ordered 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/disk/by-id/ata-WDC_WD2002FAEX-007BA0_WD-WMAY01522853
(hd1)	/dev/disk/by-id/ata-WDC_WD2002FAEX-007BA0_WD-WMAY01212120
(hd2)	/dev/disk/by-id/ata-WDC_WD2002FAEX-007BA0_WD-WMAY01177255
(hd3)	/dev/disk/by-id/ata-WDC_WD2002FAEX-007BA0_WD-WMAY01212722
(hd4)	/dev/disk/by-id/ata-AFAYA_MDM_128M_201006021351B0001442
(hd5)	/dev/disk/by-id/ata-AFAYA_MDM_128M_201006231344B0000029
*********************** END /boot/grub/device.map

-- System Information:
Debian Release: 6.0.1
  APT prefers stable
  APT policy: (500, 'stable'), (20, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]   1.5.36.1         Debian configuration management sy
ii  grub-common             1.98+20100804-14 GRand Unified Bootloader, version 
ii  libc6                   2.11.2-10        Embedded GNU C Library: Shared lib
ii  libdevmapper1.02.1      2:1.02.48-5      The Linux Kernel Device Mapper use
ii  ucf                     3.0025+nmu1      Update Configuration File: preserv

grub-pc recommends no packages.

Versions of packages grub-pc suggests:
pn  desktop-base                  <none>     (no description available)

-- debconf information:
  grub-pc/kopt_extracted: false
  grub2/kfreebsd_cmdline:
  grub2/device_map_regenerated:
  grub2/kfreebsd_cmdline_default: quiet
  grub-pc/partition_description:
* grub-pc/install_devices_failed: true
* grub-pc/install_devices: /dev/disk/by-id/ata-AFAYA_MDM_128M_201006021351B0001442, /dev/disk/by-id/ata-AFAYA_MDM_128M_201006231344B0000029
  grub-pc/postrm_purge_boot_grub: false
* grub2/linux_cmdline_default:
* grub-pc/install_devices_disks_changed: /dev/disk/by-id/ata-AFAYA_MDM_128M_201006021351B0001442, /dev/disk/by-id/ata-AFAYA_MDM_128M_201006231344B0000029
  grub-pc/chainload_from_menu.lst: true
  grub-pc/install_devices_failed_upgrade: true
  grub-pc/disk_description:
* grub2/linux_cmdline: verbose console=ttyS0,115200n8 root=/dev/mapper/vg_molly0-root
  grub-pc/mixed_legacy_and_grub2: true
  grub-pc/install_devices_empty: true





More information about the Pkg-grub-devel mailing list