Bug#542425: error: cannot find a device for /.

Felix Zielcke fzielcke at z-51.de
Fri Aug 28 10:57:53 UTC 2009


Am Freitag, den 28.08.2009, 11:47 +0200 schrieb Albin Stjerna:
> Package: grub-pc
> Version: 1.96+20090826-3
> Severity: normal
> 
> I'm having roughly the same problem as the earlier submitter. I'm using the standard "Encrypted LVM" setup, and I have upgraded both LVM and GRUB as adviced earlier, with no success. Though, I haven't rebooted yet, fearing the system would be unbootable.
> 
> 
> Output:
> 
> Setting up grub-pc (1.96+20090826-3) ...
> 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/hdc
> grub-probe: error: cannot find a device for /.
> 
> dpkg: error processing grub-pc (--configure):
>  subprocess installed post-installation script returned error exit status 1
> 
> 
> my /proc/mounts:

> /dev/mapper/nyx-root / ext3 rw,noatime,nodiratime,errors=remount-ro,data=ordered 0 0

If you'd have that problem then there should be /dev/dm-0 or something
like that instead of the /dev/mapper name.
Anyway your / is encrypted and grub2 doestn't support that yet.
In a previous upload upstream changed the default font from ascii.pf2 to
unicode.pf2 and I forgot to change the grub-pc.postinst so that the
unicode font gets copied to /boot
But you're using a fixed version.
Well make sure that /boot/grub/unicode.pf2 exists, if not then copy it
from /usr/share/grub
Else run `sh -x grub-mkconfig', maybe that tells why it wants to
access /
If not then you have to add `x' to the `#!/bin/sh -e' line in
every /etc/grub.d/ file and run again grub-mkconfig.






More information about the Pkg-grub-devel mailing list