From owner-freebsd-questions@FreeBSD.ORG Thu Mar 26 13:05:11 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 89FDB106564A for ; Thu, 26 Mar 2009 13:05:11 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 3C0748FC16 for ; Thu, 26 Mar 2009 13:05:09 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3) with ESMTP id n2QD51nC046016; Thu, 26 Mar 2009 14:05:01 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3/Submit) with ESMTP id n2QD4xHb046013; Thu, 26 Mar 2009 14:05:00 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Thu, 26 Mar 2009 14:04:59 +0100 (CET) From: Wojciech Puchar To: Odhiambo Washington In-Reply-To: <991123400903260424p613c1c2dj53272f9101331760@mail.gmail.com> Message-ID: References: <991123400903260424p613c1c2dj53272f9101331760@mail.gmail.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: "freebsd-questions@freebsd.org" Subject: Re: Duplicate Installation of FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Mar 2009 13:05:11 -0000 > Hello list, > > I have installed and configured a FreeBSD system based on 7.1-RELEASE (not > that it matters so much) and I want a way in which I can duplicate this on > several other machines. > What is the easiest and the simplest way? Please consider the K.I.S.S > principle. > boot liveCD, allow rsh on one machine (.rhosts etc) and do on each new. 1) clean beginning of disk: dd if=/dev/zero of=/dev/ad0 bs=64k count=1 make labels as you wish bsdlabel -w ad0 bsdlabel -e ad0 (replace ad0 with something different if it is, or maybe more drives) if you use gmirror/gstripe whatever do it here. 2) bsdlabel -B ad0 (install bootrecord) perform newfs on each partition with options you like mount target root partition on /mnt, make subdirs for other partitions (if any), mount others under /mnt/subdir 3) rsh -l installedmachine "tar --one-file-system -cf - / /otherpartition /anotherpartition"|tar -C /mnt -xpvf - this will copy all files. be sure to specify all mountpoint in tar -cf - ... 4) edit all needed files like /mnt/etc/rc.conf 5) /sbin/reboot -q