From owner-freebsd-questions@FreeBSD.ORG Sun Mar 30 18:57:27 2003 Return-Path: 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 10AC737B401 for ; Sun, 30 Mar 2003 18:57:27 -0800 (PST) Received: from smtp.acd.net (smtp.acd.net [207.179.64.154]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19C0D43FAF for ; Sun, 30 Mar 2003 18:57:26 -0800 (PST) (envelope-from taxman@ACD.NET) Received: from 207.179.85.154 ([207.179.85.154]) by smtp.acd.net with Microsoft SMTPSVC(5.0.2195.5329); Sun, 30 Mar 2003 21:57:03 -0500 From: taxman To: Grant Peel , Date: Sun, 30 Mar 2003 22:00:47 -0500 User-Agent: KMail/1.5 References: <00fb01c2f720$82e2c8f0$6401a8c0@grant> In-Reply-To: <00fb01c2f720$82e2c8f0$6401a8c0@grant> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200303302200.47877.taxman@acd.net> X-OriginalArrivalTime: 31 Mar 2003 02:57:03.0694 (UTC) FILETIME=[35260EE0:01C2F731] Subject: Re: dd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 02:57:28 -0000 On Sunday 30 March 2003 07:57 pm, Grant Peel wrote: > Hi all, > > I am about to make the trip to shutdown one of our servers and 'dd' the > first SCSI drive to the second. > > from what I have read, and what some of you have kindly offered, I just > kick into single user mode, with only root mounted on the primary drive, ro, I assume > and away we go... > > dd if=/dev/da0 of=/dev/da1 bs=1m That'll copy the data, but you'll want to prep the disk. I've seen recommendations something along the lines of: read data off the whole new disk first dd if=/dev/da1 of=/dev/null then write the data you want on it, then read it off to /dev/null again. Something to the effect of populating the drives on disk bad sector records. There may be more burn in recommended, but I couldn't find anything in the archives. > One last question, the second drive is identical to the first, but should > it be right out odf the box condition, formatted, fdisk'ed partiitioned or > does any of that matter since it will be copies bit for bit? None of that matters for the reason you noted. > TIA! np, Tim