Date: Tue, 15 Jul 2008 00:48:42 +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: <482257ad0807141218l26cbb95aid91414a3c88a121c@mail.gmail.com> In-Reply-To: <20080714184030.GA62288@eos.sc1.parodius.com> References: <482257ad0807141106m679ec19frd853339637d27a2d@mail.gmail.com> <20080714184030.GA62288@eos.sc1.parodius.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is not exactly what I wanted. I will try to elaborate myself. I am creating my own device which will act as a new boot slice which must be mounted as '/'. New device will process i/o calls and then redirect the i/o calls to original device of '/'. Now since I cannot unmount '/' and mount it again with my new device while system is running, I will have to find a way to tell kernel to mount my new device as '/' from next time onwards it boots. does anyone have suggestions on this? Thanks, --Tapan. On Tue, Jul 15, 2008 at 12:10 AM, Jeremy Chadwick <koitsu@freebsd.org> wrote: > On Mon, Jul 14, 2008 at 11:36:52PM +0530, Tapan Chaudhari wrote: > > Hi All, > > I am new to FreeBSD and this mailing list as well. > > What I want to achieve is change the device of my mount point '/'(or any > > other mount point) after I reboot the machine. I have some knowledge > about > > initrd in Linux in which I can change the device for '/' and than reboot > the > > machine so that it takes a new device for '/'. > > How can I achieve this in FreeBSD? I am using the latest release 7.0. Any > > pointers will be helpful. > > I think you're looking for the loader variables rootdev or > root.vfs.mountrootfsfrom. > > -- > | Jeremy Chadwick jdc at parodius.com | > | Parodius Networking http://www.parodius.com/ | > | UNIX Systems Administrator Mountain View, CA, USA | > | Making life hard for others since 1977. PGP: 4BD6C0CB | > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?482257ad0807141218l26cbb95aid91414a3c88a121c>