From owner-freebsd-questions@FreeBSD.ORG Sun Jul 10 23:00:08 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 435B016A41C for ; Sun, 10 Jul 2005 23:00:08 +0000 (GMT) (envelope-from gabor.kovesdan@t-hosting.hu) Received: from server.t-hosting.hu (server.t-hosting.hu [217.20.133.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4D9B43D46 for ; Sun, 10 Jul 2005 23:00:07 +0000 (GMT) (envelope-from gabor.kovesdan@t-hosting.hu) Received: from localhost (localhost [127.0.0.1]) by server.t-hosting.hu (Postfix) with ESMTP id A29199976E9; Mon, 11 Jul 2005 01:00:06 +0200 (CEST) Received: from server.t-hosting.hu ([127.0.0.1]) by localhost (server.t-hosting.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31995-06-2; Mon, 11 Jul 2005 01:00:02 +0200 (CEST) Received: from [80.98.156.20] (catv-50629c14.catv.broadband.hu [80.98.156.20]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server.t-hosting.hu (Postfix) with ESMTP id 5112C9975B9; Mon, 11 Jul 2005 01:00:02 +0200 (CEST) Message-ID: <42D1A870.7070400@t-hosting.hu> Date: Mon, 11 Jul 2005 01:00:00 +0200 From: =?ISO-8859-1?Q?K=F6vesd=E1n_G=E1bor?= User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Phusion References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: amavisd-new at t-hosting.hu Cc: freebsd-questions@freebsd.org Subject: Re: Make Image of Hard Drive 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: Sun, 10 Jul 2005 23:00:08 -0000 Phusion wrote: >I recently built a FreeBSD server, and was wondering how I can make an >image of the hard drive. I am going to build an another FeeBSD server >using identical hardware. How can I make an image of the hard drive of >the original server I built and copy/install it to the new server? >Each server has a 6.4 GB hard drive. Is there a way I can create an >image then install via the network to a new server in the future if >need be? Let me know. > There is the dd command. You can make a copy into a file in the following way: dd if=/dev/ad0s1a of=/usr/home/you/backup (ad0s1a is your partition that You want to backup, and the backup goes to the /usr/home/you/backup file.) Transfer the backup to the another machine and type: dd if=/path/to/backup of=/dev/ad0s1a It is very simple and straightforward. The if option always refers to the input and the of refers to the output. See dd(1) for further info. There is an another utility made for complete partition backups, called dump. See: dump(8). Cheers, Gábor Kövesdán