Re: Digital Audio Extraction with ATAPI drives far from perfect

Alan Cox
2006-01-07T19:16:28Z

On Sad, 2006-01-07 at 15:08 +0100, Sebastian wrote:
> You wrote about accessing the drive with SG_IO while using ide-cd. So it
> is possible to use scsi commands though using ide-cd? I can't find any
> documentation on that, though. Could you point me towards it? I can try
> to adapt cdparanoia.

In 2.6 yes. The SG_IO ioctl works on any block device fd. The commands
you can issue then depend upon the mode of opening. Some commands
require root, generally safe ones read or write access.

Due to bugs still present in the block layer its also the only way to
reliably copy a data CD as well.

Alan