Bug#544067: grub-pc: grub-probe: error: cannot find a device for /.

Luca Capello luca at pca.it
Fri Aug 28 13:36:41 UTC 2009


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

Hi there!

grub-pc gives an error and dpkg cannot upgrade it:
=====
Replacing config file /etc/default/grub with new version
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/sda
(hd1)   /dev/sdb
grub-probe: error: cannot find a device for /.

dpkg: error processing grub-pc (--configure):
 subprocess installed post-installation script returned error exit status 1
[...]
Setting up imagemagick (7:6.5.5.3-1) ...
Errors were encountered while processing:
 sysfsutils
 grub-pc
[master c9c2917] committing changes in /etc after apt run
[...]
E: Sub-process /usr/bin/dpkg returned an error code (1)
gismo:/etc#
=====

BTW, I do not have two hard disks on my machine, but only /dev/sda.

Thx, bye,
Gismo / Luca

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/mapper/vggismo-lvroot / ext3 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/sda1 /boot ext2 rw,relatime,errors=continue 0 0
/dev/dm-3 /home ext3 rw,relatime,errors=continue,data=ordered 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/sda
(hd1)	/dev/sdb
*********************** END /boot/grub/device.map

*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
set default=0
set timeout=5
set root=(hd0,1)
search --no-floppy --fs-uuid --set 6a994a07-ffb0-4843-b0c7-180175813b44
if loadfont /grub/ascii.pf2 ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  if terminal_output.gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, Linux 2.6.30-1-amd64" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set 6a994a07-ffb0-4843-b0c7-180175813b44
	linux	/vmlinuz-2.6.30-1-amd64 root=/dev/mapper/vggismo-lvroot ro panic=10 vga=792 quiet 
	initrd	/initrd.img-2.6.30-1-amd64
}
menuentry "Debian GNU/Linux, Linux 2.6.30-1-amd64 (recovery mode)" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set 6a994a07-ffb0-4843-b0c7-180175813b44
	linux	/vmlinuz-2.6.30-1-amd64 root=/dev/mapper/vggismo-lvroot ro single panic=10 vga=792 quiet
	initrd	/initrd.img-2.6.30-1-amd64
}
menuentry "Debian GNU/Linux, Linux 2.6.29-2-amd64" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set 6a994a07-ffb0-4843-b0c7-180175813b44
	linux	/vmlinuz-2.6.29-2-amd64 root=/dev/mapper/vggismo-lvroot ro panic=10 vga=792 quiet 
	initrd	/initrd.img-2.6.29-2-amd64
}
menuentry "Debian GNU/Linux, Linux 2.6.29-2-amd64 (recovery mode)" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set 6a994a07-ffb0-4843-b0c7-180175813b44
	linux	/vmlinuz-2.6.29-2-amd64 root=/dev/mapper/vggismo-lvroot ro single panic=10 vga=792 quiet
	initrd	/initrd.img-2.6.29-2-amd64
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file is an example on how to add custom entries
### END /etc/grub.d/40_custom ###
*********************** END /boot/grub/grub.cfg

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

Kernel: Linux 2.6.30-1-amd64 (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/dash

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]    1.5.27          Debian configuration management sy
ii  grub-common              1.96+20090826-3 GRand Unified Bootloader, version 
ii  libc6                    2.9-25          GNU C Library: Shared libraries
ii  ucf                      3.0021          Update Configuration File: preserv

grub-pc recommends no packages.

Versions of packages grub-pc suggests:
pn  desktop-base                  <none>     (no description available)
pn  genisoimage                   <none>     (no description available)

-- debconf information:
  grub-pc/kopt_extracted: false
* grub-pc/install_devices: /dev/sda
  grub-pc/postrm_purge_boot_grub: false
  grub-pc/linux_cmdline: fillme
* grub2/linux_cmdline: panic=10 vga=792 quiet
* grub2/linux_cmdline_default: quiet
  grub-pc/chainload_from_menu.lst: true
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20090828/4d3d30ed/attachment.pgp>


More information about the Pkg-grub-devel mailing list