From owner-freebsd-questions@freebsd.org Thu Oct 15 19:10:40 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8F3D9A1576F for ; Thu, 15 Oct 2015 19:10:40 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 54CF9A51 for ; Thu, 15 Oct 2015 19:10:39 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Zmnv4-0003AC-2r for freebsd-questions@freebsd.org; Thu, 15 Oct 2015 21:10:30 +0200 Received: from 65.75.36.70 ([65.75.36.70]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 Oct 2015 21:10:30 +0200 Received: from gyliamos by 65.75.36.70 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 Oct 2015 21:10:30 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Will Parsons Subject: Re: creating devices under a regular file system Date: Thu, 15 Oct 2015 19:10:21 +0000 (UTC) Lines: 34 Message-ID: References: <20151015020509.GA27010@neutralgood.org> Reply-To: gyliamos@gmail.com X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 65.75.36.70 User-Agent: slrn/1.0.2 (FreeBSD) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Oct 2015 19:10:40 -0000 On Wednesday, 14 Oct 2015 10:05 PM -0400, kpneal@pobox.com wrote: > On Wed, Oct 14, 2015 at 11:29:50PM +0000, Will Parsons wrote: >> I would like to know how to create a few selected devices >> (viz. dev/null and dev/urandom) under a regular directory tree using >> devfs. > > Did you see the devfs man page? "man 8 devfs" Yes, but I'm still puzzled. > You need to create a /etc/devfs.rules file creating a new ruleset that > lists what you want available. You need to add that new ruleset to devfs, > and then mount a new devfs in the appropriate place (~/FOSSIL/dev). OK, but where's that done? There's no devfs entry in /etc/fstab. > I have a devfs.rules file I cobbled together below. Note that I don't > know devfs very well _at all_, so if I've made any errors I hope someone > will chime in. > > [devfsrules_unhide_bind=5] > add hide > add path log unhide > add path null unhide > #add path zero unhide > #add path crypto unhide > add path random unhide > add path urandom unhide But those get created under /dev, so I guess I need another devfs to create devices under ~/FOSSIL/dev? -- Will