From owner-freebsd-questions@FreeBSD.ORG Fri Oct 7 04:50:40 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 B90BB16A41F for ; Fri, 7 Oct 2005 04:50:40 +0000 (GMT) (envelope-from ababurko@adelphia.net) Received: from pobox.webstakez.com (pobox.webstakez.com [24.75.44.213]) by mx1.FreeBSD.org (Postfix) with SMTP id 0C32543D46 for ; Fri, 7 Oct 2005 04:50:39 +0000 (GMT) (envelope-from ababurko@adelphia.net) Received: (qmail 9305 invoked by uid 1014); 7 Oct 2005 04:53:51 -0000 Received: from 24.54.72.242 by pobox.webstakez.com (envelope-from , uid 89) with qmail-scanner-1.24 (clamdscan: 0.83/761. spamassassin: 2.64. perlscan: 1.24. Clear:RC:0(24.54.72.242):SA:0(-2.2/4.0):. Processed in 3.034582 secs); 07 Oct 2005 04:53:51 -0000 X-Spam-Status: No, hits=-2.2 required=4.0 X-Qmail-Scanner-Mail-From: ababurko@adelphia.net via pobox.webstakez.com X-Qmail-Scanner: 1.24 (Clear:RC:0(24.54.72.242):SA:0(-2.2/4.0):. Processed in 3.034582 secs) Received: from 24-54-72-242.kntnny.adelphia.net (HELO ?192.168.69.50?) (bob@phreakout.net@24.54.72.242) by pobox.webstakez.com with SMTP; 7 Oct 2005 04:53:47 -0000 Message-ID: <4345FE94.7010901@adelphia.net> Date: Fri, 07 Oct 2005 00:50:28 -0400 From: Bob Ababurko User-Agent: Mozilla Thunderbird 1.0.7 (Macintosh/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Craig Deal , freebsd-questions@freebsd.org References: <200510062225687.SM01332@craiglaptop> In-Reply-To: <200510062225687.SM01332@craiglaptop> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: Replacing a failing HD 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: Fri, 07 Oct 2005 04:50:40 -0000 Craig Deal wrote: > > >>-----Original Message----- >>From: owner-freebsd-questions@freebsd.org >>[mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Bob Ababurko >>Sent: Wednesday, October 05, 2005 7:53 AM >>To: Charlie Schluting; freebsd-questions@freebsd.org >>Subject: Re: Replacing a failing HD >> >>Yes, I guess I should mention that the drives were on the >>same machine, actually the same bus and/or channel. I have >>also done this on Solaris. >> I believe it was Solaris 8, but it works just the same. I >>am not sure if it would work over a network. Just make sure >>you dd the disk as a whole as in /dev/daX and not by the slice. >> >>-Bob >> >> >>Charlie Schluting wrote: >> >>>>I have used dd to image a drive many times before in freebsd. It >>>>works like a champion and will boot up just fine. I may have >>>>misunderstood your mail but if not then it will work. >>>> >>> >>> >>>Well, maybe my weird "over ssh calling a setuid program >> >>that calls a >> >>>script" dd was flawed somehow. I'll do it again with both drives in >>>the same machine. >>> >>>Thanks for the response! > > > > Hope it's ok to continue this thread, but can you explain in more detail how > to use dd to copy a HD. I read "man dd" and was unable to figure out how > this is done. > > Thanks, > Craig > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > This is what I have done in the past. dd if=/dev/da0 of=/dev/da1 bs=8192b where da0 is the disk you want to copy and da1 is the new, blank disk. I should also mention that it is wise to do this in single user mode. I actually have read this somewhere and understand the point of it, but I must also say that I have done it both ways and they have both worked. YMMV I would have to say it is all dependant and what you have running. I have done this too many times to count and it is very easy. peace, Bob