Bug#613444: grub-pc: grub-install fails in Debian installer if rootfs/boot is on a partitioned RAID device

Jaakko Salo jaakkos at gmail.com
Mon Feb 14 21:39:54 UTC 2011


Package: grub-pc
Version: 1.98+20100804-14
Severity: normal
Tags: d-i

To reproduce: create eg. a RAID5/6 array in Debian installer and furthermore, partition the array (/dev/md0),
for instance with msdos partition table. Note that if you do NOT partition /dev/md0 but use the whole device
as an FS container, this problem DOES NOT happen.

Next, choose root file system to be located on one of these new partitions. I've tried XFS and ext4 with this,
does not affect the behavior.

Continue installation. When grub2 begins to install, it fails with:

/usr/sbin/grub-probe: error: unknown filesystem.

Auto-detection of a filesystem of /dev/md0p1 failed.
Please report this together with the output of "/usr/sbin/grub-probe --device-map=/boot/grub/device.map --target=fs -v /boot/grub" to <bug-grub at gnu.org>

The output of that command is:

/usr/sbin/grub-probe: info: the size of hd0 is 2097152.
/usr/sbin/grub-probe: info: the size of hd0 is 2097152.
/usr/sbin/grub-probe: info: the size of hd0 is 2097152.
/usr/sbin/grub-probe: info: the size of hd1 is 2097152.
/usr/sbin/grub-probe: info: the size of hd1 is 2097152.
/usr/sbin/grub-probe: info: the size of hd1 is 2097152.
/usr/sbin/grub-probe: info: the size of hd2 is 2097152.
/usr/sbin/grub-probe: info: the size of hd2 is 2097152.
/usr/sbin/grub-probe: info: the size of hd2 is 2097152.
/usr/sbin/grub-probe: info: the size of hd3 is 2097152.
/usr/sbin/grub-probe: info: the size of hd3 is 2097152.
/usr/sbin/grub-probe: info: the size of hd3 is 2097152.
/usr/sbin/grub-probe: info: the size of hd0 is 2097152.
/usr/sbin/grub-probe: info: the size of hd0 is 2097152.
/usr/sbin/grub-probe: info: the size of hd0 is 2097152.
/usr/sbin/grub-probe: info: the size of hd1 is 2097152.
/usr/sbin/grub-probe: info: the size of hd1 is 2097152.
/usr/sbin/grub-probe: info: the size of hd1 is 2097152.
/usr/sbin/grub-probe: info: the size of hd2 is 2097152.
/usr/sbin/grub-probe: info: the size of hd2 is 2097152.
/usr/sbin/grub-probe: info: the size of hd2 is 2097152.
/usr/sbin/grub-probe: info: the size of hd3 is 2097152.
/usr/sbin/grub-probe: info: the size of hd3 is 2097152.
/usr/sbin/grub-probe: info: the size of hd3 is 2097152.
/usr/sbin/grub-probe: info: changing current directory to /dev.
/usr/sbin/grub-probe: info: opening md/0.
/usr/sbin/grub-probe: error: unknown filesystem.

fdisk -l shows, among other things:

Disk /dev/sda: 1073 MB, 1073741824 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         507     1046528   fd  Linux raid autodetect

Disk /dev/sdc: 1073 MB, 1073741824 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1         507     1046528   fd  Linux raid autodetect

Disk /dev/sdd: 1073 MB, 1073741824 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1         507     1046528   fd  Linux raid autodetect

Disk /dev/sdb: 1073 MB, 1073741824 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1         507     1046528   fd  Linux raid autodetect

Disk /dev/md0: 2142 MB, 2142240768 bytes
    Device Boot      Start         End      Blocks   Id  System
/dev/md0p1   *         257      384256     1536000   83  Linux
/dev/md0p2          384257      523008      555008   82  Linux swap / Solaris





More information about the Pkg-grub-devel mailing list