Bug#543795: grub-pc: ..with /dev/dm-0 as /, "grub-probe: error: cannot find a device for /"

Arnt Karlsen arnt at c2i.net
Thu Aug 27 01:29:42 UTC 2009


Package: grub-pc
Version: 1.96+20090826-2
Severity: normal


...aptitude snip pasted:
Errors were encountered while processing:                                  
 grub-pc                                                                   
Press return to continue.                                                  

Setting up grub-pc (1.96+20090826-2) ...
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.                      

(hd0)   /dev/hda
(hd1)   /dev/hdb
grub-probe: error: cannot find a device for /.

dpkg: error processing grub-pc (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:                                  
 grub-pc                                                                   
E: Sub-process /usr/bin/dpkg returned an error code (1)                    
A package failed to install.  Trying to recover:
Setting up grub-pc (1.96+20090826-2) ...
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(hd0)   /dev/hda
(hd1)   /dev/hdb
grub-probe: error: cannot find a device for /.

dpkg: error processing grub-pc (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 grub-pc
Press return to continue.

Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
Thu Aug 27 03:22:18 CEST 2009
a16:~# fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xa96ca96c

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          31      248976   83  Linux
/dev/hda2              32        9729    77899185   8e  Linux LVM

Disk /dev/dm-0: 77.0 GB, 76986449920 bytes
255 heads, 63 sectors/track, 9359 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 2780 MB, 2780823552 bytes
255 heads, 63 sectors/track, 338 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-1 doesn't contain a valid partition table
a16:~# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/dm-0              71G   16G   52G  23% /
tmpfs                1014M  8.0K 1014M   1% /lib/init/rw
udev                   10M  160K  9.9M   2% /dev
tmpfs                1014M   12K 1014M   1% /dev/shm
/dev/hda1             236M   30M  194M  14% /boot
a16:~#


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

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





More information about the Pkg-grub-devel mailing list