Re: Recommended method for creating file of zeros?

From: "Jason L(dot) Buberel" <jason(at)buberel(dot)org>
To: Kevin Hunter <hunteke(at)earlham(dot)edu>
Cc: PostgreSQL General List <pgsql-general(at)postgresql(dot)org>
Subject: Re: Recommended method for creating file of zeros?
Date: 2007-10-16 18:23:28
Message-ID: 471501A0.4050705@buberel.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

And thank you to Kevin - this did the trick perfectly. I've been able to
recover everything successfully.

Regards,
Jason

Kevin Hunter wrote:
> The tool is 'dd' and /dev. /dev/zero in this case. The summary of what
> you asked:
>
> $ dd if=/dev/zero of=./zblah count=1 bs=256k
> 1+0 records in
> 1+0 records out
> 262144 bytes (262 kB) copied, 0.00130993 seconds, 200 MB/s
>
> $ dd if=/dev/zero of=./zblah count=1 bs=256000
> 1+0 records in
> 1+0 records out
> 256000 bytes (256 kB) copied, 0.00136915 seconds, 187 MB/s
>
> HTH,
>
> Kevin
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Laurent Duperval 2007-10-16 18:24:20 Re: 8.2.3: Server crashes on Windows using Eclipse/Junit
Previous Message Richard Huxton 2007-10-16 18:07:05 Re: Updating a production database schema from dev server