Bug#492897: Bug#478228: grub-probe: can't handle (raid) md-devices

Felix Zielcke fzielcke at z-51.de
Tue Jul 29 23:05:47 UTC 2008


From: "Robert Millan" <rmh at aybabtu.com>


> But we have a check for this:
> 
>  /* FIXME: Also support version 1.0. */
>  if (sb.major_version != 0 || sb.minor_version != 90)
>    {
>      grub_error (GRUB_ERR_NOT_IMPLEMENTED_YET,
>                  "Unsupported RAID version: %d.%d",
>                  sb.major_version, sb.minor_version);
>      return 0;
>    }
> 
> isn't this message reflected in grub-probe -vv output?

I saw this today during my mdraid debuginng.

But in the whole Bugreport there's only "Scanning for RAID devices" and only once "Unsupported RAID version", yours.

But I now read again mdadm(8)
I should have just pasted that part in my mail before.

1.0 stores the superblock at the end of the device.

It doestn't say where 0.90 stores it but the grub code for it looks like it's in the beginning of it.

1.1 stores it in the start.
1.2 stores it 4K from start.

This is a bit tricky to check all 4 formats.
(that's why I CC the cloned bug.) 





More information about the Pkg-grub-devel mailing list