Re: secure erasure of files?

From: Andrew Morton (akpm@zip.com.au)
Date: Tue Feb 12 2002 - 15:25:01 EST


Jan Hudec wrote:
>
> > I don't know if any filesystem currently relocates blocks if you
> > overwrite a file, but it's certainly possible and allowed (everything
> > else except the filesystem itself simply must not care where the data
> > actually ends up on the disk).
>
> AFAIK, ext2 tries to defragment files when possible.

We wish.

> Thus if the file was
> fragmented and the blocks after some fragment are free, it will use these
> instead of the original ones somewhere far apart.

Nope - if you're overwriting a part of the file which already has
allocated blocks, ext2/3 will use the same blocks.

Of course, the disk itself may decide to go and remap the block
if it decides that part of the media is getting tired.

-
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Feb 15 2002 - 21:00:50 EST