-
-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Labels
Description
When running cd-paranoia -d <device> -Q on a CD-ROM drive that exists but has no disc inserted, the command enters an infinite loop, continuously printing ++ WARN: error in ioctl CDROMREADTOCHDR: No medium found messages without ever terminating.
This behavior differs from the original cdparanoia (from Xiph.org), which immediately prints "Unable to open disc" and exits.
I would be happy if you could fix it so that it stops so that I can simply migrate programs from cdparanoia.
$ cdparanoia -d /dev/sr1 -vQ
cdparanoia III release 10.2 (September 11, 2008)
Using cdda library version: 10.2
Using paranoia library version: 10.2
Checking /dev/sr1 for cdrom...
Testing /dev/sr1 for SCSI/MMC interface
SG_IO device: /dev/sr1
CDROM model sensed sensed: Optiarc DVD RW AD-7290H 1.S0
Checking for SCSI emulation...
Drive is ATAPI (using SG_IO host adaptor emulation)
Checking for MMC style command set...
Drive is MMC style
004: Unable to read table of contents header
Unable to open disc. Is there an audio CD in the drive?
$
$ cd-paranoia -d /dev/sr1 -vQ
cdparanoia III release 10.2 libcdio 2.1.0 x86_64-pc-linux-gnu
(C) 2001 Monty <monty@xiph.org> and Xiphophorus
(C) 2004, 2005, 2008 Rocky Bernstein <rocky@gnu.org>
(C) 2014 Robert Kausch <robert.kausch@freac.org>
Report bugs to bug-libcdio@gnu.org
Using cdda library version: 10.2+2.0.2 x86_64-pc-linux-gnu
Using paranoia library version: 10.2+2.0.2 x86_64-pc-linux-gnu
Checking /dev/sr1 for cdrom...
CDROM sensed: Optiarc DVD RW AD-7290H 1.S0 SCSI CD-ROM
++ WARN: error in ioctl CDROMREADTOCHDR: No medium found
Attempting to determine drive endianness from data...++ WARN: error in ioctl CDROMREADTOCHDR: No medium found
++ WARN: error in ioctl CDROMREADTOCHDR: No medium found
++ WARN: error in ioctl CDROMREADTOCHDR: No medium found
.++ WARN: error in ioctl CDROMREADTOCHDR: No medium found
Cannot determine CDROM drive endianness.
Attempting to set cdrom to full speed...
drive returned OK.
Table of contents (audio tracks only):
track length begin copy pre ch
===========================================================
++ WARN: error in ioctl CDROMREADTOCHDR: No medium found
++ WARN: error in ioctl CDROMREADTOCHDR: No medium found
++ WARN: error in ioctl CDROMREADTOCHDR: No medium found
++ WARN: error in ioctl CDROMREADTOCHDR: No medium found
++ WARN: error in ioctl CDROMREADTOCHDR: No medium found
400: Device not open
400: Device not open
++ WARN: error in ioctl CDROMREADTOCHDR: No medium found
0. 1 [00:00.01] -400 [00:-5.-25] no no 4
++ WARN: error in ioctl CDROMREADTOCHDR: No medium found
++ WARN: error in ioctl CDROMREADTOCHDR: No medium found
(endless)
Reactions are currently unavailable