Bug#486624: update-grub causes error for /dev/.tmp.md0 on SoftwareRAID1

michael netz michaelnetz at googlemail.com
Tue Jun 17 10:29:51 UTC 2008


Package: grub
Version: 0.97-39

Hello,

i have a problem with grub when i try to update-grub
i am working in a live-system, chrooted in a bootstraped system and
try to install grub:

# dpkg -l | grep grub
ii  grub                            0.97-39           GRand Unified
Bootloader (Legacy version)
ii  grub-common                     1.96+20080601-2   GRand Unified
Bootloader, version 2 (common

mdadm is also installed:
ii  mdadm                           2.6.4-2           tool to
administer Linux MD arrays (software)
setup for the RAID1 was done in chroot with this order:
# mdadm --create /dev/md0 --level=mirror --raid-devices=2 /dev/sda1 /dev/sdb1
analogue with all other md-x and sda-y, sdb-y

/dev# ls -la
brw-r--r-- 1 root root 8,  0 2008-06-09 17:56 sda
brw-r--r-- 1 root root 8,  1 2008-06-09 17:56 sda1
brw-r--r-- 1 root root 8, 16 2008-06-09 17:56 sdb
brw-r--r-- 1 root root 8, 17 2008-06-09 17:56 sdb1

drwxr-xr-x  2 root root     2048 2008-06-09 20:25 md
brw-rw----  1 root disk   9,   0 2008-06-09 20:25 md0
brw-rw----  1 root disk   9,   1 2008-06-09 20:25 md1
brw-rw----  1 root disk   9,   2 2008-06-09 20:25 md2
brw-rw----  1 root disk   9,   3 2008-06-09 20:25 md3
brw-rw----  1 root disk   9,   4 2008-06-09 20:25 md4

brw-------  1 root root   9,   0 2008-06-09 20:25 .tmp.md0
brw-------  1 root root   9,   1 2008-06-09 20:25 .tmp.md1
brw-------  1 root root   9,   2 2008-06-09 20:25 .tmp.md2
brw-------  1 root root   9,   3 2008-06-09 20:25 .tmp.md3
brw-------  1 root root   9,   4 2008-06-09 20:25 .tmp.md4

# mount
/dev/md1 on / type ext3 (rw,nosuid,errors=remount-ro)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)

none on /proc type proc (rw)
proc on /proc type proc (rw)
none on /proc type proc (rw)
/dev/md0 on /boot type ext3 (rw)

# cat device.map
(hd0)	/dev/sda
(hd1)	/dev/sdb

/boot/grub# update-grub

Searching for GRUB installation directory ... found: /boot/grub
Probing devices to guess BIOS drives. This may take a long time.
grub-probe: error: Cannot find a GRUB drive for /dev/.tmp.md0.  Check
your device.map.


# grub-probe -t device /boot
/dev/.tmp.md0
# grub-probe -t drive /boot
grub-probe: error: Cannot find a GRUB drive for /dev/.tmp.md0.  Check
your device.map.

# cat /proc/mdstat
Personalities : [linear] [raid0] [raid1]

md4 : active raid1 sda8[0] sdb8[1]
      209800768 blocks [2/2] [UU]

md3 : active raid1 sda6[0] sdb6[1]
      21237824 blocks [2/2] [UU]

md2 : active raid1 sda3[0] sdb3[1]
      738880 blocks [2/2] [UU]


md1 : active raid1 sda2[0] sdb2[1]
      248896 blocks [2/2] [UU]

md0 : active raid1 sda1[0] sdb1[1]
      48064 blocks [2/2] [UU]

unused devices: <none>


thanks, michael





More information about the Pkg-grub-devel mailing list