Bug#610184: Patch for v1 superblock misdetection

Anthony DeRobertis anthony at derobert.net
Tue Jan 18 18:27:59 UTC 2011


Package: grub-pc
Version: 1.98+20100804-13
Severity: normal

Attached is a patch. I have installed this patched grub on the machine
that was having errors, and it quieted the errors. Haven't tried booting
yet...

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/mapper/Zia-root / ext4 rw,relatime,errors=remount-ro,user_xattr,barrier=1,data=ordered 0 0
/dev/md0 /boot ext2 rw,noatime,errors=continue 0 0
/dev/mapper/Zia-home /home ext4 rw,relatime,user_xattr,barrier=1,data=ordered 0 0
/dev/mapper/Zia-srv /srv ext4 rw,relatime,user_xattr,barrier=1,data=ordered 0 0
/dev/sdb2 /xfer/2 vfat rw,relatime,gid=25,fmask=0117,dmask=0007,allow_utime=0020,codepage=cp437,iocharset=utf8,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/sdc2 /xfer/3 vfat rw,relatime,gid=25,fmask=0117,dmask=0007,allow_utime=0020,codepage=cp437,iocharset=utf8,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/sdd2 /xfer/4 vfat rw,relatime,gid=25,fmask=0117,dmask=0007,allow_utime=0020,codepage=cp437,iocharset=utf8,shortname=mixed,utf8,errors=remount-ro 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/disk/by-id/ata-ST31000528AS_9VP4GHAG
(hd1)	/dev/disk/by-id/ata-ST31000528AS_9VP4KGH6
(hd2)	/dev/disk/by-id/ata-ST31000528AS_9VP4S76X
(hd3)	/dev/disk/by-id/ata-ST31000528AS_9VP4Y27P
(hd4)	/dev/disk/by-id/md-name-Zia:pv0
(hd5)	/dev/disk/by-id/md-uuid-a1b8efea:2114fd99:28a5f279:815d333e
*********************** 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 mdraid
insmod lvm
insmod part_msdos
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(Zia-root)'
search --no-floppy --fs-uuid --set a121fba0-0471-426f-9ef6-dc88d0807d52
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=1600x1200
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod raid
insmod mdraid
insmod part_msdos
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set 187cd07e-1407-4120-ab17-b69c82bf2ffd
set locale_dir=($root)/grub/locale
set lang=en
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/04_zia_theme ###
insmod raid
insmod mdraid
insmod part_msdos
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set 187cd07e-1407-4120-ab17-b69c82bf2ffd
insmod png
if background_image /grub/splash1600.png ; then
  set color_normal=yellow/black
  set color_highlight=white/red
fi
### END /etc/grub.d/04_zia_theme ###

### BEGIN /etc/grub.d/05_debian_theme ###
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 2.6.37-trunk-amd64' --class debian --class gnu-linux --class gnu --class os {
	insmod raid
	insmod mdraid
	insmod part_msdos
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set 187cd07e-1407-4120-ab17-b69c82bf2ffd
	echo	'Loading Linux 2.6.37-trunk-amd64 ...'
	linux	/vmlinuz-2.6.37-trunk-amd64 root=/dev/mapper/Zia-root ro  verbose
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-2.6.37-trunk-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.37-trunk-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod raid
	insmod mdraid
	insmod part_msdos
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set 187cd07e-1407-4120-ab17-b69c82bf2ffd
	echo	'Loading Linux 2.6.37-trunk-amd64 ...'
	linux	/vmlinuz-2.6.37-trunk-amd64 root=/dev/mapper/Zia-root ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-2.6.37-trunk-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.36-trunk-amd64' --class debian --class gnu-linux --class gnu --class os {
	insmod raid
	insmod mdraid
	insmod part_msdos
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set 187cd07e-1407-4120-ab17-b69c82bf2ffd
	echo	'Loading Linux 2.6.36-trunk-amd64 ...'
	linux	/vmlinuz-2.6.36-trunk-amd64 root=/dev/mapper/Zia-root ro  verbose
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-2.6.36-trunk-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.36-trunk-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod raid
	insmod mdraid
	insmod part_msdos
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set 187cd07e-1407-4120-ab17-b69c82bf2ffd
	echo	'Loading Linux 2.6.36-trunk-amd64 ...'
	linux	/vmlinuz-2.6.36-trunk-amd64 root=/dev/mapper/Zia-root ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-2.6.36-trunk-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-amd64' --class debian --class gnu-linux --class gnu --class os {
	insmod raid
	insmod mdraid
	insmod part_msdos
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set 187cd07e-1407-4120-ab17-b69c82bf2ffd
	echo	'Loading Linux 2.6.32-5-amd64 ...'
	linux	/vmlinuz-2.6.32-5-amd64 root=/dev/mapper/Zia-root ro  verbose
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-2.6.32-5-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod raid
	insmod mdraid
	insmod part_msdos
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set 187cd07e-1407-4120-ab17-b69c82bf2ffd
	echo	'Loading Linux 2.6.32-5-amd64 ...'
	linux	/vmlinuz-2.6.32-5-amd64 root=/dev/mapper/Zia-root ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/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	/memtest86.bin
}
### END /etc/grub.d/20_memtest86 ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	insmod raid
	insmod mdraid
	insmod part_msdos
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set 187cd07e-1407-4120-ab17-b69c82bf2ffd
	linux16	/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod raid
	insmod mdraid
	insmod part_msdos
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set 187cd07e-1407-4120-ab17-b69c82bf2ffd
	linux16	/memtest86+.bin console=ttyS0,115200n8
}
menuentry "Memory test (memtest86+, experimental multiboot)" {
	insmod raid
	insmod mdraid
	insmod part_msdos
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set 187cd07e-1407-4120-ab17-b69c82bf2ffd
	multiboot	/memtest86+_multiboot.bin
}
menuentry "Memory test (memtest86+, serial console 115200, experimental multiboot)" {
	insmod raid
	insmod mdraid
	insmod part_msdos
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set 187cd07e-1407-4120-ab17-b69c82bf2ffd
	multiboot	/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 ###
*********************** END /boot/grub/grub.cfg

-- System Information:
Debian Release: 6.0
  APT prefers testing
  APT policy: (500, 'testing'), (200, 'unstable'), (100, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.37-trunk-amd64 (SMP w/8 CPU cores)
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.36           Debian configuration management sy
ii  grub-common             1.98+20100804-13 GRand Unified Bootloader, version 
ii  libc6                   2.11.2-7         Embedded GNU C Library: Shared lib
ii  libdevmapper1.02.1      2:1.02.48-4      The Linux Kernel Device Mapper use
ii  ucf                     3.0025+nmu1      Update Configuration File: preserv

grub-pc recommends no packages.

Versions of packages grub-pc suggests:
ii  desktop-base                  6.0.5      common files for the Debian Deskto

-- Configuration Files:
/etc/grub.d/05_debian_theme changed [not included]

-- debconf information excluded
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ignore-wrong-superblocks.patch
Type: text/x-diff
Size: 536 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20110118/a799b2d6/attachment.patch>


More information about the Pkg-grub-devel mailing list