From owner-freebsd-stable Tue Oct 29 14:21:50 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 03DB437B401 for ; Tue, 29 Oct 2002 14:21:48 -0800 (PST) Received: from sage-one.net (adsl-65-71-135-137.dsl.crchtx.swbell.net [65.71.135.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id A5CCA43E9E for ; Tue, 29 Oct 2002 14:21:42 -0800 (PST) (envelope-from jackstone@sage-one.net) Received: from sagea (sagea [192.168.0.3]) by sage-one.net (8.11.6/8.11.6) with SMTP id g9TMLW889586; Tue, 29 Oct 2002 16:21:32 -0600 (CST) (envelope-from jackstone@sage-one.net) Message-Id: <3.0.5.32.20021029162139.010ec928@mail.sage-one.net> X-Sender: jackstone@mail.sage-one.net X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Tue, 29 Oct 2002 16:21:39 -0600 To: Matthew Dillon , Mike Hogsett From: "Jack L. Stone" Subject: Re: copy harddrive image Cc: "Mr. Darren" , freebsd In-Reply-To: <200210292118.g9TLIt49010760@apollo.backplane.com> References: <200210292048.g9TKmG1J015723@axp.csl.sri.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 01:18 PM 10.29.2002 -0800, Matthew Dillon wrote: > >:> I have had a harddrive which is doing the SMART imminent failure thing >:> for the last little while. I had western digital send me a new drive so >:> I could copy all my data over. I am wondering what the best way to do >:> this is? "dd if=ad0 of=ad1" doesn't seem to be like a good method.. >:> any input? >: >:That method has worked great for me in the past. But I have usually done >:this with brand new disks (source being freshly installed). Also no >:partitions on either disk were mounted. >: >:I would add the argument bs=131072 >: >: - Mike > > What I usually do is fdisk and disklabel the new disk, which gives > me a chance to adjust the size of the partitions. I then dd each > partition across (e.g. dd if=ad0s1a of=ad1s1a) for those partitions > whos sizes didn't change, fsck them after I'm done, and use 'cpdup' > (/usr/ports/sysutils/cpdup) to copy the rest via mounts. > > The advantage of using cpdup is that you can do it on a live system, > take the system down to single user, do cpdup again to catch > whatever changes from the first run (usually very little, so cpdup > only takes a few seconds the second time), then power off, swap the > drives, and reboot. Total actual down time: 5 minutes or less. > > DDing the entire disk works too, at least if the system is idle. Be > sure to fsck the destination drive though before mounting it. > > -Matt > Hi, Matt: I've never tried your "cpdup" program I just installed the port to try it. ....and wonder: 1) why you prefer it to ole dump/restore? 2) what would be the typical syntax of the line command you use to copy over the ad0s1f to ad1s1f partition for example. I like your dd/cpdup combo approach and would like to try it on a test box. Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net jackstone@sage-one.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message