From owner-freebsd-questions@FreeBSD.ORG Wed Nov 29 13:49:55 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6618416A415 for ; Wed, 29 Nov 2006 13:49:55 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out3.blueyonder.co.uk (smtp-out3.blueyonder.co.uk [195.188.213.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E32D43C9D for ; Wed, 29 Nov 2006 13:49:52 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [172.23.170.146] (helo=anti-virus03-09) by smtp-out3.blueyonder.co.uk with smtp (Exim 4.52) id 1GpPov-0000u4-0S; Wed, 29 Nov 2006 13:49:53 +0000 Received: from [82.46.239.57] (helo=[192.168.0.2]) by asmtp-out4.blueyonder.co.uk with esmtp (Exim 4.52) id 1GpPou-0003o5-Dq; Wed, 29 Nov 2006 13:49:52 +0000 Message-ID: <456D9000.8090701@dial.pipex.com> Date: Wed, 29 Nov 2006 13:49:52 +0000 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.13) Gecko/20061106 X-Accept-Language: en MIME-Version: 1.0 To: Grant Peel References: <001c01c713ba$e7e2be30$6501a8c0@GRANT> In-Reply-To: <001c01c713ba$e7e2be30$6501a8c0@GRANT> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: DUMP + RESTORE 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, 29 Nov 2006 13:49:55 -0000 Grant Peel wrote: >Hi all, > >I know that if I dump a filesystem (lets say a full dump), that everything says the restore filesystem needs to be at least as big as the one the dump was made from. > >But I dare ask this question anyway ... > >If I have a filesystem that is 10 GIG, but because I am only using 2 GIG of that can I restore it to a 3 GIg file system? > >I ask becuase somehow I have a 73 gig drive, but all my spare hard disks disks are only 36 Gig. > > You only need as much disk space where you are restoring as you actually used on the filesystem being dumped, so yes, if you really only used 2Gb then restoring to a 3Gb partition is fine. Just beware that a 3Gb partition before newfs will have less that 3Gb of usable space as some is taken up by filesystem overhead, and the 10% space is usually to be left free for speedier, less fragmented operation. But 2Gb of data will still fit comfortably. This is *one* of the reasons why dump is better than dd. dd just copies the whole slice, all 10Gb in this case, and then you'd be stuck :-) --Alex