Date: Wed, 01 Apr 2009 10:01:55 +0100 From: "krad@snaffler.net" <krad@snaffler.net> To: Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl> Cc: Odhiambo Washington <odhiambo@gmail.com>, "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: Duplicate Installation of FreeBSD Message-ID: <49D32D83.4000607@snaffler.net> In-Reply-To: <alpine.BSF.2.00.0903261400330.45951@wojtek.tensor.gdynia.pl> References: <991123400903260424p613c1c2dj53272f9101331760@mail.gmail.com> <alpine.BSF.2.00.0903261400330.45951@wojtek.tensor.gdynia.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49D32D83.4000607>