Bug#554500: grub-pc doesn't work with metadata 1.0 md device

Michel Meyers steltek at tcnnet.com
Wed Nov 4 23:27:13 UTC 2009


Package: grub-pc
Version: 1.97-1
Severity: normal

Not sure if this is documented anywhere (just spend a few hours on this and Google didn't come up with anything) but grub-pc doesn't work with md devices when they are using metadata 1.0. Even after doing insmod raid and insmod mdraid, the devicesi simply don't show up. grub-install keeps comlaining that 'no mapping exists for' the mdX device.

I was just giving up on grub and trying to switch to LILO, which immediately complained about the metadata version, so I tried recreating the device with 0.90 metadata in the superblock and sure enough, that made grub find it correctly.

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/mapper/vgraid-lvroot / ext3 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/md3 /boot ext3 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/mapper/vgraid-lvraid /storage ext3 rw,noatime,errors=continue,data=ordered 0 0
/dev/mapper/vgraid-lvroot /var/spool/hylafax/etc ext3 rw,relatime,errors=remount-ro,data=ordered 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/hda
(hd1)	/dev/hdb
(hd2)	/dev/sda
(hd3)	/dev/sdb
(hd4)	/dev/sdc
(hd5)	/dev/sdd
(hd6)	/dev/sde
(hd7)	/dev/sdf
*********************** 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 /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
set default=0
insmod lvm
insmod ext2
set root=(vgraid-lvroot)
search --no-floppy --fs-uuid --set fb85ee57-d8a7-489c-83e6-2a9d146616b9
if loadfont /usr/share/grub/unicode.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
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod raid
insmod mdraid
insmod ext2
set root=(md3)
search --no-floppy --fs-uuid --set b87bc61c-9b61-4b99-aa49-b12c79836ae7
insmod png
if background_image /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_linux ###
menuentry "Debian GNU/Linux, with Linux 2.6.30-2-686" {
	insmod raid
	insmod mdraid
	insmod ext2
	set root=(md3)
	search --no-floppy --fs-uuid --set b87bc61c-9b61-4b99-aa49-b12c79836ae7
	linux	/vmlinuz-2.6.30-2-686 root=/dev/mapper/vgraid-lvroot ro  
	initrd	/initrd.img-2.6.30-2-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.30-2-686 (recovery mode)" {
	insmod raid
	insmod mdraid
	insmod ext2
	set root=(md3)
	search --no-floppy --fs-uuid --set b87bc61c-9b61-4b99-aa49-b12c79836ae7
	linux	/vmlinuz-2.6.30-2-686 root=/dev/mapper/vgraid-lvroot ro single 
	initrd	/initrd.img-2.6.30-2-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.30-1-686" {
	insmod raid
	insmod mdraid
	insmod ext2
	set root=(md3)
	search --no-floppy --fs-uuid --set b87bc61c-9b61-4b99-aa49-b12c79836ae7
	linux	/vmlinuz-2.6.30-1-686 root=/dev/mapper/vgraid-lvroot ro  
	initrd	/initrd.img-2.6.30-1-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.30-1-686 (recovery mode)" {
	insmod raid
	insmod mdraid
	insmod ext2
	set root=(md3)
	search --no-floppy --fs-uuid --set b87bc61c-9b61-4b99-aa49-b12c79836ae7
	linux	/vmlinuz-2.6.30-1-686 root=/dev/mapper/vgraid-lvroot ro single 
	initrd	/initrd.img-2.6.30-1-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.26-2-686" {
	insmod raid
	insmod mdraid
	insmod ext2
	set root=(md3)
	search --no-floppy --fs-uuid --set b87bc61c-9b61-4b99-aa49-b12c79836ae7
	linux	/vmlinuz-2.6.26-2-686 root=/dev/mapper/vgraid-lvroot ro  
	initrd	/initrd.img-2.6.26-2-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.26-2-686 (recovery mode)" {
	insmod raid
	insmod mdraid
	insmod ext2
	set root=(md3)
	search --no-floppy --fs-uuid --set b87bc61c-9b61-4b99-aa49-b12c79836ae7
	linux	/vmlinuz-2.6.26-2-686 root=/dev/mapper/vgraid-lvroot ro single 
	initrd	/initrd.img-2.6.26-2-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.26-1-686" {
	insmod raid
	insmod mdraid
	insmod ext2
	set root=(md3)
	search --no-floppy --fs-uuid --set b87bc61c-9b61-4b99-aa49-b12c79836ae7
	linux	/vmlinuz-2.6.26-1-686 root=/dev/mapper/vgraid-lvroot ro  
	initrd	/initrd.img-2.6.26-1-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.26-1-686 (recovery mode)" {
	insmod raid
	insmod mdraid
	insmod ext2
	set root=(md3)
	search --no-floppy --fs-uuid --set b87bc61c-9b61-4b99-aa49-b12c79836ae7
	linux	/vmlinuz-2.6.26-1-686 root=/dev/mapper/vgraid-lvroot ro single 
	initrd	/initrd.img-2.6.26-1-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.25-2-686" {
	insmod raid
	insmod mdraid
	insmod ext2
	set root=(md3)
	search --no-floppy --fs-uuid --set b87bc61c-9b61-4b99-aa49-b12c79836ae7
	linux	/vmlinuz-2.6.25-2-686 root=/dev/mapper/vgraid-lvroot ro  
	initrd	/initrd.img-2.6.25-2-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.25-2-686 (recovery mode)" {
	insmod raid
	insmod mdraid
	insmod ext2
	set root=(md3)
	search --no-floppy --fs-uuid --set b87bc61c-9b61-4b99-aa49-b12c79836ae7
	linux	/vmlinuz-2.6.25-2-686 root=/dev/mapper/vgraid-lvroot ro single 
	initrd	/initrd.img-2.6.25-2-686
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Debian GNU/Linux, with Linux 2.6.30-2-686 (on /dev/mapper/vgroot_old-lvroot)" {
	insmod lvm
	insmod ext2
	set root=(vgroot_old-lvroot)
	search --no-floppy --fs-uuid --set fb21bdab-4244-4ab9-8186-51e0b62155ab
	linux /boot/vmlinuz-2.6.30-2-686 root=/dev/sdf1 ro
	initrd /boot/initrd.img-2.6.30-2-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.30-2-686 (recovery mode) (on /dev/mapper/vgroot_old-lvroot)" {
	insmod lvm
	insmod ext2
	set root=(vgroot_old-lvroot)
	search --no-floppy --fs-uuid --set fb21bdab-4244-4ab9-8186-51e0b62155ab
	linux /boot/vmlinuz-2.6.30-2-686 root=/dev/sdf1 ro single
	initrd /boot/initrd.img-2.6.30-2-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.30-1-686 (on /dev/mapper/vgroot_old-lvroot)" {
	insmod lvm
	insmod ext2
	set root=(vgroot_old-lvroot)
	search --no-floppy --fs-uuid --set fb21bdab-4244-4ab9-8186-51e0b62155ab
	linux /boot/vmlinuz-2.6.30-1-686 root=/dev/sdf1 ro
	initrd /boot/initrd.img-2.6.30-1-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.30-1-686 (recovery mode) (on /dev/mapper/vgroot_old-lvroot)" {
	insmod lvm
	insmod ext2
	set root=(vgroot_old-lvroot)
	search --no-floppy --fs-uuid --set fb21bdab-4244-4ab9-8186-51e0b62155ab
	linux /boot/vmlinuz-2.6.30-1-686 root=/dev/sdf1 ro single
	initrd /boot/initrd.img-2.6.30-1-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.26-2-686 (on /dev/mapper/vgroot_old-lvroot)" {
	insmod lvm
	insmod ext2
	set root=(vgroot_old-lvroot)
	search --no-floppy --fs-uuid --set fb21bdab-4244-4ab9-8186-51e0b62155ab
	linux /boot/vmlinuz-2.6.26-2-686 root=/dev/sdf1 ro
	initrd /boot/initrd.img-2.6.26-2-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.26-2-686 (recovery mode) (on /dev/mapper/vgroot_old-lvroot)" {
	insmod lvm
	insmod ext2
	set root=(vgroot_old-lvroot)
	search --no-floppy --fs-uuid --set fb21bdab-4244-4ab9-8186-51e0b62155ab
	linux /boot/vmlinuz-2.6.26-2-686 root=/dev/sdf1 ro single
	initrd /boot/initrd.img-2.6.26-2-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.26-1-686 (on /dev/mapper/vgroot_old-lvroot)" {
	insmod lvm
	insmod ext2
	set root=(vgroot_old-lvroot)
	search --no-floppy --fs-uuid --set fb21bdab-4244-4ab9-8186-51e0b62155ab
	linux /boot/vmlinuz-2.6.26-1-686 root=/dev/sdf1 ro
	initrd /boot/initrd.img-2.6.26-1-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.26-1-686 (recovery mode) (on /dev/mapper/vgroot_old-lvroot)" {
	insmod lvm
	insmod ext2
	set root=(vgroot_old-lvroot)
	search --no-floppy --fs-uuid --set fb21bdab-4244-4ab9-8186-51e0b62155ab
	linux /boot/vmlinuz-2.6.26-1-686 root=/dev/sdf1 ro single
	initrd /boot/initrd.img-2.6.26-1-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.25-2-686 (on /dev/mapper/vgroot_old-lvroot)" {
	insmod lvm
	insmod ext2
	set root=(vgroot_old-lvroot)
	search --no-floppy --fs-uuid --set fb21bdab-4244-4ab9-8186-51e0b62155ab
	linux /boot/vmlinuz-2.6.25-2-686 root=/dev/sdf1 ro
	initrd /boot/initrd.img-2.6.25-2-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.25-2-686 (recovery mode) (on /dev/mapper/vgroot_old-lvroot)" {
	insmod lvm
	insmod ext2
	set root=(vgroot_old-lvroot)
	search --no-floppy --fs-uuid --set fb21bdab-4244-4ab9-8186-51e0b62155ab
	linux /boot/vmlinuz-2.6.25-2-686 root=/dev/sdf1 ro single
	initrd /boot/initrd.img-2.6.25-2-686
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
*********************** END /boot/grub/grub.cfg

-- System Information:
Debian Release: squeeze/sid
  APT prefers stable
  APT policy: (700, 'stable'), (650, 'testing'), (600, 'unstable'), (500, 'oldstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-2-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.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.28     Debian configuration management sy
ii  grub-common                   1.97-1     GRand Unified Bootloader, version 
ii  libc6                         2.9-25     GNU C Library: Shared libraries
ii  ucf                           3.0024     Update Configuration File: preserv

grub-pc recommends no packages.

Versions of packages grub-pc suggests:
ii  desktop-base                  5.0.5      common files for the Debian Deskto
ii  genisoimage                   9:1.1.9-1  Creates ISO-9660 CD-ROM filesystem

-- debconf information:
  grub2/kfreebsd_cmdline:
* grub2/linux_cmdline:
* grub-pc/chainload_from_menu.lst: true
  grub-pc/postrm_purge_boot_grub: false
  grub2/kfreebsd_cmdline_default: quiet
* grub2/linux_cmdline_default:
* grub-pc/install_devices: /dev/hda
* grub-pc/linux_cmdline:
  grub-pc/kopt_extracted: true





More information about the Pkg-grub-devel mailing list