bug-grub
[Top][All Lists]
Advanced

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

CDROM access broken?


From: Robert Millan
Subject: CDROM access broken?
Date: Wed, 30 Jun 2004 21:30:58 +0200
User-agent: Mutt/1.5.6+20040523i

Hi!

Sounds like cdrom access in GRUB is broken:

------------------------------------
grub> root (cd0)

Error 23: Error while parsing number
------------------------------------

I traced this to stage2/disk_io.c:

               || (*device == 'c' && cdrom_drive != GRUB_INVALID_DRIVE))
              && (device += 2, (*(device - 1) != 'd')))
            errnum = ERR_NUMBER_PARSING;

and then stage2/common.c:

    /* Get the geometry.  */
    if (get_diskinfo (boot_drive, &geom)
        || ! (geom.flags & BIOSDISK_FLAG_CDROM))
      cdrom_drive = GRUB_INVALID_DRIVE;
    else
      cdrom_drive = boot_drive;

I've been told that get_diskinfo interfaces directly with BIOS, and it
actualy seems like it is either returning non-0 or filling geom structure
with junk. Could someone clarify?

Also, are you people able to reproduce this bug? It happens on every box I
try so I doubt it's a BIOS bug, but who knows..

TIA

-- 
Robert Millan

"[..] but the delight and pride of Aule is in the deed of making, and in the
thing made, and neither in possession nor in his own mastery; wherefore he
gives and hoards not, and is free from care, passing ever on to some new work."

 -- J.R.R.T., Ainulindale (Silmarillion)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]