Bug#710901: grub-pc-bin: grub does not distiguish failed members of a raid1 device and may fail to boot on the good ones

root gmulas at oa-cagliari.inaf.it
Mon Jun 3 09:42:21 UTC 2013


Package: grub-pc-bin
Version: 1.99-27+deb7u1
Severity: normal

Dear Maintainer,

this is a corner-case situation but one which may indeed happen, especially
when upgrading the distro e.g.  from squeeze to wheezy, ending in an
unbootable system without apparent motivation.

I have a system with two twin disks, partitioned identically with partitions
then combined in pairs to have md raid 1 devices. Recently, one of the disks
failed, and I had to replace it with what I had at hand. The new disk was a
"green" series disk, with aggressive built-in energy saving that does not
play very well with raid. Indeed it will be replaced as soon as possible,
but this was a "better than nothing" temporary arrangement.

This happened just when wheezy was released, so I set up for a distro
upgrade which, after the usual amount of relatively minor problems (there is
a huge amount of sw on that machine, so there were some circular
dependencies I had to break etc.) I completed the upgrade (which included
upgrading grub) and rebooted. Or rather tried to, since reboot stopped at
the grub rescue prompt, after a cryptic message of "incompatible license"
problems.

After much cursing, and failing to find problems, I nailed the thing down,
this is the reconstruction:
1) during the distro upgrade, the new "green" disk went in standby once too
often, and was dropped from the disk array, which kept working flawlessly on
the good disk
2) grub was upgraded (in the overall upgrade) when the raid was out of sync,
so it was upgraded only on one disk and not on the other
3) at the next reboot, grub still recognised the "failed" disk as a member
of the raid 1 array containing /boot, and accidentally chose to read its
modules off it
4) the modules on the "failed" disk were of the older grub version from
squeeze, hence grub stopped cold with the cryptic (for me) message about
incompatible license

Quick&dirty solution: either unplug the "green" disk altogether, or re-add
it to the raid 1 array to have it resynced.  Both worked.

Grub problems: It would be really much nicer if the mdraid1x.mod (or
whatever other part of grub is involved) could detect that a partition is
an out of sync member of a raid array and tried to use good ones first.
I see that grub.cfg uses the UUIDs of the member partitions to identify
where to find boot and root partitions, and these are identical for all
members in case of a raid 1 partition. This is a good thing, as it means one
can boot the system if any of them is present. However, if a partition drops
out of sync but is not physically unplugged, it will still show the same
UUID and grub may attempt to use it (with potentially very bad
consequences). Is there any way that grub can use to distinguish that a
member of a raid array is out of sync versus the "good" ones? The kernel and
mdadm can do it, so it must be possible, but maybe it's too tricky to
include in grub, I am not such an expert in the internal workings of linux
software raid so I cannot tell.

In case this is too complicated, this should be documented clearly. 
I could not (maybe it was my fault) find this possible issue
documented anywhere. 


This issue is very easy to reproduce for testing:

1) setup a raid 1 array and install a minimal system on it, make it bootable
with grub
2) note the names of the participating devices, e.g. sda1 and sdb1
3) mark the first one as failed with mdadm, and remove it from the array
(e.g. mdadm /dev/md0 -f /dev/sda1 ; mdadm /dev/md0 -r /dev/sda1). But leave
the "failed" disk connected to the system
4) change the version of grub on md0, which now is running only on sdb1, so
that its modules are incompatible with the previously installed ones (e.g.
switch between the squeeze and wheezy versions of grub), making sure to run
grub-install and update-grub. Everything will run without errors
5) try to reboot. If grub tries to load modules from the "failed" /dev/sda1
it will stop with an "incompatible license" message.


I hope this is not a waste of time for grub maintainers. I already solved my
specific problem, and my brutal solution (unplug the "failed" disk) will
work for other people running into the same problem. However, it may take
quite a bit of time to figure out what is happening, since everything
appears to be perfect if one inspects the raid device, the grub boot sector
on the MBR, etc., everything appears to be ok. The problem is hidden in the
_contents_ of the "failed" (but still physically connected) raid member
which fell out of sync.

So I am filing this bug report in the hope that it may save a couple of days
(a couple of hours, if they are much smarter than me) of time to other 
sysadmins.


-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/disk/by-uuid/e71e02d9-c870-46d2-a14e-43944abbe7d9 / ext4 rw,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/md1 /ia32 ext4 rw,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/md5 /home ext4 rw,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/md3 /var ext4 rw,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/md4 /tmp ext4 rw,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/md6 /backup ext4 rw,relatime,user_xattr,acl,barrier=1,stripe=256,data=ordered 0 0
/dev/md6 /ia32/backup ext4 rw,relatime,user_xattr,acl,barrier=1,stripe=256,data=ordered 0 0
/dev/disk/by-uuid/e71e02d9-c870-46d2-a14e-43944abbe7d9 /ia32/etc/passwd\040(deleted) ext4 rw,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/disk/by-uuid/e71e02d9-c870-46d2-a14e-43944abbe7d9 /ia32/etc/shadow\040(deleted) ext4 rw,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/disk/by-uuid/e71e02d9-c870-46d2-a14e-43944abbe7d9 /ia32/etc/group ext4 rw,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/disk/by-uuid/e71e02d9-c870-46d2-a14e-43944abbe7d9 /ia32/etc/gshadow ext4 rw,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/disk/by-uuid/e71e02d9-c870-46d2-a14e-43944abbe7d9 /ia32/etc/hostname ext4 rw,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/disk/by-uuid/e71e02d9-c870-46d2-a14e-43944abbe7d9 /ia32/etc/hosts ext4 rw,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/md5 /ia32/home ext4 rw,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/disk/by-uuid/e71e02d9-c870-46d2-a14e-43944abbe7d9 /ia32/media ext4 rw,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/disk/by-uuid/e71e02d9-c870-46d2-a14e-43944abbe7d9 /ia32/usr/tmp ext4 rw,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/md3 /ia32/var/mail ext4 rw,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/md3 /ia32/var/spool ext4 rw,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/md3 /ia32/var/tmp ext4 rw,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/md4 /ia32/tmp ext4 rw,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/disk/by-id/ata-WDC_WD10EADS-00P8B0_WD-WCAVU0147592
(hd1)	/dev/disk/by-id/ata-WDC_WD5000AAKX-001CA0_WD-WCAYU9691160
(hd2)	/dev/disk/by-id/ata-WDC_WD10EALX-009BA0_WD-WCATR6924589
(hd3)	/dev/disk/by-id/ata-WDC_WD10EALX-009BA0_WD-WCATR7196690
(hd4)	/dev/disk/by-id/ata-WDC_WD10EALX-009BA0_WD-WCATR6979057
(hd5)	/dev/disk/by-id/usb-Kingston_DT_101_G2_001CC07CEE8BF080A91C1586-0:0
*********************** 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 mdraid1x
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(mduuid/62e21b66a442f9d64c24d1cb604ab9b5)'
search --no-floppy --fs-uuid --set=root e71e02d9-c870-46d2-a14e-43944abbe7d9
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
  insmod raid
  insmod mdraid1x
  insmod part_msdos
  insmod part_msdos
  insmod ext2
  set root='(mduuid/62e21b66a442f9d64c24d1cb604ab9b5)'
  search --no-floppy --fs-uuid --set=root e71e02d9-c870-46d2-a14e-43944abbe7d9
  set locale_dir=($root)/boot/grub/locale
  set lang=it_IT
  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 mdraid1x
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(mduuid/62e21b66a442f9d64c24d1cb604ab9b5)'
search --no-floppy --fs-uuid --set=root e71e02d9-c870-46d2-a14e-43944abbe7d9
insmod png
if background_image /usr/share/images/desktop-base/joy-grub.png; then
  set color_normal=white/black
  set color_highlight=black/white
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, con Linux 3.2.41-dsf-k8' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod raid
	insmod mdraid1x
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(mduuid/62e21b66a442f9d64c24d1cb604ab9b5)'
	search --no-floppy --fs-uuid --set=root e71e02d9-c870-46d2-a14e-43944abbe7d9
	echo	'Caricamento Linux 3.2.41-dsf-k8...'
	linux	/boot/vmlinuz-3.2.41-dsf-k8 root=UUID=e71e02d9-c870-46d2-a14e-43944abbe7d9 ro  quiet
	echo	'Caricamento ramdisk iniziale...'
	initrd	/boot/initrd.img-3.2.41-dsf-k8
}
menuentry 'Debian GNU/Linux, con Linux 3.2.41-dsf-k8 (modalità ripristino)' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod raid
	insmod mdraid1x
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(mduuid/62e21b66a442f9d64c24d1cb604ab9b5)'
	search --no-floppy --fs-uuid --set=root e71e02d9-c870-46d2-a14e-43944abbe7d9
	echo	'Caricamento Linux 3.2.41-dsf-k8...'
	linux	/boot/vmlinuz-3.2.41-dsf-k8 root=UUID=e71e02d9-c870-46d2-a14e-43944abbe7d9 ro single 
	echo	'Caricamento ramdisk iniziale...'
	initrd	/boot/initrd.img-3.2.41-dsf-k8
}
menuentry 'Debian GNU/Linux, con Linux 3.2.39-dsf-k8' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod raid
	insmod mdraid1x
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(mduuid/62e21b66a442f9d64c24d1cb604ab9b5)'
	search --no-floppy --fs-uuid --set=root e71e02d9-c870-46d2-a14e-43944abbe7d9
	echo	'Caricamento Linux 3.2.39-dsf-k8...'
	linux	/boot/vmlinuz-3.2.39-dsf-k8 root=UUID=e71e02d9-c870-46d2-a14e-43944abbe7d9 ro  quiet
	echo	'Caricamento ramdisk iniziale...'
	initrd	/boot/initrd.img-3.2.39-dsf-k8
}
menuentry 'Debian GNU/Linux, con Linux 3.2.39-dsf-k8 (modalità ripristino)' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod raid
	insmod mdraid1x
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(mduuid/62e21b66a442f9d64c24d1cb604ab9b5)'
	search --no-floppy --fs-uuid --set=root e71e02d9-c870-46d2-a14e-43944abbe7d9
	echo	'Caricamento Linux 3.2.39-dsf-k8...'
	linux	/boot/vmlinuz-3.2.39-dsf-k8 root=UUID=e71e02d9-c870-46d2-a14e-43944abbe7d9 ro single 
	echo	'Caricamento ramdisk iniziale...'
	initrd	/boot/initrd.img-3.2.39-dsf-k8
}
menuentry 'Debian GNU/Linux, con Linux 3.2.35-dsf-k8' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod raid
	insmod mdraid1x
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(mduuid/62e21b66a442f9d64c24d1cb604ab9b5)'
	search --no-floppy --fs-uuid --set=root e71e02d9-c870-46d2-a14e-43944abbe7d9
	echo	'Caricamento Linux 3.2.35-dsf-k8...'
	linux	/boot/vmlinuz-3.2.35-dsf-k8 root=UUID=e71e02d9-c870-46d2-a14e-43944abbe7d9 ro  quiet
	echo	'Caricamento ramdisk iniziale...'
	initrd	/boot/initrd.img-3.2.35-dsf-k8
}
menuentry 'Debian GNU/Linux, con Linux 3.2.35-dsf-k8 (modalità ripristino)' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod raid
	insmod mdraid1x
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(mduuid/62e21b66a442f9d64c24d1cb604ab9b5)'
	search --no-floppy --fs-uuid --set=root e71e02d9-c870-46d2-a14e-43944abbe7d9
	echo	'Caricamento Linux 3.2.35-dsf-k8...'
	linux	/boot/vmlinuz-3.2.35-dsf-k8 root=UUID=e71e02d9-c870-46d2-a14e-43944abbe7d9 ro single 
	echo	'Caricamento ramdisk iniziale...'
	initrd	/boot/initrd.img-3.2.35-dsf-k8
}
menuentry 'Debian GNU/Linux, con Linux 3.2.32-dsf-k8' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod raid
	insmod mdraid1x
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(mduuid/62e21b66a442f9d64c24d1cb604ab9b5)'
	search --no-floppy --fs-uuid --set=root e71e02d9-c870-46d2-a14e-43944abbe7d9
	echo	'Caricamento Linux 3.2.32-dsf-k8...'
	linux	/boot/vmlinuz-3.2.32-dsf-k8 root=UUID=e71e02d9-c870-46d2-a14e-43944abbe7d9 ro  quiet
	echo	'Caricamento ramdisk iniziale...'
	initrd	/boot/initrd.img-3.2.32-dsf-k8
}
menuentry 'Debian GNU/Linux, con Linux 3.2.32-dsf-k8 (modalità ripristino)' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod raid
	insmod mdraid1x
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(mduuid/62e21b66a442f9d64c24d1cb604ab9b5)'
	search --no-floppy --fs-uuid --set=root e71e02d9-c870-46d2-a14e-43944abbe7d9
	echo	'Caricamento Linux 3.2.32-dsf-k8...'
	linux	/boot/vmlinuz-3.2.32-dsf-k8 root=UUID=e71e02d9-c870-46d2-a14e-43944abbe7d9 ro single 
	echo	'Caricamento ramdisk iniziale...'
	initrd	/boot/initrd.img-3.2.32-dsf-k8
}
menuentry 'Debian GNU/Linux, con Linux 3.2.23-dsf-k8' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod raid
	insmod mdraid1x
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(mduuid/62e21b66a442f9d64c24d1cb604ab9b5)'
	search --no-floppy --fs-uuid --set=root e71e02d9-c870-46d2-a14e-43944abbe7d9
	echo	'Caricamento Linux 3.2.23-dsf-k8...'
	linux	/boot/vmlinuz-3.2.23-dsf-k8 root=UUID=e71e02d9-c870-46d2-a14e-43944abbe7d9 ro  quiet
	echo	'Caricamento ramdisk iniziale...'
	initrd	/boot/initrd.img-3.2.23-dsf-k8
}
menuentry 'Debian GNU/Linux, con Linux 3.2.23-dsf-k8 (modalità ripristino)' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod raid
	insmod mdraid1x
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(mduuid/62e21b66a442f9d64c24d1cb604ab9b5)'
	search --no-floppy --fs-uuid --set=root e71e02d9-c870-46d2-a14e-43944abbe7d9
	echo	'Caricamento Linux 3.2.23-dsf-k8...'
	linux	/boot/vmlinuz-3.2.23-dsf-k8 root=UUID=e71e02d9-c870-46d2-a14e-43944abbe7d9 ro single 
	echo	'Caricamento ramdisk iniziale...'
	initrd	/boot/initrd.img-3.2.23-dsf-k8
}
menuentry 'Debian GNU/Linux, con Linux 3.2.20-dsf-k8' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod raid
	insmod mdraid1x
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(mduuid/62e21b66a442f9d64c24d1cb604ab9b5)'
	search --no-floppy --fs-uuid --set=root e71e02d9-c870-46d2-a14e-43944abbe7d9
	echo	'Caricamento Linux 3.2.20-dsf-k8...'
	linux	/boot/vmlinuz-3.2.20-dsf-k8 root=UUID=e71e02d9-c870-46d2-a14e-43944abbe7d9 ro  quiet
	echo	'Caricamento ramdisk iniziale...'
	initrd	/boot/initrd.img-3.2.20-dsf-k8
}
menuentry 'Debian GNU/Linux, con Linux 3.2.20-dsf-k8 (modalità ripristino)' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod raid
	insmod mdraid1x
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(mduuid/62e21b66a442f9d64c24d1cb604ab9b5)'
	search --no-floppy --fs-uuid --set=root e71e02d9-c870-46d2-a14e-43944abbe7d9
	echo	'Caricamento Linux 3.2.20-dsf-k8...'
	linux	/boot/vmlinuz-3.2.20-dsf-k8 root=UUID=e71e02d9-c870-46d2-a14e-43944abbe7d9 ro single 
	echo	'Caricamento ramdisk iniziale...'
	initrd	/boot/initrd.img-3.2.20-dsf-k8
}
menuentry 'Debian GNU/Linux, con Linux 3.2.0-4-amd64' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod raid
	insmod mdraid1x
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(mduuid/62e21b66a442f9d64c24d1cb604ab9b5)'
	search --no-floppy --fs-uuid --set=root e71e02d9-c870-46d2-a14e-43944abbe7d9
	echo	'Caricamento Linux 3.2.0-4-amd64...'
	linux	/boot/vmlinuz-3.2.0-4-amd64 root=UUID=e71e02d9-c870-46d2-a14e-43944abbe7d9 ro  quiet
	echo	'Caricamento ramdisk iniziale...'
	initrd	/boot/initrd.img-3.2.0-4-amd64
}
menuentry 'Debian GNU/Linux, con Linux 3.2.0-4-amd64 (modalità ripristino)' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod raid
	insmod mdraid1x
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(mduuid/62e21b66a442f9d64c24d1cb604ab9b5)'
	search --no-floppy --fs-uuid --set=root e71e02d9-c870-46d2-a14e-43944abbe7d9
	echo	'Caricamento Linux 3.2.0-4-amd64...'
	linux	/boot/vmlinuz-3.2.0-4-amd64 root=UUID=e71e02d9-c870-46d2-a14e-43944abbe7d9 ro single 
	echo	'Caricamento ramdisk iniziale...'
	initrd	/boot/initrd.img-3.2.0-4-amd64
}
menuentry 'Debian GNU/Linux, con Linux 3.2.0-0.bpo.3-amd64' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod raid
	insmod mdraid1x
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(mduuid/62e21b66a442f9d64c24d1cb604ab9b5)'
	search --no-floppy --fs-uuid --set=root e71e02d9-c870-46d2-a14e-43944abbe7d9
	echo	'Caricamento Linux 3.2.0-0.bpo.3-amd64...'
	linux	/boot/vmlinuz-3.2.0-0.bpo.3-amd64 root=UUID=e71e02d9-c870-46d2-a14e-43944abbe7d9 ro  quiet
	echo	'Caricamento ramdisk iniziale...'
	initrd	/boot/initrd.img-3.2.0-0.bpo.3-amd64
}
menuentry 'Debian GNU/Linux, con Linux 3.2.0-0.bpo.3-amd64 (modalità ripristino)' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod raid
	insmod mdraid1x
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(mduuid/62e21b66a442f9d64c24d1cb604ab9b5)'
	search --no-floppy --fs-uuid --set=root e71e02d9-c870-46d2-a14e-43944abbe7d9
	echo	'Caricamento Linux 3.2.0-0.bpo.3-amd64...'
	linux	/boot/vmlinuz-3.2.0-0.bpo.3-amd64 root=UUID=e71e02d9-c870-46d2-a14e-43944abbe7d9 ro single 
	echo	'Caricamento ramdisk iniziale...'
	initrd	/boot/initrd.img-3.2.0-0.bpo.3-amd64
}
menuentry 'Debian GNU/Linux, con Linux 2.6.32-5-amd64' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod raid
	insmod mdraid1x
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(mduuid/62e21b66a442f9d64c24d1cb604ab9b5)'
	search --no-floppy --fs-uuid --set=root e71e02d9-c870-46d2-a14e-43944abbe7d9
	echo	'Caricamento Linux 2.6.32-5-amd64...'
	linux	/boot/vmlinuz-2.6.32-5-amd64 root=UUID=e71e02d9-c870-46d2-a14e-43944abbe7d9 ro  quiet
	echo	'Caricamento ramdisk iniziale...'
	initrd	/boot/initrd.img-2.6.32-5-amd64
}
menuentry 'Debian GNU/Linux, con Linux 2.6.32-5-amd64 (modalità ripristino)' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod raid
	insmod mdraid1x
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(mduuid/62e21b66a442f9d64c24d1cb604ab9b5)'
	search --no-floppy --fs-uuid --set=root e71e02d9-c870-46d2-a14e-43944abbe7d9
	echo	'Caricamento Linux 2.6.32-5-amd64...'
	linux	/boot/vmlinuz-2.6.32-5-amd64 root=UUID=e71e02d9-c870-46d2-a14e-43944abbe7d9 ro single 
	echo	'Caricamento ramdisk iniziale...'
	initrd	/boot/initrd.img-2.6.32-5-amd64
}
### END /etc/grub.d/10_linux ###

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

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

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	insmod raid
	insmod mdraid1x
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(mduuid/62e21b66a442f9d64c24d1cb604ab9b5)'
	search --no-floppy --fs-uuid --set=root e71e02d9-c870-46d2-a14e-43944abbe7d9
	linux16	/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod raid
	insmod mdraid1x
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(mduuid/62e21b66a442f9d64c24d1cb604ab9b5)'
	search --no-floppy --fs-uuid --set=root e71e02d9-c870-46d2-a14e-43944abbe7d9
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
menuentry "Memory test (memtest86+, experimental multiboot)" {
	insmod raid
	insmod mdraid1x
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(mduuid/62e21b66a442f9d64c24d1cb604ab9b5)'
	search --no-floppy --fs-uuid --set=root e71e02d9-c870-46d2-a14e-43944abbe7d9
	multiboot	/boot/memtest86+_multiboot.bin
}
menuentry "Memory test (memtest86+, serial console 115200, experimental multiboot)" {
	insmod raid
	insmod mdraid1x
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(mduuid/62e21b66a442f9d64c24d1cb604ab9b5)'
	search --no-floppy --fs-uuid --set=root e71e02d9-c870-46d2-a14e-43944abbe7d9
	multiboot	/boot/memtest86+_multiboot.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### 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 ###

### BEGIN /etc/grub.d/60_grub-imageboot ###
### END /etc/grub.d/60_grub-imageboot ###
*********************** END /boot/grub/grub.cfg

*********************** BEGIN /proc/mdstat
Personalities : [raid6] [raid5] [raid4] [raid1] 
md5 : active raid1 sda8[1]
      246323064 blocks super 1.2 [2/1] [_U]
      
md4 : active raid1 sda7[1]
      40958904 blocks super 1.2 [2/1] [_U]
      
md3 : active raid1 sda6[3]
      61438904 blocks super 1.2 [2/1] [_U]
      
md2 : active raid1 sda5[3]
      16776120 blocks super 1.2 [2/1] [_U]
      
md1 : active raid1 sda2[1]
      61438904 blocks super 1.2 [2/1] [_U]
      
md0 : active raid1 sda1[1]
      61438904 blocks super 1.2 [2/1] [_U]
      
md6 : active raid5 sdc1[4] sdd1[3] sdb1[1]
      1953517568 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/3] [UUU]
      
unused devices: <none>
*********************** END /proc/mdstat

*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 May 31 14:56 ata-HL-DT-ST_DVDRAM_GH22NS50_K2ZB2794120 -> ../../sr0
lrwxrwxrwx 1 root root  9 May 31 14:56 ata-WDC_WD10EALX-009BA0_WD-WCATR6924589 -> ../../sdb
lrwxrwxrwx 1 root root 10 May 31 14:56 ata-WDC_WD10EALX-009BA0_WD-WCATR6924589-part1 -> ../../sdb1
lrwxrwxrwx 1 root root  9 May 31 14:56 ata-WDC_WD10EALX-009BA0_WD-WCATR6979057 -> ../../sdd
lrwxrwxrwx 1 root root 10 May 31 14:56 ata-WDC_WD10EALX-009BA0_WD-WCATR6979057-part1 -> ../../sdd1
lrwxrwxrwx 1 root root  9 May 31 14:56 ata-WDC_WD10EALX-009BA0_WD-WCATR7196690 -> ../../sdc
lrwxrwxrwx 1 root root 10 May 31 14:56 ata-WDC_WD10EALX-009BA0_WD-WCATR7196690-part1 -> ../../sdc1
lrwxrwxrwx 1 root root  9 May 31 14:56 ata-WDC_WD5000AAKX-001CA0_WD-WCAYU9691160 -> ../../sda
lrwxrwxrwx 1 root root 10 May 31 14:56 ata-WDC_WD5000AAKX-001CA0_WD-WCAYU9691160-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 May 31 14:56 ata-WDC_WD5000AAKX-001CA0_WD-WCAYU9691160-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 May 31 14:56 ata-WDC_WD5000AAKX-001CA0_WD-WCAYU9691160-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 May 31 14:56 ata-WDC_WD5000AAKX-001CA0_WD-WCAYU9691160-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 May 31 14:56 ata-WDC_WD5000AAKX-001CA0_WD-WCAYU9691160-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 May 31 14:56 ata-WDC_WD5000AAKX-001CA0_WD-WCAYU9691160-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 May 31 14:56 ata-WDC_WD5000AAKX-001CA0_WD-WCAYU9691160-part8 -> ../../sda8
lrwxrwxrwx 1 root root  9 May 31 14:56 md-name-herschel:0 -> ../../md0
lrwxrwxrwx 1 root root  9 May 31 14:56 md-name-herschel:1 -> ../../md1
lrwxrwxrwx 1 root root  9 May 31 14:56 md-name-herschel:2 -> ../../md2
lrwxrwxrwx 1 root root  9 May 31 14:56 md-name-herschel:3 -> ../../md3
lrwxrwxrwx 1 root root  9 May 31 14:56 md-name-herschel:4 -> ../../md4
lrwxrwxrwx 1 root root  9 May 31 14:56 md-name-herschel:5 -> ../../md5
lrwxrwxrwx 1 root root  9 May 31 14:56 md-name-herschel:6 -> ../../md6
lrwxrwxrwx 1 root root  9 May 31 14:56 md-uuid-1f04d601:8386de0a:ace61ec2:cf2f006e -> ../../md5
lrwxrwxrwx 1 root root  9 May 31 14:56 md-uuid-28a8027a:cfeaa011:4d9e1fc5:4fcfb10e -> ../../md2
lrwxrwxrwx 1 root root  9 May 31 14:56 md-uuid-54691604:949aa79a:46c72191:5172a795 -> ../../md1
lrwxrwxrwx 1 root root  9 May 31 14:56 md-uuid-62e21b66:a442f9d6:4c24d1cb:604ab9b5 -> ../../md0
lrwxrwxrwx 1 root root  9 May 31 14:56 md-uuid-8a6b21c1:79d49cad:bcbdd703:24c1830f -> ../../md3
lrwxrwxrwx 1 root root  9 May 31 14:56 md-uuid-9075f8c0:d1d72aab:f0dd09e1:890868a7 -> ../../md6
lrwxrwxrwx 1 root root  9 May 31 14:56 md-uuid-b3e7dc99:c67ab92a:4168a98a:2e797947 -> ../../md4
lrwxrwxrwx 1 root root  9 May 31 14:56 scsi-SATA_WDC_WD10EALX-00_WD-WCATR6924589 -> ../../sdb
lrwxrwxrwx 1 root root 10 May 31 14:56 scsi-SATA_WDC_WD10EALX-00_WD-WCATR6924589-part1 -> ../../sdb1
lrwxrwxrwx 1 root root  9 May 31 14:56 scsi-SATA_WDC_WD10EALX-00_WD-WCATR6979057 -> ../../sdd
lrwxrwxrwx 1 root root 10 May 31 14:56 scsi-SATA_WDC_WD10EALX-00_WD-WCATR6979057-part1 -> ../../sdd1
lrwxrwxrwx 1 root root  9 May 31 14:56 scsi-SATA_WDC_WD10EALX-00_WD-WCATR7196690 -> ../../sdc
lrwxrwxrwx 1 root root 10 May 31 14:56 scsi-SATA_WDC_WD10EALX-00_WD-WCATR7196690-part1 -> ../../sdc1
lrwxrwxrwx 1 root root  9 May 31 14:56 scsi-SATA_WDC_WD5000AAKX-_WD-WCAYU9691160 -> ../../sda
lrwxrwxrwx 1 root root 10 May 31 14:56 scsi-SATA_WDC_WD5000AAKX-_WD-WCAYU9691160-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 May 31 14:56 scsi-SATA_WDC_WD5000AAKX-_WD-WCAYU9691160-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 May 31 14:56 scsi-SATA_WDC_WD5000AAKX-_WD-WCAYU9691160-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 May 31 14:56 scsi-SATA_WDC_WD5000AAKX-_WD-WCAYU9691160-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 May 31 14:56 scsi-SATA_WDC_WD5000AAKX-_WD-WCAYU9691160-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 May 31 14:56 scsi-SATA_WDC_WD5000AAKX-_WD-WCAYU9691160-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 May 31 14:56 scsi-SATA_WDC_WD5000AAKX-_WD-WCAYU9691160-part8 -> ../../sda8
lrwxrwxrwx 1 root root  9 May 31 14:56 wwn-0x5001480000000000 -> ../../sr0
lrwxrwxrwx 1 root root  9 May 31 14:56 wwn-0x50014ee1038886fa -> ../../sda
lrwxrwxrwx 1 root root 10 May 31 14:56 wwn-0x50014ee1038886fa-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 May 31 14:56 wwn-0x50014ee1038886fa-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 May 31 14:56 wwn-0x50014ee1038886fa-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 May 31 14:56 wwn-0x50014ee1038886fa-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 May 31 14:56 wwn-0x50014ee1038886fa-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 May 31 14:56 wwn-0x50014ee1038886fa-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 May 31 14:56 wwn-0x50014ee1038886fa-part8 -> ../../sda8
lrwxrwxrwx 1 root root  9 May 31 14:56 wwn-0x50014ee25b18a628 -> ../../sdb
lrwxrwxrwx 1 root root 10 May 31 14:56 wwn-0x50014ee25b18a628-part1 -> ../../sdb1
lrwxrwxrwx 1 root root  9 May 31 14:56 wwn-0x50014ee2b06f58ad -> ../../sdd
lrwxrwxrwx 1 root root 10 May 31 14:56 wwn-0x50014ee2b06f58ad-part1 -> ../../sdd1
lrwxrwxrwx 1 root root  9 May 31 14:56 wwn-0x50014ee2b07b05c3 -> ../../sdc
lrwxrwxrwx 1 root root 10 May 31 14:56 wwn-0x50014ee2b07b05c3-part1 -> ../../sdc1
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 9 May 31 14:56 1002526c-8152-4b9d-8442-538d5c000d2b -> ../../md2
lrwxrwxrwx 1 root root 9 May 31 14:56 47de001e-39c6-4d9d-8e20-50fbc2055258 -> ../../md6
lrwxrwxrwx 1 root root 9 May 31 14:56 7f79f2b7-1379-4814-8d61-469312a25054 -> ../../md1
lrwxrwxrwx 1 root root 9 May 31 14:56 8ccc85be-7d83-453b-b21a-1a72f76883de -> ../../md3
lrwxrwxrwx 1 root root 9 May 31 14:56 91256b41-dc7a-4d3f-ab00-3f556a44289d -> ../../md5
lrwxrwxrwx 1 root root 9 May 31 14:56 c429c249-1495-4fbe-bb12-67d0dbffd204 -> ../../md4
lrwxrwxrwx 1 root root 9 May 31 14:56 e71e02d9-c870-46d2-a14e-43944abbe7d9 -> ../../md0
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: 7.0
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (104, 'stable'), (101, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.41-dsf-k8 (SMP w/4 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages grub-pc-bin depends on:
ii  grub-common         1.99-27+deb7u1
ii  libc6               2.13-38
ii  libdevmapper1.02.1  2:1.02.74-7

grub-pc-bin recommends no packages.

Versions of packages grub-pc-bin suggests:
ii  desktop-base  7.0.3

-- no debconf information



More information about the Pkg-grub-devel mailing list