Date: Tue, 15 Jul 2008 07:55:04 +0530 From: "Tapan Chaudhari" <tapan.list@gmail.com> To: freebsd-hackers@freebsd.org Subject: Re: Can I change the device of the "/" mount point at boot time. Message-ID: <482257ad0807141925m37c5b46bqa65c33852078b6f8@mail.gmail.com> In-Reply-To: <20080714165747.6c12371b@bhuda.mired.org> References: <482257ad0807141106m679ec19frd853339637d27a2d@mail.gmail.com> <20080714184030.GA62288@eos.sc1.parodius.com> <482257ad0807141218l26cbb95aid91414a3c88a121c@mail.gmail.com> <20080714153653.59ecb307@bhuda.mired.org> <482257ad0807141310h3381a97dif17290aed1133cfe@mail.gmail.com> <20080714165747.6c12371b@bhuda.mired.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Thank You Mateusz and Mike. I guess I am clear with my doubt now. I will also go through the man pages to go into depth of it. Thanks, --Tapan. On Tue, Jul 15, 2008 at 2:27 AM, Mike Meyer <mwm@mired.org> wrote: > On Tue, 15 Jul 2008 01:40:24 +0530 > "Tapan Chaudhari" <tapan.list@gmail.com> wrote: > > > Hi, > > Thanks a lot Mike. But the problem is the device I am talking about is > > not the physical device. I am writing a driver which will create a > virtual > > device and all the i/os done on this virtual device will be ultimately > > redirected to the original device. Correct me if I am wrong, but I guess > the > > loader will try to mount my new device on '/' and then load the modules > into > > the kernel. Since my driver would not be loaded at that point in time, it > > will fail to even mount '/'. Am I right? Or can our drivers get loaded > > before loader mounts '/' ? > > You gotta keep your "/"'s straight. The kernel will boot of off a > physical devices - pretty much required. At that point, you can use > boot.config to load modules from that device, including any needed to > keep your driver happy. Set the vsf.root.mountfrom to tell the kernel > what where to find what's going to become the root file system when it > gets to that point. > > The process is documented in the man pages, starting with say > boot(8). Read through that and some of the "SEE ALSO" pages. > > <mike > -- > Mike Meyer <mwm@mired.org> > http://www.mired.org/consulting.html > Independent Network/Unix/Perforce consultant, email for more information. > > O< ascii ribbon campaign - stop html mail - www.asciiribbon.org >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?482257ad0807141925m37c5b46bqa65c33852078b6f8>