Bug#588338: grub-pc: grub-install fails on fakeraid

Patrick mailto_ps at gmx.net
Wed Jul 7 13:51:05 UTC 2010


Package: grub-pc
Version: 1.98+20100706-1
Severity: normal
Tags: sid

Hi,

I've just sucessfully installed grub2 on a fakeraid (JMicron Raid0), but required some changes in /boot/grub/device.map.
Currently my device.map looks like this:
(hd0)   /dev/disk/by-id/ata-WDC_WD3200BEVT-22ZCT0_WD-WXE408PZ9388
(hd1)   /dev/disk/by-id/ata-WDC_WD3200BEVT-22ZCT0_WD-WXE508K12266
(hd2)   /dev/mapper/jmicron_JRAID
(hd2)   /dev/mapper/jmicron_JRAID1
(hd2)   /dev/mapper/jmicron_JRAID5
(hd2)   /dev/mapper/jmicron_JRAID8

I'd to patch /usr/sbin/grub-install to allow more than one (hd2) entry and disabled the grub-mkdevicemap command, to prevent grub to overwrite the device.map.

The original (by grub-mkdevicemap) generated device.map looks like this:
(hd0)   /dev/disk/by-id/ata-WDC_WD3200BEVT-22ZCT0_WD-WXE408PZ9388
(hd1)   /dev/disk/by-id/ata-WDC_WD3200BEVT-22ZCT0_WD-WXE508K12266
(hd2)   /dev/mapper/jmicron_JRAID

But with this configuration grub-probe fails, that /dev/mapper/jmicron_JRAID5 isn't listed in device.map. The jmicron_JRAID1 and jmicron_JRAID8 are not directly needed,
but I've one additonal Debian installation and one WinXP on this partitions and grub-mkconfig prints the same messages from grub-probe on autodection of OS.

Output:
> grub-install  /dev/mapper/jmicron_JRAID 
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/mapper/jmicron_JRAID5.  Check your device.map.
Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.

I'll be out of office till 18th, so I cannot test anything next week, but afterwards I'm ready to test new versions.

Regards
Patrick

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/disk/by-uuid/ca19f02b-c4a6-4ce5-9ea0-39d9c9af4070 / ext4 rw,relatime,barrier=1,data=ordered 0 0
/dev/mapper/jmicron_JRAID6 /daten2win vfat rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=utf8,shortname=mixed,errors=remount-ro 0 0
/dev/mapper/jmicron_JRAID8 /32bit ext4 rw,relatime,barrier=1,data=ordered 0 0
*********************** END /proc/mounts

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.34-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]    1.5.32          Debian configuration management sy
ii  grub-common              1.98+20100706-1 GRand Unified Bootloader, version 
ii  libc6                    2.11.2-2        Embedded GNU C Library: Shared lib
ii  libdevmapper1.02.1       2:1.02.48-2     The Linux Kernel Device Mapper use
ii  ucf                      3.0025          Update Configuration File: preserv

grub-pc recommends no packages.

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

-- debconf-show failed

-- debsums errors found:
debsums: changed file /usr/sbin/grub-install (from grub-pc package)





More information about the Pkg-grub-devel mailing list