From owner-freebsd-questions@FreeBSD.ORG Wed Jul 8 21:46:11 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B89651065672 for ; Wed, 8 Jul 2009 21:46:11 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 78E168FC14 for ; Wed, 8 Jul 2009 21:46:11 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r55.edvax.de (port-92-195-64-14.dynamic.qsc.de [92.195.64.14]) by mx01.qsc.de (Postfix) with ESMTP id 3ED783D149; Wed, 8 Jul 2009 23:46:09 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id n68Lk31u001885; Wed, 8 Jul 2009 23:46:04 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Wed, 8 Jul 2009 23:46:03 +0200 From: Polytropon To: "Sagara Wijetunga" Message-Id: <20090708234603.1bc9b315.freebsd@edvax.de> In-Reply-To: <20090708123342.22660.qmail@us1.tomahawkonline.net> References: <20090708123342.22660.qmail@us1.tomahawkonline.net> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: How to symlink devfs devices? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jul 2009 21:46:12 -0000 On Wed, 08 Jul 2009 07:33:42 -0500, "Sagara Wijetunga" wrote: > Hi > > Is it possible to create a symlink to a device and use the symlink in place > of the real device name in FreeBSD, especially in version 7.2? > > 1. A disk > /dev/camera -> /dev/da0s1 > > 2. A network device > re0 -> lan0 That's no problem: Use the "link" statement: "link ", such as link da0s1 camera link re0 lan0 in you /etc/devfs.conf file. See the manual page for this file for more information, or see the example entries in this file. -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...