From owner-freebsd-mobile@FreeBSD.ORG Tue Sep 28 20:00:19 2004 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A243516A4CF for ; Tue, 28 Sep 2004 20:00:19 +0000 (GMT) Received: from postal1.es.net (postal1.es.net [198.128.3.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D66643D1D for ; Tue, 28 Sep 2004 20:00:19 +0000 (GMT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal1.es.net (Postal Node 1) with ESMTP (SSL) id IBA74465; Tue, 28 Sep 2004 13:00:19 -0700 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 021DA5D0A; Tue, 28 Sep 2004 13:00:19 -0700 (PDT) To: Radek Kozlowski In-reply-to: Your message of "Tue, 28 Sep 2004 21:24:24 +0200." <20040928192424.GH62265@werd> Date: Tue, 28 Sep 2004 13:00:18 -0700 From: "Kevin Oberman" Message-Id: <20040928200019.021DA5D0A@ptavv.es.net> cc: Jochen Gensch cc: freebsd-mobile@FreeBSD.org Subject: Re: FreeBSD 5.3-BETA6 available X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2004 20:00:19 -0000 > Date: Tue, 28 Sep 2004 21:24:24 +0200 > From: Radek Kozlowski > > On Tue, Sep 28, 2004 at 10:01:31AM -0700, Kevin Oberman wrote: > > > > And, do you know if devfs.rules can create links such as are created > > > > by devfs.conf? I want to have /dev/cdrom and /dev/dvd symlinked to my > > > > DVD drive when I attach it. > > > > > > I think devfs.conf is the right place for it (assuming /dev/acd0 is your > > > dvd drive): > > > > > > link acd0 dvd > > > link acd0 cdrom > > > > I think you missed my point on the creation of symlinks. I have them in > > devfs.conf, but those operations are only done at boot time. If I have > > no DVD in my system at boot time and add one later, I need to manually > > create the symlinks. > > Well, for me it's different and I just checked on my system to verify it > - dvd and cdrom symlinks were created at boot time even though there was > no media inside, and continue to exist after mounting and umounting a > cdrom. I'm afraid that you're still missing the point. I'm not talking about media. The DRIVE is not present at boot time. No /dev/acd0 to point the symlink to. I insert the drive and use atacontrol(8) to connect and /dev/acd0 appear, but no /dev/cdrom. In some platforms ATA disk drives are just as removable as USB devices. That's why I thought that devd might be the right approach. -- 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