Re: Recommended method for creating file of zeros? - Mailing list pgsql-general

From Jason L. Buberel
Subject Re: Recommended method for creating file of zeros?
Date
Msg-id 471501A0.4050705@buberel.org
Whole thread Raw
In response to Re: Recommended method for creating file of zeros?  (Kevin Hunter <hunteke@earlham.edu>)
List 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 

pgsql-general by date:

Previous
From: Laurent Duperval
Date:
Subject: Re: 8.2.3: Server crashes on Windows using Eclipse/Junit
Next
From: Thomas Kellerer
Date:
Subject: Re: Preserving view source code