On 16/07/10 01:01 PM, Ron Johnson wrote:
I don't think you can of= just the "empty" parts of your partition. Attached is a Python script I use to "zero" out the free space of a mounted partition.
Thanks for the script. You are basically writing 0xFF to the available disk space. I used to have a C program which just did a similar thing, writing 0x00 to a new file till the disk was full (or almost full). I just deleted that file after I ran the program. This helped to compress an image of the disk (using dd) quite nicely since all zeros give a better compression ratio.
Having said that, why would dd not work the same way when I am writing to a file using "of" on the partition in question?
-- Please reply to this list only. I read this list on its corresponding newsgroup on gmane.org. Replies sent to my email address are just filtered to a folder in my mailbox and get periodically deleted without ever having been read.