From owner-freebsd-questions@freebsd.org Thu Aug 27 11:02:14 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 B6A899C2B33 for ; Thu, 27 Aug 2015 11:02:14 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7E1191247 for ; Thu, 27 Aug 2015 11:02:14 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-38-7.dynamic.qsc.de [92.195.38.7]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id D2C4B27890; Thu, 27 Aug 2015 13:02:05 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id t7RB257b005183; Thu, 27 Aug 2015 13:02:05 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Thu, 27 Aug 2015 13:02:05 +0200 From: Polytropon To: Raimund Sacherer Cc: FreeBSD Questions Subject: Re: how to assure that a certain device (e.g. /dev/pass1) always is /dev/pass1 on subsequent reboots? Message-Id: <20150827130205.455b4330.freebsd@edvax.de> In-Reply-To: <938335435.8523670.1440671907486.JavaMail.zimbra@logitravel.com> References: <1032086371.8518394.1440671626012.JavaMail.zimbra@logitravel.com> <938335435.8523670.1440671907486.JavaMail.zimbra@logitravel.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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, 27 Aug 2015 11:02:14 -0000 On Thu, 27 Aug 2015 12:38:27 +0200 (CEST), Raimund Sacherer wrote: > Hello, > > I need to make sure that certain devices always have their > corresponding device names (like /dev/pass1) assigned. I need > this for auto changers in our backup server (but not only there). > > I have vastly more linux knowledge and there you can for > example create udev rules which rename the device to what you > need. What is the equivalent way on FreeBSD? Loader hints? Yes. The file in question is /boot/device.hints. See "man 5 device.hints" for details. You should be able to "hard-wire" the device number with the physical device characteristica (address, irq and so on). https://www.freebsd.org/doc/handbook/device-hints.html -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...