From owner-freebsd-questions@FreeBSD.ORG Tue Oct 26 06:13: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 AF9AA16A4CE for ; Tue, 26 Oct 2004 06:13:58 +0000 (GMT) Received: from fri.itea.ntnu.no (fri.itea.ntnu.no [129.241.7.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C05C43D41 for ; Tue, 26 Oct 2004 06:13:58 +0000 (GMT) (envelope-from svein-freebsd-questions@theloosingend.net) Received: from localhost (localhost [127.0.0.1]) by fri.itea.ntnu.no (Postfix) with ESMTP id D2BB9806B for ; Tue, 26 Oct 2004 08:13:56 +0200 (CEST) Received: from mirrorball.thelosingend.net (m069c.studby.ntnu.no [129.241.130.69]) by fri.itea.ntnu.no (Postfix) with SMTP for ; Tue, 26 Oct 2004 08:13:56 +0200 (CEST) Received: (qmail 72620 invoked from network); 26 Oct 2004 06:13:56 -0000 Received: from m190d.studby.ntnu.no (129.241.131.190) by m069c.studby.ntnu.no with QMQP; 26 Oct 2004 06:13:56 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 26 Oct 2004 06:13:54 -0000 Date: Tue, 26 Oct 2004 08:13:54 +0200 (CEST) From: Svein Halvor Halvorsen X-X-Sender: sveinhal@maren.thelosingend.net To: Eric Thornton In-Reply-To: <417D32A0.7090807@nc.rr.com> Message-ID: <20041026081154.Q27291@maren.thelosingend.net> References: <417D32A0.7090807@nc.rr.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Content-Scanned: with sophos and spamassassin at mailgw.ntnu.no. cc: freebsd-questions@freebsd.org Subject: Re: refreshing /dev direcotry to show CD tracks X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Oct 2004 06:13:58 -0000 [Eric Thornton, 2004-10-25] > I'm trying to figure out how to update the /dev directory after inserting a > CD to show the CD's tracks. The /dev direcotry does list the CD tracks > (/dev/acd0t01...02...) but only after i try to access the disk erroneously > through mount /cdrom. I have a shell script that can dump the tracks once > they've appeared, but my script dies when the filenames arent present. Is > there a command that will "refresh" the direcory after CD is inserted? This doesn't give you a general solution to your problem, but issuing # cdcontrol -f /dec/acd0 info ...will work in your specific case. SVein Halvor