From owner-freebsd-questions@FreeBSD.ORG Wed May 25 02:32:14 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 D454C16A41C for ; Wed, 25 May 2005 02:32:14 +0000 (GMT) (envelope-from calloatti@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A71643D1F for ; Wed, 25 May 2005 02:32:14 +0000 (GMT) (envelope-from calloatti@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so449827wri for ; Tue, 24 May 2005 19:32:13 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=dbrdaVhdNpxhbyy40vg/y/s9kvjEnjvFDKGnlaREcauRGBzF6hciZCri3olOwXxBwEu3qiTkf9m2QoUCTPxkjpNdECkjKBP2WuH0FAD26Gg1LRky51KdjhiWtlXBYETZDl8mH9o29/68W5Xx46GS/wNGKYhQayl0xyP3Yij/fTI= Received: by 10.54.8.8 with SMTP id 8mr933294wrh; Tue, 24 May 2005 19:32:11 -0700 (PDT) Received: by 10.54.57.15 with HTTP; Tue, 24 May 2005 19:32:11 -0700 (PDT) Message-ID: <1b6c15ea050524193248b3d1aa@mail.gmail.com> Date: Tue, 24 May 2005 23:32:11 -0300 From: Carlos Alloatti To: Ewald Jenisch In-Reply-To: <20050524130813.GA5576@aurora.oekb.co.at> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050524130813.GA5576@aurora.oekb.co.at> Cc: freebsd-questions@freebsd.org Subject: Re: Installing on multiple machines X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Carlos Alloatti List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2005 02:32:15 -0000 On 5/24/05, Ewald Jenisch wrote: > Hi, >=20 > I'd like to install 5.4 on several machines. The hardware is similar, > but not exactly equal (different size HDs, different amount of > memory). >=20 > Is there any way to install 5.4 on different machines with the same > options, i.e. same set of packages, same settings (e.g. keyboard) > etc. without manually going through the installation on every machine? >=20 Doing a "Norton Ghost" like copying of the hard disk is ok for you? Try thi= s: Install and configure FreeBSD in one machine. Now start an install of Freebsd in another machine, up to the FreeBSD Disklabel Editor. After creating slices with "A" or manually, press "W" to save changes. Remove disk, install as MASTER in SECOND IDE CONTROLLER on first machine, start FreeBSD , create /edit this script: #!/bin/sh mkdir /backup mkdir /backup/root mkdir /backup/usr mkdir /backup/var newfs /dev/ad2s1a newfs /dev/ad2s1d newfs /dev/ad2s1f mount /dev/ad2s1a /backup/root mount /dev/ad2s1d /backup/var mount /dev/ad2s1f /backup/usr ( dump -0f - / ) | ( cd /backup/root ; restore -rf - ) ( dump -0f - /var ) | ( cd /backup/var ; restore -rf - ) ( dump -0f - /usr ) | ( cd /backup/usr ; restore -rf - ) umount /backup/root umount /backup/var umount /backup/usr tunefs -n enable /dev/ad2s1a tunefs -n enable /dev/ad2s1d tunefs -n enable /dev/ad2s1f=20 #eof Restart in single user mode, run this commands: # fsck -p=20 # mount -u /=20 # mount -a=20 # swapon -a=20 # adjkerntz -i Now run the script you created, wait forever.... now you have "cloned" your original hard disk. Remove second hard disk, install on new machine, and it should start. Edit some files: rc.conf, hosts, etc thats it. This can also be used to change/backup hard disk.