From owner-freebsd-questions@FreeBSD.ORG Wed Aug 24 20:27:31 2005 Return-Path: X-Original-To: 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 1802516A41F for ; Wed, 24 Aug 2005 20:27:31 +0000 (GMT) (envelope-from dkelly@Grumpy.DynDNS.org) Received: from smtp.knology.net (smtp.knology.net [24.214.63.101]) by mx1.FreeBSD.org (Postfix) with SMTP id 9603443D46 for ; Wed, 24 Aug 2005 20:27:30 +0000 (GMT) (envelope-from dkelly@Grumpy.DynDNS.org) Received: (qmail 20102 invoked by uid 0); 24 Aug 2005 20:27:29 -0000 Received: from user-69-73-60-132.knology.net (HELO Grumpy.DynDNS.org) (69.73.60.132) by smtp7.knology.net with SMTP; 24 Aug 2005 20:27:29 -0000 Received: by Grumpy.DynDNS.org (Postfix, from userid 928) id AB2636241; Wed, 24 Aug 2005 15:27:28 -0500 (CDT) Date: Wed, 24 Aug 2005 15:27:28 -0500 From: David Kelly To: "Gary W. Swearingen" Message-ID: <20050824202728.GA64885@Grumpy.DynDNS.org> References: <430C568B.5060501@azimainc.com> <44d5o3tm57.fsf@be-well.ilk.org> <20050824154854.GA63910@Grumpy.DynDNS.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: questions@freebsd.org Subject: Re: creating filesystem images 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, 24 Aug 2005 20:27:31 -0000 On Wed, Aug 24, 2005 at 10:47:06AM -0700, Gary W. Swearingen wrote: > David Kelly writes: > > > The advantage of dump/restore is that only the necessary data is > > written. With dd all the unused blocks on the media are also written, > > including the filesystem, which will probably work on the larger card. > > If you don't mind educating me further for no particular need... > > I've long known about the UNIX concept of everything being a string of > bytes, but came to the conclusion early in my Linux days that disks > couldn't be used as a filesystem after a "dd" unless their cylinders > were the same size (or maybe it was just tracks). Has this all gone > away with FreeBSD's removal of "block devices" and/or with LBA disks? When I last did any significant amount of FreeBSD-on-CF, FreeBSD was at 4.6 and I think the CF card hooked in on the SCSI drivers. In any case, back then I had no problems block copying a 32MB CF onto a 256MB CF, boot blocks, partition table, and everything so long as one didn't mind losing everything over 32MB. What I did have problems with is a few 256MB CF's in a lot which were externally identical to the others but a handful of blocks shorter. Thats when I nuked the dd procedure I had inherited and replaced with a script which started with newfs. Newfs was smart enough to detect the size and do the right thing. Yes, tar and/or pax are not able to copy/restore the special BSD flags which dump/restore does. I think I used mtree to beat my final CF image into the desired shape, permissions, owner/group, and BSD flags. -- David Kelly N4HHE, dkelly@HiWAAY.net ======================================================================== Whom computers would destroy, they must first drive mad.