Bug#463391: update-grub: wrong root device

Robert Millan rmh at aybabtu.com
Thu Jan 31 19:02:44 UTC 2008


retitle 463391 grub.cfg processing doesn't stop when errors are found
thanks

On Thu, Jan 31, 2008 at 01:02:35PM +0200, Khaled Hosny wrote:
> Package: grub2
> Version: 1.95+20080128-1
> Severity: normal
> 
> update-grub sets my root partition to (hd1,0), however when grub boot it
> seems to always consider the booting disk as (hd0). device.map files
> maps my sda disk to hd1, this seems to be the cause of the problem.

Unfortunately when you have multiple disks of different types, like you do,
there's no perfect way to figure out what number will the bios assign to
each one.  It'll be possible to improve this in the future (by not using
the bios), but this will take time.

The solution for these situations is to edit device.map.

> Now,
> when booting grub fails to load the font file for gfxterm and the
> background image, leaving me with a pinkish screen with no visible text
> making it impossible to even boot manually. I've to use a livecd and
> change hd1 to hd0 in order to boot again.

Error handling in the scripting engine clearly can be improved.  I'll keep
this bug open for that purpose.

Thanks

-- 
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)





More information about the Pkg-grub-devel mailing list