Re: file shredding



On Fri, 29 Jun 2007 20:41:00 -0700, Keith Thompson <kst-u@xxxxxxx>
wrote in comp.lang.c:

Jack Klein <jackklein@xxxxxxxxxxx> writes:
On Fri, 29 Jun 2007 12:38:27 -0000, "prachi983@xxxxxxxxx"
<prachi983@xxxxxxxxx> wrote in comp.lang.c:
i lookikng for a prgram or algorithm for file shredding....anybody
having it please mail me...

The only way to almost guarantee secure file shredding on some storage
devices (e.g., CompactFlash and other flash types) is to completely
overwrite the entire thing.

Even in that case, a block failure could leave some of the original
date in existence.

This is way off-topic for comp.lang.c, but my (vague) understanding is
that even overwriting the entire file isn't guaranteed to make the
original data impossible to retrieve.

Any storage device is an analog device pretending to be a digital
device. Something that looks like either a 0 or a 1 might really be a
0.05 or a 0.95 (or a 1.05), and it may still be possible to infer
something about the bit's history.

The GNU coreutils package includes a program called "shred"; see its
documentation for more information. It does a lot more than just
overwriting data, and it doesn't guarantee results.

Thermite really is one of the most reliable methods. No kidding.

In a way it really is on-topic, because it exposes the fallacy of the
common assumption that "everything is a Windows/Linux/Mac box just
like the one I use".

How can you shred a on pressed CD that came in a shrink-wrapped box
from your local retailer? Short of physically destroying the disk,
that is.

Even assuming that the OP is thinking of a read/write device, he is
making assumptions that are nowhere as true today as they were a few
years.

He assumes that the file he wants to shred is stored on a device like
a hard or floppy disk, a block storage device where code can directly
access every block.

That's not true of a good many hard disk drives these days, and
definitely not true for most flash memory "SSD" devices.

Given sufficient free space on the SSD, attempting to use platform and
hardware specific methods to overwrite the blocks holding the file
multiple times could well result in the actual flash blocks not being
overwritten at all, although they probably will be erased once.

These flash memory cards actually have their own internal
microcontroller that remaps what the OS and device driver thinks are
absolute physical blocks into its own idea of which block should be
written to next.

Even some hard disk drives these days have onboard controllers that do
this sort of thing.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.club.cc.cmu.edu/~ajo/docs/FAQ-acllc.html
.



Relevant Pages

  • Re: Hive with self made Flash File System
    ... Location of hive files is on Flash. ... I set the flag to start device manager and storage ... The flash filesystem is ...
    (microsoft.public.windowsce.platbuilder)
  • Re: [PATCH] LogFS take three
    ... but for real long-term storage it's really a bad idea. ... For example, removing flash card ... the problems with the underlying FTL continuing to keep (and copy around ... However, as the demand for capacity, reliability and high performance ...
    (Linux-Kernel)
  • Re: Question about Flash + Law
    ... have heard anything and everything when it comes to flash. ... Now days you better have at least type 4 storage and if you really want to ... going to shoot your stuff off. ... tubes that either burn slowly with a very bright light (Green, ...
    (rec.pyrotechnics)
  • Re: Nvram write modes and problems
    ... attached devices like them are non-volatile *storage*. ... If you make a distinction based on ease of write then flash ... becomes non-volatile storage rather than memory. ... too different from actual RAM to be called NVRAM. ...
    (comp.arch.embedded)
  • Re: A very unique new camcorder !!
    ... This camcorder stores its' recordings on either a hard disk or Flash ... In essense post-shoot storage is a massive and currently unsolvable ... hard drives" anything but deeply stupid. ... thousand gallons of popcorn a second. ...
    (rec.video.production)