From owner-freebsd-questions@FreeBSD.ORG Tue Nov 7 15:28:49 2006 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 B951D16A47E for ; Tue, 7 Nov 2006 15:28:49 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA3BA43D67 for ; Tue, 7 Nov 2006 15:28:44 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id EF9515D86; Tue, 7 Nov 2006 10:28:43 -0500 (EST) X-Virus-Scanned: amavisd-new at codefab.com Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EdoIoWNrp9K0; Tue, 7 Nov 2006 10:28:41 -0500 (EST) Received: from [192.168.1.251] (pool-68-161-95-212.ny325.east.verizon.net [68.161.95.212]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pi.codefab.com (Postfix) with ESMTP id CC13E5C2F; Tue, 7 Nov 2006 10:28:40 -0500 (EST) Message-ID: <4550A626.6090802@mac.com> Date: Tue, 07 Nov 2006 10:28:38 -0500 From: Chuck Swiger User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Jonathan Horne References: <200611070900.01897.freebsd@dfwlp.com> In-Reply-To: <200611070900.01897.freebsd@dfwlp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: i need to upgrade a disk 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: Tue, 07 Nov 2006 15:28:49 -0000 Jonathan Horne wrote: > i have a system that is FreeBSD 6.2-PRERELEASE, that i need to upgrade its > single disk. id like to keep all its existing slices the same size, and then > use the unused space to create a new /opt slice. would dd be the way to go? > if so, could someone advise on its proper usage for duplicating one disk to > another? dd would be one way. Use fdisk or sysinstall to create a disk label on the new disk with the partitions sized and named as you want. Then run: dd if=/dev/ad0s1a of=/dev/ad1s1a bs=64k ...for each partition (except swap), where you would use the appropriate device names-- if is the source, of points to where you are writing to. It's best to do this in a shell after booting off a FreeBSD CD, so that the on-disk filesystems are not actively mounted when you copy them. The FAQ has a more complete discussion and alternatives like using dump and restore, I believe. -- -Chuck