Bug#668920: grub-pc: grub 1.99-21 fails to detect mdraid partitions

Adam R. Skutt askutt at gmail.com
Sat Jun 30 14:27:43 UTC 2012


Package: grub-pc
Version: 1.99-22.1
Followup-For: Bug #668920

Transitioned to grub2 from LILO and saw this problem as well.  After booting rescue mode, fixing up prefix and root, and loading the raid modules, grub still doesn't see my md device at all.  I tried using grub-install to include the RAID modules early, but that did not seem to help either.  Going back to LILO for now.

Thanks,
Adam

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/disk/by-uuid/8aff5614-49c4-4f3b-b35e-4d2b12309731 / ext3 rw,seclabel,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=ordered,usrquota,grpquota 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/disk/by-id/ata-ST3160815AS_6RA9KQRJ
(hd1)	/dev/disk/by-id/ata-ST3160815AS_6RA9JHRC
*********************** END /boot/grub/device.map

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

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod raid
insmod mdraid09
insmod mdraid1x
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(mduuid/95d2cd1a38d1ba55c216e01b73103c90)'
search --no-floppy --fs-uuid --set=root 8aff5614-49c4-4f3b-b35e-4d2b12309731
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
  insmod raid
  insmod mdraid09
  insmod part_msdos
  insmod part_msdos
  insmod ext2
  set root='(mduuid/95d2cd1a38d1ba55c216e01b73103c90)'
  search --no-floppy --fs-uuid --set=root 8aff5614-49c4-4f3b-b35e-4d2b12309731
  set locale_dir=($root)/boot/grub/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 3.2.0-3-686-pae' --class debian --class gnu-linux --class gnu --class os {
	insmod gzio
	insmod raid
	insmod mdraid09
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(mduuid/95d2cd1a38d1ba55c216e01b73103c90)'
	search --no-floppy --fs-uuid --set=root 8aff5614-49c4-4f3b-b35e-4d2b12309731
	echo	'Loading Linux 3.2.0-3-686-pae ...'
	linux	/boot/vmlinuz-3.2.0-3-686-pae root=UUID=8aff5614-49c4-4f3b-b35e-4d2b12309731 ro security=selinux quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-3.2.0-3-686-pae
}
menuentry 'Debian GNU/Linux, with Linux 3.2.0-3-686-pae (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod gzio
	insmod raid
	insmod mdraid09
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(mduuid/95d2cd1a38d1ba55c216e01b73103c90)'
	search --no-floppy --fs-uuid --set=root 8aff5614-49c4-4f3b-b35e-4d2b12309731
	echo	'Loading Linux 3.2.0-3-686-pae ...'
	linux	/boot/vmlinuz-3.2.0-3-686-pae root=UUID=8aff5614-49c4-4f3b-b35e-4d2b12309731 ro single security=selinux
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-3.2.0-3-686-pae
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Debian GNU/Linux, with Linux 3.2.0-3-686-pae (on /dev/sda1)" --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set=root 8aff5614-49c4-4f3b-b35e-4d2b12309731
	linux /boot/vmlinuz-3.2.0-3-686-pae root=UUID=8aff5614-49c4-4f3b-b35e-4d2b12309731 ro security=selinux quiet
	initrd /boot/initrd.img-3.2.0-3-686-pae
}
menuentry "Debian GNU/Linux, with Linux 3.2.0-3-686-pae (recovery mode) (on /dev/sda1)" --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set=root 8aff5614-49c4-4f3b-b35e-4d2b12309731
	linux /boot/vmlinuz-3.2.0-3-686-pae root=UUID=8aff5614-49c4-4f3b-b35e-4d2b12309731 ro single security=selinux
	initrd /boot/initrd.img-3.2.0-3-686-pae
}
menuentry "Debian GNU/Linux, with Linux 3.2.0-3-686-pae (on /dev/sdb1)" --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos1)'
	search --no-floppy --fs-uuid --set=root 8aff5614-49c4-4f3b-b35e-4d2b12309731
	linux /boot/vmlinuz-3.2.0-3-686-pae root=UUID=8aff5614-49c4-4f3b-b35e-4d2b12309731 ro security=selinux quiet
	initrd /boot/initrd.img-3.2.0-3-686-pae
}
menuentry "Debian GNU/Linux, with Linux 3.2.0-3-686-pae (recovery mode) (on /dev/sdb1)" --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos1)'
	search --no-floppy --fs-uuid --set=root 8aff5614-49c4-4f3b-b35e-4d2b12309731
	linux /boot/vmlinuz-3.2.0-3-686-pae root=UUID=8aff5614-49c4-4f3b-b35e-4d2b12309731 ro single security=selinux
	initrd /boot/initrd.img-3.2.0-3-686-pae
}
### 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 ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
*********************** END /boot/grub/grub.cfg

*********************** BEGIN /proc/mdstat
Personalities : [raid1] 
md0 : active raid1 sda1[0] sdb1[1]
      156288256 blocks [2/2] [UU]
      
unused devices: <none>
*********************** END /proc/mdstat

*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx. 1 root root  9 Jun 30 06:15 ata-HL-DT-ST_CD-RW_DVD-ROM_GCC-4482B -> ../../sr0
lrwxrwxrwx. 1 root root  9 Jun 30 10:15 ata-ST3160815AS_6RA9JHRC -> ../../sdb
lrwxrwxrwx. 1 root root 10 Jun 30 10:15 ata-ST3160815AS_6RA9JHRC-part1 -> ../../sdb1
lrwxrwxrwx. 1 root root  9 Jun 30 10:15 ata-ST3160815AS_6RA9KQRJ -> ../../sda
lrwxrwxrwx. 1 root root 10 Jun 30 10:15 ata-ST3160815AS_6RA9KQRJ-part1 -> ../../sda1
lrwxrwxrwx. 1 root root  9 Jun 30 10:21 md-uuid-95d2cd1a:38d1ba55:c216e01b:73103c90 -> ../../md0
lrwxrwxrwx. 1 root root  9 Jun 30 10:15 scsi-SATA_ST3160815AS_6RA9JHRC -> ../../sdb
lrwxrwxrwx. 1 root root 10 Jun 30 10:15 scsi-SATA_ST3160815AS_6RA9JHRC-part1 -> ../../sdb1
lrwxrwxrwx. 1 root root  9 Jun 30 10:15 scsi-SATA_ST3160815AS_6RA9KQRJ -> ../../sda
lrwxrwxrwx. 1 root root 10 Jun 30 10:15 scsi-SATA_ST3160815AS_6RA9KQRJ-part1 -> ../../sda1
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx. 1 root root 9 Jun 30 10:21 8aff5614-49c4-4f3b-b35e-4d2b12309731 -> ../../md0
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-3-686-pae (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/dash

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]  1.5.44
ii  grub-common            1.99-22.1
ii  grub-pc-bin            1.99-22.1
ii  grub2-common           1.99-22.1
ii  ucf                    3.0025+nmu3

grub-pc recommends no packages.

grub-pc suggests no packages.

-- debconf information:
  grub2/kfreebsd_cmdline:
  grub2/device_map_regenerated:
* grub2/linux_cmdline: security=selinux
  grub-pc/install_devices_empty: false
  grub-pc/install_devices_failed: false
  grub-pc/chainload_from_menu.lst: true
  grub-pc/kopt_extracted: false
* grub-pc/install_devices: /dev/disk/by-id/ata-ST3160815AS_6RA9KQRJ, /dev/disk/by-id/ata-ST3160815AS_6RA9JHRC
  grub-pc/postrm_purge_boot_grub: false
  grub-pc/install_devices_failed_upgrade: true
  grub-pc/disk_description:
  grub2/kfreebsd_cmdline_default: quiet
  grub-pc/partition_description:
  grub-pc/install_devices_disks_changed:
* grub2/linux_cmdline_default: quiet
  grub-pc/mixed_legacy_and_grub2: true





More information about the Pkg-grub-devel mailing list