Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jul 2008 11:40:30 -0700
From:      Jeremy Chadwick <koitsu@FreeBSD.org>
To:        Tapan Chaudhari <tapan.list@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Can I change the device of the "/" mount point at boot time.
Message-ID:  <20080714184030.GA62288@eos.sc1.parodius.com>
In-Reply-To: <482257ad0807141106m679ec19frd853339637d27a2d@mail.gmail.com>
References:  <482257ad0807141106m679ec19frd853339637d27a2d@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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?20080714184030.GA62288>