Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Jan 2003 01:25:53 -0500
From:      Garance A Drosihn <drosih@rpi.edu>
To:        Terry Lambert <tlambert2@mindspring.com>, Gordon Tetlow <gordont@gnf.org>
Cc:        arch@FreeBSD.ORG
Subject:   Re: CFR: Volume labels in FFS
Message-ID:  <p05200f19ba57dc40857f@[128.113.24.47]>
In-Reply-To: <3E31C4F5.972AA69C@mindspring.com>
References:  <20030124212259.GJ53114@roark.gnf.org> <p05200f17ba5764ef8e3a@[128.113.24.47]> <20030124215753.GM53114@roark.gnf.org> <20030124222718.GN53114@roark.gnf.org> <3E31C4F5.972AA69C@mindspring.com>

next in thread | previous in thread | raw e-mail | index | archive | help
At 2:57 PM -0800 1/24/03, Terry Lambert wrote:
>Gordon Tetlow wrote:
>  > > No, it actually creates device nodes in /dev/vol/<volname>,
>  > > 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=<foo> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p05200f19ba57dc40857f>