On Wed, 2009-05-20 at 23:40 +0200, Christian Franke wrote: > The attached patch should fix this. It should also prevents misleading > error messages if a device does not exist. > > 2009-05-20 Christian Franke <fra...@computer.org> > > * disk/ata.c: (grub_ata_wait_not_busy): Add debug output of status > register. > (grub_ata_identify): Suppress error message if status register > is 0x00 after command failure. > (grub_device_initialize): Remove unsafe status register check. > Thanks to 'phcoder' for problem report and patch. > Prevent sign extension in debug message.
It helps detect CD-ROM under qemu. But on the real hardware, it introduces ghost drives. Without the patch, I have (ata7) for the SATA hard drive. With the patch, I have (ata7) for the SATA hard drive, (ata6) for the SATA DVD-RW and two bogus unreadable drives (ata0) and (ata1). -- Regards, Pavel Roskin _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel