Re: IDE CDROM problems -- No medium found -- 2.4.12-ac3

Enrico Scholz (enrico.scholz@informatik.tu-chemnitz.de)
18 Oct 2001 02:03:42 +0200


--=-=-=

sarnold@wirex.com (Seth Arnold) writes:

> [...]
> mount will sometimes give:
> [...]
> $ mount /mnt/cdrom
> mount: No medium found

ide-cd.c is broken since 2.4.1 and gives bad status reports on most
ATAPI drives. Perhaps the attached patch helps...

Enrico

--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment; filename=patch-cdrom.diff

--- linux/drivers/ide/ide-cd.c.orig Tue May 29 11:24:24 2001
+++ linux/drivers/ide/ide-cd.c Tue May 29 11:25:44 2001
@@ -2319,10 +2319,7 @@
* any other way to detect this...
*/
if (sense.sense_key == NOT_READY) {
- if (sense.asc == 0x3a && (!sense.ascq||sense.ascq == 1))
- return CDS_NO_DISC;
- else
- return CDS_TRAY_OPEN;
+ if (sense.asc == 0x3a) return CDS_TRAY_OPEN;
}

return CDS_DRIVE_NOT_READY;

--=-=-=--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/