Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Nov 1999 20:27:01 -0800 (PST)
From:      Annelise Anderson <andrsn@andrsn.stanford.edu>
To:        Christopher Michaels <ChrisMic@clientlogic.com>
Cc:        "FreeBSD Questions (E-mail)" <questions@FreeBSD.ORG>
Subject:   RE: vnconfig on bootup?
Message-ID:  <Pine.BSF.4.10.9911262005010.33281-100000@andrsn.stanford.edu>
In-Reply-To: <6C37EE640B78D2118D2F00A0C90FCB4401105DBF@site2s1>

next in thread | previous in thread | raw e-mail | index | archive | help


On Fri, 26 Nov 1999, Christopher Michaels wrote:

> Annelise,
> I didn't relize I was being vague.  Sorry.
> 
> What I'm looking to be able to do is just add entries in /etc/fstab so that
> my vnX devices are automatically mounted on startup (w/o causing errors of
> course).  I know I can just make a simple shell script that runs the
> specific mount commands, and I do know how to do that (although I'll admit I
> didn't even think of that at first).
> 
> I would just like to be able to edit /etc/fstab and have the devices
> automatically mounted on startup.  To me this should be an option.  One
> would not tell a user to make a shell script to mount any other kind of
> filesystem, whether it be UFS, NFS, MFS, MSDOS, CD9660, etc...  There is an
> option to start such things are vinum on startup as well.
> 
> So, since I know why it cannot be done in the current system, I would like
> to be able to start working on a solution that would allow one to set a
> variable in /etc/rc.conf such as vnconfig_all="YES".
> 
I'm not sure what your idea of "configuring" the devices is.  vnconfig -a
reads a file, by default /etc/vntab, that gives the details of the
configuration.  These details amount to saying that a particular device
node (say, vn0a) should be associated with a file, and that file should
be mounted /here or /there or used as swap.  And other optional details.

So all you have to do is fill out /etc/vntab and run vnconfig -a from
any convenient place, such as a script that runs on boot or is called on
boot, as mentioned in the last message.

I think that in the sense you are talking about, the device nodes are
"configured" in that they're ready for use if they exist and vn has 
been compiled into the kernel.
 
> I am by far not that experienced, but most replies to "I'd like to see this
> feature in FreeBSD" are "supply diffs".  So I'd like to show that I actually
> put some effort and thought into this solution.
> 
> Unfortunately I cannot put any work forward until I can figure out how to
> statically compile vnconfig.  Can you (or anyone for that matter) be so kind
> as to point me in the right direction for this?  I'm not asking for hand
> holding, just a pointer or two.

I think statically compiling vnconfig is entirely beside the point,
utterly irrelevant, and is a consequence of a misunderstanding of what
you want to accomplish.  How are you going to mount a file as file
system or swap from a partition that itself has not yet been mounted?

Do you have vn in the kernel?  Have you created the vn device nodes?
Have you tried doing something like mounting mfsroot.flp from your hard
drive as a file system?

	Annelise
> 
> Thank you,
> -Chris
> 
> P.S.  I really do appreciate your help thus far.
> 
> > -----Original Message-----
> > From:	Annelise Anderson [SMTP:andrsn@andrsn.stanford.edu]
> > Sent:	Friday, November 26, 1999 5:56 PM
> > To:	Christopher Michaels
> > Cc:	FreeBSD Questions (E-mail)
> > Subject:	RE: vnconfig on bootup?
> > 
> > 
> > 
> > On Fri, 26 Nov 1999, Christopher Michaels wrote:
> > 
> > > In other words, w/o making a script that explicitly mounts each mount
> > point,
> > > it can't be done.  This much I already know how to do, I was hoping for
> > some
> > > level of automation.
> > 
> > Maybe I haven't understood what you're trying to do.  But you can
> > do in a script whatever you can do at the command line.  And from
> > /usr/local/etc/rc.d, you can do it after all the disks are mounted.
> > And then you don't need to compile vnconfig statically, which 
> > doesn't help you with automation anyway, as far as I can tell.
> >  
> > > Just incase I feel like playing with this.  Can you (or someone else)
> > give
> > > me some pointers as to how to statically compile vnconfig (or any
> > program
> > > for that matter).
> > > 
> > > Thank you,
> > > -Chris
> > > 
> > Annelise
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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