From owner-freebsd-questions@FreeBSD.ORG Thu Oct 20 02:42:25 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 458AF16A41F for ; Thu, 20 Oct 2005 02:42:25 +0000 (GMT) (envelope-from gayn.winters@bristolsystems.com) Received: from bristolsystems.com (h-68-167-239-98.lsanca54.covad.net [68.167.239.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id ADC8D43D5A for ; Thu, 20 Oct 2005 02:42:24 +0000 (GMT) (envelope-from gayn.winters@bristolsystems.com) Received: from workdog ([192.168.1.201]) by bristolsystems.com (8.11.6/8.11.6) with ESMTP id j9JMkbn07836; Wed, 19 Oct 2005 15:46:37 -0700 From: "Gayn Winters" To: "'Ramakrishna Nalla'" , "'Bob Ababurko'" Date: Wed, 19 Oct 2005 15:45:47 -0700 Message-ID: <015401c5d4fe$f49bcc80$c901a8c0@workdog> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 In-Reply-To: <14f2d8380510182152j29088e0ake14df20f61154fff@mail.gmail.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Importance: Normal Cc: 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 Reply-To: gayn.winters@bristolsystems.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Oct 2005 02:42:25 -0000 > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of > Ramakrishna Nalla > Sent: Tuesday, October 18, 2005 9:52 PM > To: Bob Ababurko > Cc: freebsd-questions@freebsd.org; Craig Deal > Subject: Re: Replacing a failing HD > > > But, won't doing a dd between two disks with incompatible > sizes create a bad partition table on the destination drive? > > TIA, > Rama > Not really a "bad" partition table, if what you mean is bad=corrupted. Using dd you copy blocks, and this will correctly bring the partition table along. What you do not get initially is the full utilization of the larger drive. Thus if you dd a 40GB drive (or slice) to a 60GB one, you'll only get the image of the 40GB drive that is initially usable. You will have 20GB that is not - at least initially - usable. Nothing stops you from reorganizing the larger disk, however. I think the original problem in this thread was a quick save of a failing disk. dd is great for this. If you were simply going to utilize a larger disk, then you'd be better off using fdisk to slice it up, creating your bsd partitions and then using dump|restore to get things where you want them. I think the Handbook has a nice section on doing this. -gayn