From owner-freebsd-arch Fri Jan 24 22:28:31 2003 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 199A037B405 for ; Fri, 24 Jan 2003 22:28:30 -0800 (PST) Received: from mail.rpi.edu (mail.rpi.edu [128.113.2.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 46C5843ED8 for ; Fri, 24 Jan 2003 22:28:03 -0800 (PST) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.12.1/8.12.1) with ESMTP id h0P6PsIm153614; Sat, 25 Jan 2003 01:25:56 -0500 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <3E31C4F5.972AA69C@mindspring.com> References: <20030124212259.GJ53114@roark.gnf.org> <20030124215753.GM53114@roark.gnf.org> <20030124222718.GN53114@roark.gnf.org> <3E31C4F5.972AA69C@mindspring.com> Date: Sat, 25 Jan 2003 01:25:53 -0500 To: Terry Lambert , Gordon Tetlow From: Garance A Drosihn Subject: Re: CFR: Volume labels in FFS Cc: arch@FreeBSD.ORG Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: MIMEDefang 2.3 (www dot roaringpenguin dot com slash mimedefang) Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 2:57 PM -0800 1/24/03, Terry Lambert wrote: >Gordon Tetlow wrote: > > > No, it actually creates device nodes in /dev/vol/, > > > so it be more like this: > > > >> > /dev/vol/rootfs / ufs rw 1 1 > > > /dev/vol/usrfs /usr ufs rw 2 2 > > > ...etc... >> > > > > I didn't go the Linux route and do LABEL= because there is > > > alot of black magic in the loader that reads /etc/fstab looking > > > for the root partition and I didn't want to mess with fstab.h > > > and friends. > > > > I can also forsee being able to hook into devd to do some > > automounting magic for things like zip disks and cdroms > > (obviously not with FFS, but cd9660 support would be a good > > thing to have once GEOM recognizes cdroms). > >That's what "Last mounted on" is for. > >Gotta wonder why we need volume devices, when we know where we >are going to mount the thing... Actually, now that I know how it's going to work, I like it. In my mind this is much better than "last mounted on". The problem I'd like to solve is when I've got my PC disks set up to multi-boot between several different freebsd systems (4.x, 5.x, 5.x-backup, etc). I've had up to eight different freebsd systems defined on a single PC, and when I switch from 4.x to 5.x, I sure as hell don't want to take /usr from 4.x and remount it as /usr when I reboot into 5.x just because it was last-mounted-as /usr on 4.x. If I understand this right, I will be able to label the partition "usr4x", and in /etc/fstab for 4.x I'd have: /dev/vol/usr4x /usr ufs rw 2 2 while the /etc/fstab on 5.x would have: /dev/vol/usr4x /x4x/usr ufs rw 3 3 If so, then I very much like this idea. -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message