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

Felix Zielcke fzielcke at z-51.de
Fri Aug 28 14:13:46 UTC 2009


Am Freitag, den 28.08.2009, 15:36 +0200 schrieb Luca Capello:
> 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.

Just remove it from device.map if you want or run grub-mkdevicemap.

> 
> -- Package-specific info:
> 
> *********************** BEGIN /proc/mounts
> /dev/mapper/vggismo-lvroot / ext3 rw,relatime,errors=remount-ro,data=ordered 0 0
> /dev/dm-3 /home ext3 rw,relatime,errors=continue,data=ordered 0 0

Seems like the dmsetup upgrade went a bit wrong for you.
Check with `ls -l /dev/mapper/' if the files there are real devices or
symlinks to /dev/dm-?
If they're symlinks then this is #542435 which is actually caused by an
upstream dmsetup change: #542422
Though that has been fixed now but it seems like for some people just
upgrading the package and rebooting doestn't solve the problem.
In that case run `echo change > /sys/block/dm-?/uevent'
Replace the ? with every /dev/dm-* device you have.


-- 
Felix Zielcke
Proud Debian Maintainer






More information about the Pkg-grub-devel mailing list