From owner-freebsd-questions Wed Aug 21 4:22:59 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 20F5D37B400 for ; Wed, 21 Aug 2002 04:22:57 -0700 (PDT) Received: from ei.bzerk.org (ei.xs4all.nl [213.84.67.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1763A43E42 for ; Wed, 21 Aug 2002 04:22:56 -0700 (PDT) (envelope-from fbsd-q@bzerk.org) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.12.5/8.12.5) with ESMTP id g7LBNaIK074776; Wed, 21 Aug 2002 13:23:36 +0200 (CEST) (envelope-from stable@ei.bzerk.org) Received: (from stable@localhost) by ei.bzerk.org (8.12.5/8.12.5/Submit) id g7LBNaht074775; Wed, 21 Aug 2002 13:23:36 +0200 (CEST) Date: Wed, 21 Aug 2002 13:23:36 +0200 From: Ruben de Groot To: Jimmy Lantz Cc: Ruben de Groot , freebsd-questions@FreeBSD.ORG Subject: Re: FreeBSD on a bootable CD? Message-ID: <20020821112336.GB74599@ei.bzerk.org> References: <5.1.0.14.0.20020821111356.02ae24d0@mail.lusidor.nu> <5.1.0.14.0.20020821111356.02ae24d0@mail.lusidor.nu> <5.1.0.14.0.20020821124423.00bd08b0@mail.lusidor.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.1.0.14.0.20020821124423.00bd08b0@mail.lusidor.com> User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Aug 21, 2002 at 12:48:35PM +0200, Jimmy Lantz typed: > At 11:50 2002-08-21 +0200, you wrote: > >> I would like to mount some dirs like /etc /tmp /var on disk and the > >rest on > >> CD, is it possible, > >> Last time I tried to move /etc to another disk than / I got into some > >> trouble, is /etc dependent to be on the same disk as / ? > > > >When the root partition is mounted, the /etc/rc script will be executed. > >Other partitions will be mounted according to /etc/fstab. If you put /etc > >on a seperate partition you shoot yourself in the foot. > > I'm looking for ways to put the rc.conf info then on the harddrive and the > rest on > the CD (read use the same CD for more than one server without DHCP), > and be able to customize the hosts files among other things, > is this possible without shooting my self in the foot? > TIA > Jim. What I usually do is put all the configuration stuff that needs to be writeable in a partition that gets mounted on /etc/local and include these files from the read-only /etc. For example, you can put [ -r /etc/local/myrc.conf ] && . /etc/local/myrc.conf As last line in /etc/rc.conf > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message