[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#525416: grub assigns wrong disk ids



On Fri, Apr 24, 2009 at 01:26:17PM -0300, Otavio Salvador wrote:
> > Most annoying issue (__also present with Lenny version__) was the system
> > failing to give correct hard disks ids to grub. Explanation: the system
> > identified /dev/hda as first disk, /dev/sda as second, /dev/sdb as
> > third. On normal boot /dev/sda is hd0 which clearly broke grub setup.
> > Had to manually edit menu.lst to replace hd1 with hd0, would be nice to
> > have a "manually verify grub settings" option
> 
> Robert, any idea why this happens? I've not followed the bugs in grub
> so would be nice if you could comment on this.

It happens because we're guessing how BIOS enumerates drives, which is bound
to break in situations like these.

The solution is to use UUIDs to identify the filesystems we want to access.  I
implemented UUID-based search paths for every disk access in the whole boot
process, just use GRUB 2 and it'll resolve this fine.

You might want to check for this specific case to enable GRUB 2, untill we're
ready to make it the default.

-- 
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."



Reply to: