From owner-freebsd-questions@FreeBSD.ORG Mon Jan 12 11:04:58 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE30516A4CE for ; Mon, 12 Jan 2004 11:04:58 -0800 (PST) Received: from smtp5.wanadoo.nl (smtp5.wanadoo.nl [194.134.35.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 77A5743D1D for ; Mon, 12 Jan 2004 11:03:23 -0800 (PST) (envelope-from znerd@FreeBSD.org) Received: from 10.0.0.153 (db-c-1b11d.adsl.wanadoo.nl [81.69.207.29]) by smtp5.wanadoo.nl (Postfix) with ESMTP id 666F37804D; Mon, 12 Jan 2004 20:02:44 +0100 (CET) From: Ernst de Haan To: David Fleck , questions@freebsd.org Date: Mon, 12 Jan 2004 20:03:37 +0000 User-Agent: KMail/1.5.4 References: <200401062310.40460.znerd@FreeBSD.org> <20040109074040.P2988@grond.sourballs.org> In-Reply-To: <20040109074040.P2988@grond.sourballs.org> X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200401122003.38279.znerd@FreeBSD.org> Subject: Re: Problem with amd (automount daemon) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jan 2004 19:04:58 -0000 Still haven't completely figured out what the solution is, but I think I know what's happening: - kscd is hanging to the drive, even though there is no audio CD in there - amd fails at the first attempt to read /dev/cd0c and fails on succeeding calls However, even if I reload amd with 'killall -HUP amd' it doesn't show anything below /mnt/cdrom/. Perhaps there is some other file locked? > > I've got a problem with amd. This is the error I get when I access my > > CD-ROM drive at /mnt/cdrom/: [...] > Is amd running, and with what arguments? What does your /etc/amd.conf > file look like? Are portmap and nfsiod running? It has to be running, otherwise I wouldn't get the error messages, I presume.. This is in my /etc/rc.conf: portmap_enable="YES" amd_enable="YES" amd_flags="-a /.amd_mnt -c 3636 -l syslog /host /etc/amd.map" And indeed it's running: $ ps -ax | grep amd 88 ?? Is 0:00.02 amd -p -a /.amd_mnt -c 3636 -l syslog /host /etc/ amd.map > Also, I've found that at least some CD audio playing programs, like ascd, > will hang onto the cd device even when they aren't playing and there's no > audio CD in the tray. If I try to access a data CD after playing an > audio CD, I will get the error you see unless I kill the CD-playing > program. I did that and indeed kscd was hanging on it. I killed it and tried fstat again, and now I get: $ fstat /dev/rcd0c USER CMD PID FD MOUNT INUM MODE SZ|DV R/W NAME Nothing. Yet if I try to access /mnt/cdrom nothing happens. Ernst