Bug#492656: grub-pc: Cannot boot from RAID volume: error: Found two disks with the number 0?!?

Sam Morris sam at robots.org.uk
Sun Jul 27 22:30:04 UTC 2008


Package: grub-pc
Version: 1.96+20080704-2
Severity: important
Tags: patch

GRUB fails to boot with the message:

error: Found two disks with the number 0?!?

This was raised on grub-devel but no response from the other developers.
http://www.mail-archive.com/grub-devel@gnu.org/msg06852.html

Index: disk/raid.c
===================================================================
--- disk/raid.c (revision 1691)
+++ disk/raid.c (working copy)
@@ -440,18 +440,6 @@
 
          return 0;
        }
-  
-      if (array->device[sb.this_disk.number] != NULL)
-       {
-         /* We found multiple devices with the same number. Again,
-            this shouldn't happen.*/
-
-         grub_error (GRUB_ERR_BAD_NUMBER,
-                     "Found two disks with the number %d?!?",
-                     sb.this_disk.number);
-
-         return 0;
-       }
     }
 
   /* Add an array to the list if we didn't find any.  */


-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/md0 / ext3 rw,relatime,errors=remount-ro,user_xattr,acl,data=ordered 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/hda
(hd1)	/dev/hdb
(hd2)	/dev/hdg
*********************** END /boot/grub/device.map

*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/update-grub using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
set default=0
set timeout=5
insmod raid
set root=(md0)
search --fs-uuid --set 502a2727-6b08-4eb2-82f9-99bc5a7c6e26
if font /usr/share/grub/ascii.pff ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  terminal gfxterm
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod raid
set root=(md0)
search --fs-uuid --set 502a2727-6b08-4eb2-82f9-99bc5a7c6e26
insmod png
if background_image /boot/grub/debian-blueish-wallpaper-640x480.png ; then
  set color_normal=black/black
  set color_highlight=magenta/black
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_hurd ###
### END /etc/grub.d/10_hurd ###

### BEGIN /etc/grub.d/10_linux ###
insmod raid
set root=(md0)
search --fs-uuid --set 502a2727-6b08-4eb2-82f9-99bc5a7c6e26
menuentry "Debian GNU/Linux, linux 2.6.25-2-686" {
	linux	/boot/vmlinuz-2.6.25-2-686 root=/dev/md0 ro noresume vga=0x305 quiet 
	initrd	/boot/initrd.img-2.6.25-2-686
}
menuentry "Debian GNU/Linux, linux 2.6.25-2-686 (single-user mode)" {
	linux	/boot/vmlinuz-2.6.25-2-686 root=/dev/md0 ro single noresume vga=0x305 quiet
	initrd	/boot/initrd.img-2.6.25-2-686
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	linux	/memtest86+.bin
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/hda1)" {
	set root=(hd0,1)
	chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file is an example on how to add custom entries
### END /etc/grub.d/40_custom ###
*********************** END /boot/grub/grub.cfg

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (530, 'testing'), (520, 'unstable'), (510, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.25-2-686 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]    1.5.22          Debian configuration management sy
ii  grub-common              1.96+20080724-2 GRand Unified Bootloader, version 
ii  libc6                    2.7-10          GNU C Library: Shared libraries
ii  liblzo2-2                2.03-1          data compression library
ii  libncurses5              5.6+20080713-1  shared libraries for terminal hand

grub-pc recommends no packages.

Versions of packages grub-pc suggests:
ii  desktop-base                  4.0.7      common files for the Debian Deskto
ii  os-prober                     1.26       utility to detect other OSes on a 

-- debconf information:
  grub-pc/linux_cmdline:
* grub-pc/chainload_from_menu.lst: true





More information about the Pkg-grub-devel mailing list