Bug#595066: grub2: doesn't reckognize partioned mdraid disks

Miquel van Smoorenburg miquels at cistron.nl
Tue Aug 31 19:37:46 UTC 2010


Package: grub2
Version: 1.96+20090709-1
Severity: important

Currently grub2 doesn't reckognize a system that boots from
a partitionable mdraid disk, as I have. So the upgrade I did
from lenny/grub-legacy to squeeze/grub2 failed.

The main block device is called /dev/md_d0 and the partitions
are md_d0p1, md_d0p2 etc.

It turns out that grub2 does have all the code to make this work,
but it looks like it hasn't been tested much and so regressed.

It needs 2 fixes for it to work, attached as patches.

1. grub2-md_d0-osdev.patch
   A problem description and this patch (for a slightly earlier
   grub version) can be found at http://savannah.gnu.org/bugs/?29903
   (Original author as in the bugreport)

2. grub2-md_d0-grubdev.patch
   When grub gets the real mdraid name from "mdadm", the partition
   information is lost. This patch adds it back.
   (Author is me)

With these fixes applied I can grub-install /dev/md_d0 and
have a booting system.

Mike.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: grub2-md_d0-osdev.patch
Type: text/x-diff
Size: 1342 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20100831/14d19375/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: grub2-md_d0-grubdev.patch
Type: text/x-diff
Size: 627 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20100831/14d19375/attachment-0001.patch>


More information about the Pkg-grub-devel mailing list