From owner-freebsd-questions@FreeBSD.ORG Thu Oct 13 23:00:18 2011 Return-Path: Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 300BA1065679 for ; Thu, 13 Oct 2011 23:00:18 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id D61618FC14 for ; Thu, 13 Oct 2011 23:00:04 +0000 (UTC) Received: from r56.edvax.de (port-92-195-41-66.dynamic.qsc.de [92.195.41.66]) by mx01.qsc.de (Postfix) with ESMTP id A58D93CE75; Fri, 14 Oct 2011 01:00:02 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id p9DN02Be001885; Fri, 14 Oct 2011 01:00:02 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Fri, 14 Oct 2011 01:00:02 +0200 From: Polytropon To: Alexander Best Message-Id: <20111014010002.3fa2713c.freebsd@edvax.de> In-Reply-To: <20111013223845.GA28792@freebsd.org> References: <4E92BF3C.8080807@centurytel.net> <20111010104450.GA28895@orange.esperance-linux.co.uk> <4E9616FD.5080404@centurytel.net> <447h49yed0.fsf@lowell-desk.lan> <4E9627A6.8000907@centurytel.net> <44vcrtohej.fsf@lowell-desk.lan> <20111013162524.GA75476@freebsd.org> <20111013202456.3b59d88c.freebsd@edvax.de> <20111013220329.GA22983@freebsd.org> <20111014002726.b16c9a5a.freebsd@edvax.de> <20111013223845.GA28792@freebsd.org> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Subject: Re: Can't access a music CD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2011 23:00:18 -0000 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 at ata1-master UDMA66 acd1: DVDROM 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 ATA/ATAPI revision 7 Slave: acd1 ATA/ATAPI revision 6 % camcontrol devlist at scbus0 target 0 lun 0 (pass0,cd0) 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... -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...