Can't access a music CD

Alexander Best arundel at freebsd.org
Thu Oct 13 23:53:02 UTC 2011


On Fri Oct 14 11, Polytropon wrote:
> On Thu, 13 Oct 2011 22:38:45 +0000, Alexander Best wrote:
> > On Fri Oct 14 11, Polytropon wrote:
> > > % ls /dev/acd0*
> > > /dev/acd0     /dev/acd0t04  /dev/acd0t08  /dev/acd0t12  /dev/acd0t16
> > > /dev/acd0t01  /dev/acd0t05  /dev/acd0t09  /dev/acd0t13  /dev/acd0t17
> > > /dev/acd0t02  /dev/acd0t06  /dev/acd0t10  /dev/acd0t14  /dev/acd0t18
> > > /dev/acd0t03  /dev/acd0t07  /dev/acd0t11  /dev/acd0t15  /dev/acd0t19
> > 
> > otaku% ls|grep cd
> > cd0
> > cdrom
> 
> % dmesg | grep ^acd
> acd0: DVDR <HL-DT-ST DVDRAM GSA-H42N/RL00> at ata1-master UDMA66 
> acd1: DVDROM <HL-DT-STDVD-ROM GDR8163B/0L30> at ata1-slave UDMA33
> 
> Those are parallel ATA drives, accessed by the ATAPI drivers.
> Because I can either access them as ATAPI drives as well as
> SCSI drives, they show up in both "subsystems":
> 
> % atacontrol list
> ATA channel 1:
>     Master: acd0 <HL-DT-ST DVDRAM GSA-H42N/RL00> ATA/ATAPI revision 7
>     Slave:  acd1 <HL-DT-STDVD-ROM GDR8163B/0L30> ATA/ATAPI revision 6
> 
> % camcontrol devlist
> <HL-DT-ST DVDRAM GSA-H42N RL00>    at scbus0 target 0 lun 0 (pass0,cd0)
> <HL-DT-ST DVD-ROM GDR8163B 0L30>   at scbus0 target 1 lun 0 (pass1,cd1)
> 
> In the kernel configuration, I have the following relevant
> settings:
> 
> # ATA and ATAPI devices
> device          ata
> device          atadisk         # ATA disk drives
> device          ataraid         # ATA RAID drives
> device          atapicd         # ATAPI CDROM drives
> device          atapifd         # ATAPI floppy drives
> device          atapist         # ATAPI tape drives
> options         ATA_STATIC_ID   # Static device numbering
> device          atapicam        # For "SCSI over ATA"
> 
> # SCSI peripherals
> device          scbus           # SCSI bus (required for SCSI)
> device          ch              # SCSI media changers
> device          da              # Direct Access (disks)
> device          sa              # Sequential Access (tape etc)
> device          cd              # CD
> device          pass            # Passthrough device (direct SCSI access)
> device          ses             # SCSI Environmental Services (and SAF-TE)
> options         SCSI_DELAY=100  # Delay (in ms) before probing SCSI [5000]
> 
> So I can use both /dev/cd0 and /dev/acd0 to access the same
> drive, just are required, e. g. /dev/cd0 (equals /dev/dvd
> for consistency with the growisofs manpage) for burning CDs,
> and /dev/acd0 for audio playback (when accessed with cdcontrol).
> 
> OS is x86 v8.2 STABLE of August 2011 with (obviously) custom
> kernel.
> 
> If I remember correctly, the cdcontrol utility talks to the
> ATAPI "subsystem" which now has been melted somehow with the
> ATAPICAM ("SCSI") way of accessing devices...

yeah. you have "device atapicam" in your config, which creates cam emulation
nodes under /dev and enables you to use cam specific software, such as
camcontrol, cdrecord or growisofs.

i'm running freebsd 10 and here the whole ata subsystem was merged into the
cam subsystem. so atacontrol doesn't report anything. so the ata subsystem
has been abandoned in favour of cam. that's why e.g. burncd is now unusable
under freebsd.

cheers.
alex

> 
> 
> 
> -- 
> Polytropon
> Magdeburg, Germany
> Happy FreeBSD user since 4.0
> Andra moi ennepe, Mousa, ...


More information about the freebsd-questions mailing list