From owner-freebsd-questions@FreeBSD.ORG Wed Oct 19 14:04:16 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 5E47A16A41F for ; Wed, 19 Oct 2005 14:04:16 +0000 (GMT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0CC8443D4C for ; Wed, 19 Oct 2005 14:04:15 +0000 (GMT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: from clunix.cl.msu.edu (localhost [127.0.0.1]) by clunix.cl.msu.edu (8.12.10+Sun/8.12.2) with ESMTP id j9JE4BBn007538; Wed, 19 Oct 2005 10:04:11 -0400 (EDT) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.12.10+Sun/8.12.2/Submit) id j9JE4BV9007537; Wed, 19 Oct 2005 10:04:11 -0400 (EDT) From: Jerry McAllister Message-Id: <200510191404.j9JE4BV9007537@clunix.cl.msu.edu> To: nallark@gmail.com (Ramakrishna Nalla) Date: Wed, 19 Oct 2005 10:04:11 -0400 (EDT) In-Reply-To: <14f2d8380510182152j29088e0ake14df20f61154fff@mail.gmail.com> X-Mailer: ELM [version 2.5 PL7] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Bob Ababurko , freebsd-questions@freebsd.org, Craig Deal 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:04:16 -0000 > > But, won't doing a dd between two disks with incompatible sizes create a bad > partition table on the destination drive? Basically yes, at least an incorrect one, even if you can make it work. It is much better to build your slices, partitions and file systems and then move your old data using dump(8)/restore(8) than to try and dup a drive with dd. Even if they are nominally the same size, they may have some difference. ////jerry > TIA, > Rama > > On 10/19/05, Bob Ababurko wrote: > > > > 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 > > >>_______________________________________________ > > >>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" > > >> > > > > > > > > > I tried this and got the following error: > > > > > > ad0: FAILURE - READ_DMA status=51 > > error=40 > > > LBA=8387712 > > > > > > Any ideas what the problem might be? Do the hard drives have to be > > > identical? One is a 30Gb and the other is a 60GB. > > > > > > 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" > > > > > > > I would think that you can dd from a small drive to a large drive, but > > if the is possible _definitely_ not the other way around. Which size > > are source and dest. drive? > > > > -Bob > > _______________________________________________ > > 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" > > > _______________________________________________ > 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" > >