From owner-freebsd-current@FreeBSD.ORG Sun Feb 8 16:30:37 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B0A816A4CE for ; Sun, 8 Feb 2004 16:30:37 -0800 (PST) Received: from postal2.es.net (proxy.es.net [198.128.3.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54A3C43D1D for ; Sun, 8 Feb 2004 16:30:37 -0800 (PST) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal2.es.net (Postal Node 2) with ESMTP (SSL) id IBA74465; Sun, 08 Feb 2004 16:30:36 -0800 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 332DC5D07; Sun, 8 Feb 2004 16:30:36 -0800 (PST) To: Jeff Elkins In-Reply-To: Message from Jeff Elkins of "Sun, 08 Feb 2004 16:56:17 EST." <200402081656.17726.bsd@elkins.org> Date: Sun, 08 Feb 2004 16:30:36 -0800 From: "Kevin Oberman" Message-Id: <20040209003036.332DC5D07@ptavv.es.net> cc: freebsd-current@freebsd.org Subject: Re: Using the ATAPI/CAM Driver X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Feb 2004 00:30:37 -0000 > From: Jeff Elkins > Date: Sun, 8 Feb 2004 16:56:17 -0500 > Sender: owner-freebsd-current@freebsd.org > > I've enabled the ATAPI/CAM driver in my kernel under freebsd 5.2 - this has > given me two devices: /dev/cd0 and /dev/cd1. Thus far, I'm able to burn > CDs/DVDs but I am having trouble mounting them (as root). > > If I issue the command: mount /cdrom or mount -t cd9660 /dev/cd0 /cdrom I > get the message: cd9660: /dev/cd0: Device not configured > > > However, if I comment out the /dev/cd devices in fstab and enable the acd > devices: > > /dev/acd0 /cdrom cd9660 ro,noauto 0 0 > /dev/acd1 /cdrom1 cd9660 ro,noauto 0 0 > #/dev/cd0 /cdrom cd9660 ro,noauto 0 0 > #/dev/cd1 /cdrom1 cd9660 ro,noauto 0 0 > > I'm able to mount w/o problems. I suspect it's a timing issue. The ATAPICAM driver does not create the cd devices until quite a while (about 10 seconds) after the disc is inserted. And there is no CD device when the drive is empty/open. This leads to a variety of annoyances, especially if you are using a tool that assumes too much, such as the permanent presence of the device so that its status can be checked. I really wish that the /dev/cdN devices were always present if the physical drive was present! -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634