From owner-freebsd-questions@FreeBSD.ORG Wed Jun 23 13:26:49 2010 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 46772106564A for ; Wed, 23 Jun 2010 13:26:49 +0000 (UTC) (envelope-from pdegoeje@service2media.com) Received: from s2m-is-001.service2media.com (rev-130-102.virtu.nl [217.114.102.130]) by mx1.freebsd.org (Postfix) with ESMTP id D65A88FC08 for ; Wed, 23 Jun 2010 13:26:47 +0000 (UTC) Received: from pieter-dev.localnet ([10.0.1.91] RDNS failed) by s2m-is-001.service2media.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 23 Jun 2010 15:26:44 +0200 From: Pieter de Goeje Organization: Service2Media To: freebsd-questions@freebsd.org Date: Wed, 23 Jun 2010 15:26:44 +0200 User-Agent: KMail/1.13.3 (Linux/2.6.32-3-amd64; KDE/4.4.4; x86_64; ; ) References: <4C21E163.70003@comclark.com> <4C21E7F8.2050802@unsane.co.uk> In-Reply-To: <4C21E7F8.2050802@unsane.co.uk> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201006231526.44300.pdegoeje@service2media.com> X-OriginalArrivalTime: 23 Jun 2010 13:26:44.0868 (UTC) FILETIME=[B9717440:01CB12D7] Cc: Vincent Hoffman Subject: Re: sparse image 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, 23 Jun 2010 13:26:49 -0000 On Wednesday 23 June 2010 12:54:48 Vincent Hoffman wrote: > On 23/06/2010 11:26, Aiza wrote: > > Is there an equivalent of the MAC sparseimage on FreeBSD? > > If you mean you would like to make a sparse file and attach it using > mdconfg then > dd if=/dev/zero of=/path/to/outfile bs=1M seek=1024 count=0 > This will give you a sparse file that reports a gig in size, but only > uses whats actually in use. Note that "truncate -s 1G file" will do the same with IMHO easier syntax. - Pieter