From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 15 02:25:06 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 349CD1065672 for ; Tue, 15 Jul 2008 02:25:06 +0000 (UTC) (envelope-from tapan.list@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by mx1.freebsd.org (Postfix) with ESMTP id B20228FC0C for ; Tue, 15 Jul 2008 02:25:05 +0000 (UTC) (envelope-from tapan.list@gmail.com) Received: by nf-out-0910.google.com with SMTP id h3so1888969nfh.33 for ; Mon, 14 Jul 2008 19:25:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=smaQ8TfSCx6YVNMF9qmHuRKlGCed4nVqWO4K+fcFmTE=; b=d5XzaqcWDy04ZS9oslhENRRNXx1Aec+Le8Tx6TdTUfZKZHnk36NCychtNO4MADv/O0 CtH0UbcC8qFEGj+I7xSs/x8/15xsuWEG8U61sqoCKUDeiQeS5Pcz7H+/Go09c4xdGeif UptfhNDuloTPi+L6dby0uFaqy0AUa8yfTHQRM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=ho+Mcz4+tuPCHYC/HhIhBVQQqJ8/967gm7jPlf9+3mU+odwMD+gSjBJzcqAqQ5qMmC Bf4gSphLqiIliitxVc95d7tAPOBSa9NE+XE36bf8ALKelu52nvRRnQP4ZIzr7pXqfjw0 El6DpaLRdXa0H3bFLmRpz3oGWHf/Pl64htUeA= Received: by 10.103.24.11 with SMTP id b11mr8443494muj.77.1216088704189; Mon, 14 Jul 2008 19:25:04 -0700 (PDT) Received: by 10.103.227.19 with HTTP; Mon, 14 Jul 2008 19:25:04 -0700 (PDT) Message-ID: <482257ad0807141925m37c5b46bqa65c33852078b6f8@mail.gmail.com> Date: Tue, 15 Jul 2008 07:55:04 +0530 From: "Tapan Chaudhari" To: freebsd-hackers@freebsd.org In-Reply-To: <20080714165747.6c12371b@bhuda.mired.org> MIME-Version: 1.0 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> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Can I change the device of the "/" mount point at boot time. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2008 02:25:06 -0000 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 wrote: > On Tue, 15 Jul 2008 01:40:24 +0530 > "Tapan Chaudhari" 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 Meyer > 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 >