From owner-freebsd-questions@FreeBSD.ORG Sun Dec 2 04:30:33 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 454BF16A417 for ; Sun, 2 Dec 2007 04:30:33 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id 08E6D13C43E for ; Sun, 2 Dec 2007 04:30:32 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id lB24PuwS099600; Sat, 1 Dec 2007 23:25:56 -0500 (EST) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id lB24Pucv099599; Sat, 1 Dec 2007 23:25:56 -0500 (EST) (envelope-from jerrymc) Date: Sat, 1 Dec 2007 23:25:56 -0500 From: Jerry McAllister To: Steve Franks Message-ID: <20071202042556.GB99512@gizmo.acns.msu.edu> References: <539c60b90712010929m7fef7020v806eb3c1eb24d066@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <539c60b90712010929m7fef7020v806eb3c1eb24d066@mail.gmail.com> User-Agent: Mutt/1.4.2.2i Cc: User Questions Subject: Re: using dd to duplicate disks/partitions of slightly different sizes - works? 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: Sun, 02 Dec 2007 04:30:33 -0000 On Sat, Dec 01, 2007 at 10:29:15AM -0700, Steve Franks wrote: > I've got two 160GB disks. Different manufacturers, so different # > bytes. One is FreeBSD, the other blank. I'd like to backup my system > for the fastest possible recovery after a crash - move the plug and > power up. I have gmirrored before, but I just wanted to do a quick > dd, since I don't want to abuse my cheapo powersupply (has 4 disks > already on it). > > Two questions: > > (1) If I dd from the smaller to the larger, will it work? What > happens to the extra, say 5MB of unused space - will my partition info > be messed up? > > (2) If I dd from the larger to the smaller (df reports only 50% used > anyway) is there a way to make sure there is no info in the 5MB at the > end that will overflow the smaller, and again, will my partitions be > ok? > > The other option is just to fdisk & label the other disk, then rsync > everything to it. Is that the wiser choice? Either rsync or dump/restore. skip the dd. It is not a good use of dd. ////jerry > > Thanks, > Steve > _______________________________________________ > 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"