Re: [Nottingham] 1GB of \0 (aka null)

From: Martin <martin(a)ml1.co.uk>
Date: Tue 16 May 2006 - 14:03:28 BST

Paul Sladen wrote:
> On Wed, 3 May 2006, Martin wrote:
>
>>And what is best for overwriting unused areas of the hdd so that bzip2
>>can achieve maximum compression? (I'm guessing all ff's or all 00's will
>>do nicely.)
>
> Zeros are better; the utility used to do this on the (pre-dapper) Ubuntu
> LiveCDs is:
>
> http://www.paul.sladen.org/ubuntu/e2fszero/e2fs-zero.py
>
> which zeros out unused blocks on an Ext2 filesystem.

Thanks for the note.

I'm using ReiserFS so I just used:

dd if=/dev/zero of=bigfileofzeros

to fill up the spare space on that partition and then deleted the file.
That zeros the spare space with just a small overhead for the inodes used.

Or is there some utility...

BTW: It certainly works well with gzip!

Which leads onto another question...

Cheers,
Martin

-- 
----------------
Martin Lomas
martin@ml1.co.uk
----------------
_______________________________________________
Nottingham mailing list
Nottingham@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/nottingham
Received on Tue May 16 14:05:39 2006