Bug#586815: grub-probe: error: cannot find a device for / is still a problem with dmcrypt, lvm2 and /dev/sda

Colin Watson cjwatson at debian.org
Tue Jul 13 02:08:46 UTC 2010


On Mon, Jun 28, 2010 at 10:44:03PM +0200, Michael Ostermeier wrote:
>>> But the old setup was still better. On the new one:
>>>
>>> * it still complains not to find /dev/hda
>
> it’s here:
>
> # apt-get --reinstall install grub-pc/unstable
> Vorbereiten zum Ersetzen von grub-pc 1.98+20100617-1
> (durch .../grub-pc_1.98+20100617-1_i386.deb) ... Entpacke Ersatz für
> grub-pc ... Verarbeite Trigger für man-db ...
> Richte grub-pc ein (1.98+20100617-1) ...
> /usr/sbin/grub-probe: error: cannot stat `/dev/hda'.
> Generating grub.cfg ...
> Found background: /boot/grub/gnu.png
> Found background image: moreblue-orbit-grub.png
> Found linux image: /boot/vmlinuz-2.6.32-5-686
> Found initrd image: /boot/initrd.img-2.6.32-5-686
> Found linux image: /boot/vmlinuz-2.6.32-3-686
> Found initrd image: /boot/initrd.img-2.6.32-3-686
> done
>
>> Could you please send me the output of:
>>
>>   sh -x /usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg

So according to your output above, this test was actually less than
entirely helpful.  Upgrading to 1.98+20100702-1 or newer, ideally
1.98+20100710-1, should have sorted this part of your problem out (it
looks like you had a stale device path lying around in the debconf
database); could you please confirm that?

>>> * the background-picture is still not displayed
>>> * the resolution of the screen is still bad until the kernel is setting
>>>   the font later during booting
>>
>> vga= doesn't work with the 32-bit boot protocol now used by GRUB 2.  You
>> can use GRUB_GFXPAYLOAD_LINUX (see 'info grub' in unstable; there are
>> caveats)
>
> Ok, thank you. I should have seen the deprecated warning myself.
>
> But neither GRUB_GFXPAYLOAD_LINUX=keep in combination with
> GRUB_GFXMODE=0x105 nor GRUB_GFXPAYLOAD_LINUX=1024x768x8 worked.

GRUB_GFXMODE=1024x768 is more likely to work with
GRUB_GFXPAYLOAD_LINUX=keep; you can't use hexadecimal mode numbers from
vga= in GRUB_GFXMODE.

-- 
Colin Watson                                       [cjwatson at debian.org]





More information about the Pkg-grub-devel mailing list