Re: [SLUG] sparse file

From: Dylan William Hardison (dylan@hardison.net)
Date: Mon Mar 31 2008 - 12:29:04 EST


Spake Eben King on Monday, March 31, 2008 at 11:44AM -0400:
> On Mon, 31 Mar 2008, Dylan William Hardison wrote:
>
>> Spake Eben King on Monday, March 31, 2008 at 02:05AM -0400:
>>> How would I create a sparse (no allocated storage) file? Reason: I've
>>
>> dd count=0 bs=1M seek=20 of=pants
>
> Thanks. I modified it a bit:
>
> eben@pc:~$ dd count=0 bs=1M seek=100 if=/dev/zero of=testfile
>
> Dunno what it does with the infile, but if it's not there, dd hangs.

Interesting, that isn't needed here.
What does dd --version report?
% dd --version
dd (coreutils) 5.97

-- 
"I asked of her, 'What do we celebrate?'
She said to me, 'These be the good old days.'"
              -- David "Ziggy" Marley, "Good Old Days" (song)
-
GPG Fingerprint: 412C CCE9 DDA2 4FE9 C34F  754B 0863 0EA6 712E BBE1
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS).  Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 15:33:02 EDT