From owner-freebsd-questions@FreeBSD.ORG Wed Feb 15 20:47:33 2006 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 6E14C16A420 for ; Wed, 15 Feb 2006 20:47:33 +0000 (GMT) (envelope-from joe@netmusician.org) Received: from netmusician.org (netmusician.org [209.67.223.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id E57C743D48 for ; Wed, 15 Feb 2006 20:47:16 +0000 (GMT) (envelope-from joe@netmusician.org) Received: from localhost (localhost [127.0.0.1]) by netmusician.org (Postfix) with ESMTP id 7E0E3730AD; Wed, 15 Feb 2006 15:47:16 -0500 (EST) Received: from netmusician.org ([127.0.0.1]) by localhost (netmusician.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23795-05; Wed, 15 Feb 2006 15:47:15 -0500 (EST) Received: from [129.79.115.14] (jauty.journalism.indiana.edu [129.79.115.14]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by netmusician.org (Postfix) with ESMTP id 5CA287303F; Wed, 15 Feb 2006 15:47:15 -0500 (EST) In-Reply-To: <20060215194046.6271.qmail@web51413.mail.yahoo.com> References: <20060215194046.6271.qmail@web51413.mail.yahoo.com> Mime-Version: 1.0 (Apple Message framework v746.2) Message-Id: <2DEE7242-F283-4C35-85B4-99847DE989A6@netmusician.org> From: Joe Auty Date: Wed, 15 Feb 2006 15:47:13 -0500 To: Steve Quinn X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: by amavisd-new at netmusician.org Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: best approach to clone a disk? 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, 15 Feb 2006 20:47:33 -0000 On Feb 15, 2006, at 2:40 PM, Steve Quinn wrote: > --- Joe Auty wrote: > >> Thanks Steve, but this is exactly the same script I've been using all >> along, while in Single User Mode. >> >> However, could you explain the zeroing of blocks, and what its >> purpose is for? Does this solve the problem of space being lost when >> cloning a disk to a larger disk? > > Hi Joe > > Sorry, you mentioned Freesbie and I assumed you had not used dump > under your FreeBSD install > > Now that I think about it, I was getting errors like yours when I > was first learning this script > I remember having to adjust it to taste > > Have a look at your fstab (cat /etc/fstab) and ensure the scripts > references to your FreeBSD > slices match your system. > > In the script I sent you, my clone destination disk was ad2 so you > will need to look at that as > well > > Don't worry Joe, you are very very close > > Regarding zeroing empty or unused blocks, have a look at this > > http://www.digitalissues.co.uk/html/os/misc/partimage.html#22 > > Regarding space lost cloning to a larger disk, zeroing unused > blocks wont help that. Imagine your > 10GB FreeBSD hard disk is cloned with G4U to a 20GB hard disk. It > will probably work great but > your 20GB disk is only half full. You will have to use growfs to > expand a slice or create a new > partition to reclaim the empty space. Sorry, I have not tried this > yet and have no experience. > > In cloning to a bigger disk, I prefer the dump/restore script > method as I get to fully utilize the > larger disk capacity > It sort of helps, but sort of doesn't at the same time. I've tried the dump command from the script using the correct slices, and still had that kernel panic. I figured that using the Freesbie CD might be a way of testing whether my install on my master/source drive was somehow messed up, but I haven't gone very far with that (dump reports "unsupported file system" errors). I've also looked at growfs, but I'm not entirely sure how to handle the prequisite to using it which is using bsdlabel. It seems that running bsdlabel within /stand/sysinstall doesn't recognize the free space, so I can't create a new partition map that reflects this free space. I'll keep working at it though... Thanks for your help! ----------- Joe Auty NetMusician: web publishing software for musicians http://www.netmusician.org joe@netmusician.org