From owner-freebsd-questions@FreeBSD.ORG Tue Nov 7 23:44:45 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 7894E16A412 for ; Tue, 7 Nov 2006 23:44:45 +0000 (UTC) (envelope-from dkelly@Grumpy.DynDNS.org) Received: from smtp.knology.net (smtp.knology.net [24.214.63.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 21C3343D7D for ; Tue, 7 Nov 2006 23:44:36 +0000 (GMT) (envelope-from dkelly@Grumpy.DynDNS.org) Received: (qmail 18727 invoked by uid 0); 7 Nov 2006 23:44:35 -0000 Received: from unknown (HELO Grumpy.DynDNS.org) (216.186.148.249) by smtp5.knology.net with SMTP; 7 Nov 2006 23:44:35 -0000 Received: by Grumpy.DynDNS.org (Postfix, from userid 928) id 1DF142840A; Tue, 7 Nov 2006 17:44:35 -0600 (CST) Date: Tue, 7 Nov 2006 17:44:35 -0600 From: David Kelly To: Richard McIntyre Message-ID: <20061107234435.GB74330@Grumpy.DynDNS.org> References: <003a01c6ee0a$841e74f0$6908a8c0@pcmoperations> <20061012182206.GA81008@Grumpy.DynDNS.org> <452FE303.90002@tco2.thecompanyonline.com> <452FEAD6.7030800@tomjudge.com> <4550FF54.80908@tco2.thecompanyonline.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4550FF54.80908@tco2.thecompanyonline.com> User-Agent: Mutt/1.4.2.2i Cc: FreeBSD-Questions@freebsd.org Subject: Re: Hard Drive Issues X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: FreeBSD-Questions@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Nov 2006 23:44:45 -0000 On Tue, Nov 07, 2006 at 04:49:08PM -0500, Richard McIntyre wrote: > Tom Judge wrote: > > I've put a new disk into the system, The current disk is 200 GB, the new > disk is 250 GB. > If I run the command: > dd if=/dev/ad2 of=/dev/ad3 conv=noerror > > Will this copy the (changing the appropriate device names of course) the > disk as a whole? Will I lose the 50 GB difference? Yes. Yes. > Is there another way? (like the dump, tar, or just plain copy command?) Yes. I would manually use /usr/bin/sysinstall to prepare the new drive with the desired partitions, sized appropriately. Now is the time to rethink your previous partitioning. Maybe /home should be a separate partition? How about /var/mail? Webserver space? Etc. Manually mount the new drive somewhere, typically /mnt is used. So your new drive's usr filesystem will be at /mnt/usr, and root at /mnt, and etc at /mnt/etc, and home at /mnt/home (if you use a /home partition). Really should be running single user at this point. Use dump to read the old drive one partition at a time piped thru stdout into restore. Double check the following as I'm typing off the top of my head: # dump -0af - / | ( cd /mnt; restore -rf - ) # dump -0af - /etc | ( cd /mnt/etc; restore -rf - ) # dump -0af - /var | ( cd /mnt/var; restore -rf - ) If you are splitting /usr/home out into /home make this symbolic link so that restore puts /usr/home in /mnt/home, otherwise skip this command. #ln -s ../home /mnt/usr # dump -0af - /usr | ( cd /mnt/usr; restore -rf - ) You should get the gist of things by now. Repeat for any other filesystem. Edit the contents of /mnt/etc/fstab before rebooting. -- David Kelly N4HHE, dkelly@HiWAAY.net ======================================================================== Whom computers would destroy, they must first drive mad.