From owner-freebsd-questions@FreeBSD.ORG Wed Oct 19 14:07:07 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 48D7516A41F for ; Wed, 19 Oct 2005 14:07:07 +0000 (GMT) (envelope-from craig@advantagecomputer.biz) Received: from mail.advantagecomputer.biz (mail.acspros.com [209.168.238.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id BBB6743D45 for ; Wed, 19 Oct 2005 14:07:06 +0000 (GMT) (envelope-from craig@advantagecomputer.biz) Received: from craiglaptop [192.168.0.100] by mail.advantagecomputer.biz with ESMTP (SMTPD32-8.15) id A3059E0184; Wed, 19 Oct 2005 09:07:01 -0500 From: "Craig Deal" To: , Date: Wed, 19 Oct 2005 09:06:55 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 In-Reply-To: <007e01c5d44f$de0dabf0$c901a8c0@workdog> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Thread-Index: AcXUVt4xEjnp14+gSiCo7kBzx/f9SgAXsWVQ Message-Id: <200510190907453.SM01300@craiglaptop> X-mxGuard-Info: Processed by mail.acspros.com using mxGuard v1.6.2 X-mxGuard-Spool-ID: 5305009e01848dc5 X-mxGuard-Auth-Sender: craig@advantagecomputer.biz@mail.advantagecomputer.biz X-mxGuard-Sender: craig@advantagecomputer.biz X-mxGuard-Spam-Score: 0 X-mxGuard-Spam-Probability: CLEAN 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: Wed, 19 Oct 2005 14:07:07 -0000 > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Gayn Winters > Sent: Tuesday, October 18, 2005 8:53 PM > To: 'Craig Deal'; freebsd-questions@freebsd.org > Subject: RE: Replacing a failing HD > > > > > Craig Deal wrote: > > > > > > > > > > > >>>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 > > > >> > > > > > > > > > > > > I tried this and got the following error: > > > > > > > > ad0: FAILURE - READ_DMA status=51 > > > > error=40 > > > > LBA=8387712 > > A couple ideas for dd: > > Have you tried bs=512b ? > > How about conv=noerror ? > > > -gayn Using "bs=512b" worked. I booted to the new disk and everything looks ok. I also ran "fsck" in single user mode, which indicated no problems. Can I assume everything is ok, or is there anything else I should check? Craig