[clug] Who has better dd foo than I?

Kim Holburn kim.holburn at gmail.com
Tue Aug 7 02:16:30 MDT 2012


Quotas?

On 2012/Aug/07, at 11:53 AM, Andrew Janke wrote:

> SITREP: I have a big new raid volume that I want to "release" to the
> masses slowly. Call it social engineering "oh the disk is 90% full
> better clean up before I run that".
> 
> In the past I have done this by creating hidden files in the root dir
> of the partition and slowly removed them over time. You fill them with
> zeros and a backup system that compresses files will take no notice of
> them.
> 
> ie:
> 
>   dd if=/dev/zero of=/export/big-disk01/.10TB count=10000000
> 
> This of course takes a while.  Playing games like this (sparse file)
> is very quick:
> 
>   dd if=/dev/zero of=/export/big-disk01/.10TB count=1 seek=10000000
> 
> It does create a file of this size but of course du and df don't take
> much notice.  I have also found this:
> 
>   http://sandeen.fedorapeople.org/utilities/fallocate.c
> 
> But I think it will suffer the same problem, I say think as I haven't tried it.
> 
> So: how would you make a big file quickly to fill a disk up (before
> the users find it)?
> 
> ta
> 
> 
> 
> a
> -- 
> linux mailing list
> linux at lists.samba.org
> https://lists.samba.org/mailman/listinfo/linux

-- 
Kim Holburn
IT Network & Security Consultant
T: +61 2 61402408  M: +61 404072753
mailto:kim at holburn.net  aim://kimholburn
skype://kholburn - PGP Public Key on request 





More information about the linux mailing list