Re: [libata] CD on PATA: "ReadCD MMC 12" command fails

From: Matthias Andree
Date: Sat Feb 25 2006 - 10:11:35 EST


On Fri, 24 Feb 2006, =?ISO-8859-2?Q?V=EDt=ECzslav?= Samel wrote:

> I'm trying to rip some music CD with cdda2wav, but that fails. I have "LG
> GSA-4165B" (PATA drive) connected on 8086:24db (Intel ICH5 IDE controller)
> using ata_piix.
>
> cdda2wav first fails with ENOMEM (16 times) and then with EDOM till the end of
> the track in response to the "ReadCD MMC 12" (code 0xbe) SG_IO command (see
> attached output and strace). Ripping on plain SCSI CD drive works OK.
>
> Tested on 2.6.16-rc4 and alans 2.6.16-rc4-ide2. I also applied your fix
> mailed to LKML on Tue, 21 Feb 2006 00:17:14 -0500.

Is cdda2wav installed setuid-root? If so, try removing that flag and
running cdda2wav with sudo. The ENOMEM might be related to libscg
making bogus assumptions about mlockall().

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