Bug#541286: Update-grub guesses wrong root

Harald Braumann harry at unheit.net
Thu Aug 13 09:46:28 UTC 2009


On Thu, 13 Aug 2009 07:00:48 +0200
Felix Zielcke <fzielcke at z-51.de> wrote:

> Am Donnerstag, den 13.08.2009, 02:57 +0200 schrieb Harald Braumann:
> > Hi,
> > 
> > after updating grub-pc, the system was unbootable. The problem is,
> > that update-grub is run in postinst and it guesses the wrong boot
> > partition. I have a mixed IDE/SATA system and the disks are ordered
> > differently by the BIOS and Linux.
> 
> 
> That's why you sometimes have to fix /boot/grub/device.map yourself.
> It gets only recreated if you run grub-install with --recheck or
> directly grub-mkdevicemap.
> But anyway we use UUIDs in the default grub.cfg so it shouldn't matter
> how your disks are ordered in device.map
> The search --set --fs-uuid line sets the root variable to the device
> with that UUID.
> 

Something else must have been rotten, then. When I first booted after
the update, I was dropped in grub rescue immediately. The error message
was something like "symbol not found bz_<something>". None of the
commands, like `help', `search', etc. worked. Error was always
<command> not found.

I booted from USB and changed grub.cfg. I replaced "set root=(hd...)"
with "set root=SYSBOOT". Rebooted and it worked. So I was sure that
this was the cause.

However, I can not reproduce the error now. I tried to change grub.cfg
back to how it was before, but that works. I called update-grub and
that works, too.

I guess we have to close that bug as unreproducible.

Cheers,
harry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20090813/208c1c28/attachment-0001.pgp>


More information about the Pkg-grub-devel mailing list