Re: Wanted: Secure-delete utility for Linux

Pauline Middelink (middelin@polyware.nl)
Wed, 23 Dec 1998 00:02:55 +0100


On Tue, Dec 22, 1998 at 10:13:13PM +0100, Rik van Riel wrote:
> On Tue, 22 Dec 1998, Pauline Middelink wrote:
> > On Tue, Dec 22, 1998 at 05:51:39PM +0100, Clifford Wolf wrote:
> > > On Tue, 22 Dec 1998, Dave Cinege wrote:
> > >
> > > > > Actually, it's all-bits-zero, all-bits-one, all-bits-zero. This prevents
> > > > > people from reading the previous data from residual magnetic fields underneath
> > > > > a disk which has simply been wiped with zeroes, etc. The complete cycle for
> > > > > each bit is enough to minimize this risk.
> > > >
> > > > Hmmm I guess we need a /dev/one? (Actually not a bad thing to have)
> > >
> > > IMHO the name /dev/one would be a bad idea. Becouse this could mean an
> > > integer one which is 00000001 for 8-bit, 0000000000000001 for 16-bit, and
> > > so on.
> > >
> > > I don't know a better name - but IMHO /dev/one would be a bad name.
> >
> > How about /dev/zeros?
>
> 'Safe' deletion consists of overwriting the file multiple
> times, 3 times with random values, 3 times with zeros and
> 3 times with ones.
Oh, but the point was getting some easy source of 1's, just like
we have /dev/zero for 0's. This way we could use dd for clearing/
setting/randomizing the contents of the file...

==============
#!/bin/sh
dd if=/dev/zero of=$1 bs=1k
dd if=/dev/ones of=$1 bs=1k
dd if=/dev/zero of=$1 bs=1k
dd if=/dev/ones of=$1 bs=1k
# some random source :)
dd if=/vmlinuz of=$1 bs=1k
==============

> I guess we might as well do this in userspace :)
Yup. :)

> Rik -- the flu hits, the flu hits, the flu hits -- MORE
Still beeing ill?

Met vriendelijke groet,
Pauline Middelink

-- 
PGP Key fingerprint = DE 6B D0 D9 19 AD A7 A0  58 A3 06 9D B6 34 39 E2
For more details look at my website http://www.polyware.nl/~middelin

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