From owner-freebsd-stable@FreeBSD.ORG Mon Nov 29 14:06:57 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B6B716A4CE for ; Mon, 29 Nov 2004 14:06:57 +0000 (GMT) Received: from acampi.inet.it (acampi.inet.it [213.92.1.165]) by mx1.FreeBSD.org (Postfix) with ESMTP id E8C9D43D1F for ; Mon, 29 Nov 2004 14:06:56 +0000 (GMT) (envelope-from andrea@acampi.inet.it) Received: by acampi.inet.it (Postfix, from userid 1000) id 2DD161A; Mon, 29 Nov 2004 15:06:56 +0100 (CET) Date: Mon, 29 Nov 2004 15:06:56 +0100 From: Andrea Campi To: Michael Grant Message-ID: <20041129140655.GB31719@webcom.it> References: <20041129101033.GH98559@grant.org> <200411292133.25842.doconnor@gsoft.com.au> <20041129122059.GI98559@grant.org> <20041129123958.GA31719@webcom.it> <20041129135138.GK98559@grant.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041129135138.GK98559@grant.org> User-Agent: Mutt/1.5.6i cc: freebsd-stable@freebsd.org Subject: Re: bios disk numbers and device names X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Nov 2004 14:06:57 -0000 On Mon, Nov 29, 2004 at 08:51:38AM -0500, Michael Grant wrote: > Thanks, that seems like it will work perfectly. Do you know if I can > boot a root device on say /dev/ufs/root? > > tunefs -L root /dev/da0a > > then in my fstab: > /dev/ufs/root / ufs rw 1 1 Don't know. > Also, what is the difference between dong 'glabel lable -v root' and > 'tunefs -L root'? It appears from the man page that one creates a > /dev/label/root and the other creates a /dev/ufs/root. > > Where can I learn more about /dev/label and /dev/ufs? Thanks again. The manpage explains it all, and that's all I know as well. glabel specifies a transient label, i.e. it's not saved on the disk, so you loose it on reboot or if the disk goes away. If you need to know more... use the source Luke, use the source. ;-) Andrea > > Michael Grant > > > On Mon, Nov 29, 2004 at 01:39:58PM +0100, Andrea Campi wrote: > > On Mon, Nov 29, 2004 at 07:21:00AM -0500, Michael Grant wrote: > > > Has anyone thought about this problem? Is there some spare space in > > > the label that could be used for a device name that, if set, could > > > be used in place of (or an alias for) a name like da0? > > > > GEOM_LABEL is what you're looking for. Check the glabel(8) man > > page. In a nutshell, you'd do this: > > > > tunefs -L log /dev/ad1s1a > > tunefs -L db /dev/da4s1a > > tunefs -L www /dev/da4s1a > > ... > > > > mount /dev/ufs/log /mnt/log > > mount /dev/ufs/db /mnt/db > > mount /dev/ufs/www /mnt/www > > > > (you get the idea). Obviously you can move use the /dev/ufs/* > > devices in fstab as well. > > > > If later on you move the filesystems to a different device while > > retaining the label (which means no tar, you have to use dd or > > dump/restore), everything works. > > > > Hope it helps. Bye, > > Andrea > > > > -- > > Give a man a fish and you feed him for a day; > > teach him to use the Net and he won't bother you for weeks. > -- Give a man a fish and you feed him for a day; teach him to use the Net and he won't bother you for weeks.