From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 14 18:40:30 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 D6CF61065684 for ; Mon, 14 Jul 2008 18:40:30 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id D2C018FC27 for ; Mon, 14 Jul 2008 18:40:30 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id B9EC31CC092; Mon, 14 Jul 2008 11:40:30 -0700 (PDT) Date: Mon, 14 Jul 2008 11:40:30 -0700 From: Jeremy Chadwick To: Tapan Chaudhari Message-ID: <20080714184030.GA62288@eos.sc1.parodius.com> References: <482257ad0807141106m679ec19frd853339637d27a2d@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <482257ad0807141106m679ec19frd853339637d27a2d@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org 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: Mon, 14 Jul 2008 18:40:30 -0000 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 |