-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 04/16/2012 03:56 PM, Colin Watson wrote: > On Mon, Apr 16, 2012 at 12:17:59AM +0800, Arne Goetje wrote: >> Upgrading from 1.99-17 to 1.99-21 on wheezy today renders the >> system unbootable. Grub cannot detect any mdraid partition and is >> therefor unable to load the kernel. > > Does it emit any error messages that might be useful to help us > track this down?
Error message for each HD is "error: no such partition". Since I have 4 HDs, the message appears 4 times. >> Downgrading to 1.99-17 solves the problem. > [...] >> *********************** BEGIN /proc/mdstat Personalities : >> [raid1] md1 : active raid1 sdc[0] sdd[1] 488386496 blocks [2/2] >> [UU] md127 : active raid1 sda[0] sdb[1] 488386496 blocks [2/2] >> [UU] unused devices: <none> *********************** END >> /proc/mdstat > [...] >> * grub-pc/install_devices: /dev/sdc > > This jumped out at me. Are you quite sure that your BIOS is > actually booting from /dev/sdc? It's possible that it's attempting > to boot from an old copy of the GRUB core image installed to a > different disk, which then gets confused by the newer modules in > /boot/grub/. In this theory, downgrading to 1.99-17 would help > because perhaps that core image is ABI-compatible with those > modules; the support for non-512-byte sectors in 1.99-19 was > probably a core/modules ABI break so this is plausible enough. > > My standard advice is to install GRUB to all fixed disks > ('dpkg-reconfigure grub-pc') unless you have a good reason not to. I remember I installed grub on all disks when I set up the machine. However, 'dpkg-reconfigure grub-pc' doesn't give me any option to configure that any more. I tried a manual 'grub-setup /dev/md127 ; grub-setup /dev/md1' after installing the new version, but it didn't help. grub-setup doesn't let me install on /dev/sd*, since the disks are grouped into raid arrays now. The boot device is /dev/md127 and the root partition /dev/md127p1. (Itʼs named md127, because when I installed squeeze on the machine, I chose the name md0 for the first raid array, not knowing that it would secretly rename it to md127, since it somehow doesn't like the numbering start from 0.) Attached is my grub.cfg HTH Cheers Arne -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBCAAGBQJPj7qnAAoJENiwmJtstTzsdEsQAJMyrigq08JBYf4YJgHUQK4o xV2qQrFI6Uk/3nfwRFx3G4287c+BTNKPusV7wtS/PaNPLntXgNoy3TGu0LQioKiu Q3nsqUJjCiNT7CbxyVpBeEdH+msT4qgP67V9pbVqwJLVHETDkecxWk67tcAHaETi NNLZWDxqx4afHuBfX+7WvVPuuLwFWqKn6AZYp7S3xCZk0j3V9r9wuwO69maW5iuA Lxh34LExEvD6+wzUpupDZdxo7Q3Diz1Z1e/w2t4ADRwhAoTYJPLxQx6n4K7nIk6R 79fXa8Alkb+8fzop8NQkj+b79Xp2Tqb/6tfjBQbFXr4Cr/Oayk+QLuQt1MEnY8qm nQtyY76FOPSiasWRT2smM7syif4vZBSCJVG6XCO2+geva40kjeq/iD/Qv3d7hsfS wmM7nnvGGS4jPwDsl5mpKpUjzZmb8f1rBVUWcjMEpcispX1btrrpGTJDNCVOIWui HgTRo0SHwQSQORMsOUJoQFuV5sA5giWzqEUV7bDeFKLhS+g6XifoEQocHnLT9qf0 yFbgOxcYStYDzjktM+MzmqScoGVxRvwmddWQQ/gEeTt8fxhANV+Am9XL47WMhukz zZvZYwEkEckzw5srEYAx8lFbcLViPOGrffw4/46Efp34Wftlt/IdoVnigCImQhKr j8ldZU6tWaUdpmjKvGFU =bB4z -----END PGP SIGNATURE-----
# # 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 part_msdos insmod ext2 set root='(mduuid/a64afb126a34e01de368bf24bd0fce41,1)' search --no-floppy --fs-uuid --set=root fe2d67a4-6b34-4abb-bf1d-9fcb39b65b30 if loadfont /usr/share/grub/unicode.pf2 ; then set gfxmode=640x480 load_video insmod gfxterm insmod raid insmod mdraid09 insmod part_msdos insmod ext2 set root='(mduuid/a64afb126a34e01de368bf24bd0fce41,1)' search --no-floppy --fs-uuid --set=root fe2d67a4-6b34-4abb-bf1d-9fcb39b65b30 set locale_dir=($root)/boot/grub/locale set lang=C insmod gettext fi terminal_output gfxterm set timeout=5 ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/05_debian_theme ### insmod raid insmod mdraid09 insmod part_msdos insmod ext2 set root='(mduuid/a64afb126a34e01de368bf24bd0fce41,1)' search --no-floppy --fs-uuid --set=root fe2d67a4-6b34-4abb-bf1d-9fcb39b65b30 insmod png if background_image /usr/share/images/desktop-base/spacefun-grub.png; then set color_normal=light-gray/black set color_highlight=white/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 3.2.0-2-686-pae' --class debian --class gnu-linux --class gnu --class os { insmod gzio insmod raid insmod mdraid09 insmod part_msdos insmod ext2 set root='(mduuid/a64afb126a34e01de368bf24bd0fce41,1)' search --no-floppy --fs-uuid --set=root fe2d67a4-6b34-4abb-bf1d-9fcb39b65b30 echo 'Loading Linux 3.2.0-2-686-pae ...' linux /boot/vmlinuz-3.2.0-2-686-pae root=/dev/md127p1 ro quiet echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-3.2.0-2-686-pae } menuentry 'Debian GNU/Linux, with Linux 3.2.0-2-686-pae (recovery mode)' --class debian --class gnu-linux --class gnu --class os { insmod gzio insmod raid insmod mdraid09 insmod part_msdos insmod ext2 set root='(mduuid/a64afb126a34e01de368bf24bd0fce41,1)' search --no-floppy --fs-uuid --set=root fe2d67a4-6b34-4abb-bf1d-9fcb39b65b30 echo 'Loading Linux 3.2.0-2-686-pae ...' linux /boot/vmlinuz-3.2.0-2-686-pae root=/dev/md127p1 ro single echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-3.2.0-2-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 ### ### 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 ###
grub.cfg.sig
Description: PGP signature