From owner-freebsd-questions@FreeBSD.ORG Wed Apr 1 09:12:24 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 70F81106564A for ; Wed, 1 Apr 2009 09:12:24 +0000 (UTC) (envelope-from krad@snaffler.net) Received: from mk-filter-2-a-1.mail.uk.tiscali.com (mk-filter-2-a-1.mail.uk.tiscali.com [212.74.100.53]) by mx1.freebsd.org (Postfix) with ESMTP id 044F98FC17 for ; Wed, 1 Apr 2009 09:12:23 +0000 (UTC) (envelope-from krad@snaffler.net) X-Trace: 175252712/mk-filter-2.mail.uk.tiscali.com/B2C/$b2c-TRUSTED/b2c-IMPLICITLY_TRUSTED/212.74.112.53/None/krad@snaffler.net X-SBRS: None X-RemoteIP: 212.74.112.53 X-IP-MAIL-FROM: krad@snaffler.net X-MUA: Thunderbird 2.0.0.17 (X11/20081023) X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArsBALXK0knUSnA1/2dsb2JhbAAIzlWDegY X-IronPort-AV: E=Sophos;i="4.39,305,1235952000"; d="scan'208";a="175252712" Received: from e1-1.ns500-1.ts.milt.as9105.net (HELO [10.44.24.93]) ([212.74.112.53]) by smtp.tiscali.co.uk with ESMTP; 01 Apr 2009 10:02:04 +0100 Message-ID: <49D32D83.4000607@snaffler.net> Date: Wed, 01 Apr 2009 10:01:55 +0100 From: "krad@snaffler.net" User-Agent: Thunderbird 2.0.0.17 (X11/20081023) MIME-Version: 1.0 To: Wojciech Puchar References: <991123400903260424p613c1c2dj53272f9101331760@mail.gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Odhiambo Washington , "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: Wed, 01 Apr 2009 09:12:25 -0000 personally id use rsync over tar, make sure you use the numeric-ids option though Also you could probably do something like to make sure the disk labels are the same bsdlabel ad0s1 | rsh X " bsdlabel -W ad0s1 0" Wojciech Puchar wrote: >> 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 > > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"