sparse image

Pieter de Goeje pdegoeje at
Wed Jun 23 13:26:49 UTC 2010

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

More information about the freebsd-questions mailing list