From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 14 19:18:57 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 839D3106566B for ; Mon, 14 Jul 2008 19:18:57 +0000 (UTC) (envelope-from tapan.list@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.29]) by mx1.freebsd.org (Postfix) with ESMTP id 428918FC17 for ; Mon, 14 Jul 2008 19:18:57 +0000 (UTC) (envelope-from tapan.list@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so2103736ywe.13 for ; Mon, 14 Jul 2008 12:18:43 -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=9h5iwRqSIbcNd3qhFKc4zN/ikchjAxkv3Z5xCEVTorc=; b=UwixQbRon8DQymlri8XNnmGyqYxq3aYRlkNyyVYjs46IKe6uNwsNiE1BjqMkBWeueN eWCmikiP3QFyhK4Ir6BVEme/13kyOdEn/9oGBTPUZwPNWIZefUEeSaYhblIA6ydCjwJF NHVpFCfzNVw+eYj2q3vwsBF2RjboWq+aVZkHQ= 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=Fpmwim4QS0r9a1pqJSY1aU2SBQymd2Hq1lJ8G17XB/vutAWlISTO3iqD0Wxdacu6jB 3B3jwamK7yB9od9ElXYI9KmGQunVh2cpHw68uo766j5VE77hi4J0JKn394sOYaAdlWk3 0XoFV3MTIN9c2r/rPwC1F31kt3Zo2+2gLGDZc= Received: by 10.103.6.6 with SMTP id j6mr8176439mui.89.1216063122615; Mon, 14 Jul 2008 12:18:42 -0700 (PDT) Received: by 10.103.227.19 with HTTP; Mon, 14 Jul 2008 12:18:42 -0700 (PDT) Message-ID: <482257ad0807141218l26cbb95aid91414a3c88a121c@mail.gmail.com> Date: Tue, 15 Jul 2008 00:48:42 +0530 From: "Tapan Chaudhari" To: freebsd-hackers@freebsd.org In-Reply-To: <20080714184030.GA62288@eos.sc1.parodius.com> MIME-Version: 1.0 References: <482257ad0807141106m679ec19frd853339637d27a2d@mail.gmail.com> <20080714184030.GA62288@eos.sc1.parodius.com> 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: Mon, 14 Jul 2008 19:18:57 -0000 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 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 | > >