Bug#521897: grub-pc: "Found two disks with the number 0?!?"

Sam Morris sam at robots.org.uk
Mon Mar 30 19:28:41 UTC 2009


Package: grub-pc
Version: 1.96+20090317-1
Severity: important

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The dreaded error message has returned!

I get "Found two disks with the number 0?!?" and then am dropped to rescue mode. If I 'insmod normal' followed by 'normal' then the computer boots normally.

I'll attach the output ot 'parted -l'.

# mdadm --detail /dev/md0
/dev/md0:
        Version : 0.90
  Creation Time : Wed Feb  8 00:30:27 2006
     Raid Level : raid1
     Array Size : 292519488 (278.97 GiB 299.54 GB)
  Used Dev Size : 292519488 (278.97 GiB 299.54 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Mon Mar 30 20:27:40 2009
          State : active
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : 178ba035:a9fe4bb5:6bc5459e:ce527a6d
         Events : 0.14988353

    Number   Major   Minor   RaidDevice State
       0       3       66        0      active sync   /dev/hdb2
       1      34        2        1      active sync   /dev/hdg2



- -- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/md0 / ext3 rw,relatime,errors=remount-ro,user_xattr,acl,data=ordered 0 0
/dev/hdd /media/dvdrom udf ro,nosuid,nodev,noexec,utf8 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/grub-mkconfig using templates
# from  and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
set default=0
set timeout=5
insmod raid mdraid
set root=(md0)
search --fs-uuid --set 502a2727-6b08-4eb2-82f9-99bc5a7c6e26
if loadfont /usr/share/grub/ascii.pf2 ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod raid mdraid
set root=(md0)
search --fs-uuid --set 502a2727-6b08-4eb2-82f9-99bc5a7c6e26
insmod png
if background_image /boot/grub/moreblue-orbit-grub.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 ###
menuentry "Debian GNU/Linux, linux 2.6.26-1-686" {
	insmod raid mdraid
	set root=(md0)
	search --fs-uuid --set 502a2727-6b08-4eb2-82f9-99bc5a7c6e26
	linux	/boot/vmlinuz-2.6.26-1-686 root=/dev/md0 ro noresume vga=0x305 quiet 
	initrd	/boot/initrd.img-2.6.26-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.26-1-686 (recovery mode)" {
	insmod raid mdraid
	set root=(md0)
	search --fs-uuid --set 502a2727-6b08-4eb2-82f9-99bc5a7c6e26
	linux	/boot/vmlinuz-2.6.26-1-686 root=/dev/md0 ro single noresume vga=0x305 quiet
	initrd	/boot/initrd.img-2.6.26-1-686
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	linux	/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	linux	/boot/memtest86+.bin console=ttyS0,115200n8
}
### 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: squeeze/sid
  APT prefers testing
  APT policy: (530, 'testing'), (520, 'unstable'), (510, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-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.26          Debian configuration management sy
ii  grub-common              1.96+20090317-1 GRand Unified Bootloader, version 
ii  libc6                    2.9-4           GNU C Library: Shared libraries

grub-pc recommends no packages.

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

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAknRHWQACgkQshl/216gEHhxKACg24yXa7AUwLnLUBzPTuYmOEhB
XQMAmwe2xwBXcopKQreSCWuer/PG9qVZ
=7st3
-----END PGP SIGNATURE-----
-------------- next part --------------
$ sudo parted -l
Model: QUANTUM FIREBALLP AS60.0 (ide)
Disk /dev/hda: 60.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type     File system  Flags
 1      32.3kB  4104MB  4104MB  primary  ntfs         boot 
 2      4104MB  60.0GB  55.9GB  primary  ntfs              


Model: Maxtor 6L300R0 (ide)
Disk /dev/hdb: 300GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End    Size   Type     File system  Flags
 1      32.3kB  543MB  543MB  primary                    
 2      543MB   300GB  300GB  primary  ext3         raid 


Warning: Unable to open /dev/hdd read-write (Read-only file system).  /dev/hdd has been opened read-only.
Error: /dev/hdd: unrecognised disk label                                  

Model: Maxtor 6L300R0 (ide)
Disk /dev/hdg: 300GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End    Size   Type     File system  Flags
 1      32.3kB  543MB  543MB  primary                    
 2      543MB   300GB  300GB  primary  ext3         raid 


Model: Linux device-mapper (crypt) (dm)
Disk /dev/mapper/swap2: 543MB
Sector size (logical/physical): 512B/512B
Partition Table: loop

Number  Start  End    Size   File system  Flags
 1      0.00B  543MB  543MB  linux-swap        


Model: Linux device-mapper (crypt) (dm)
Disk /dev/mapper/swap1: 543MB
Sector size (logical/physical): 512B/512B
Partition Table: loop

Number  Start  End    Size   File system  Flags
 1      0.00B  543MB  543MB  linux-swap        


Model: Unknown (unknown)
Disk /dev/md0: 300GB
Sector size (logical/physical): 512B/512B
Partition Table: loop

Number  Start  End    Size   File system  Flags
 1      0.00B  300GB  300GB  ext3              




More information about the Pkg-grub-devel mailing list