Page 1 of 1

Looking for shred

Posted: Sat 22 Mar 2014, 20:26
by friendofjane
Hello,

does somebody knows where I can find the shred utility, the command line program to wipe securily files ?

I find it strange because shred is a standard command line utility we can find on many distributions.

In my Package manager I tried all possible repositories but nowhere there is the shred utility to install.

Cheers
friendofjane

Posted: Sat 22 Mar 2014, 20:47
by Flash
I don't know. Seems like it ought to be around here somewhere. Will this do instead?

Posted: Sat 22 Mar 2014, 21:09
by Semme
It's part of the coreutils pkg. :wink:

Posted: Sun 23 Mar 2014, 08:02
by amigo
Puppy uses busybox instead of coreutils, so it is not in puppy. I would not simply install coreutils, though, as it will break many puppy scripts which depend on the busybox versions of tools included in coreutils.

Posted: Sun 23 Mar 2014, 19:30
by sheldonisaac
amigo wrote:Puppy uses busybox instead of coreutils, so it is not in puppy. I would not simply install coreutils, though, as it will break many puppy scripts which depend on the busybox versions of tools included in coreutils.
I have
~> shred --version
shred (GNU coreutils) 7.4
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
It came with the SuperLuPu I'm using just now on this computer.
amigo, any ideas on what should I look out for with regard to scripts breaking?

Posted: Sun 23 Mar 2014, 22:13
by Semme
FOJ, 4 Precise now and may need a lib.. Unpack'n stick it in /usr/bin.

Posted: Mon 24 Mar 2014, 01:25
by Flash
I downloaded the shred.gz, unzipped it and put it in usr/bin. The first time I entered shred --help in a console, it told me I didn't have permission, so I right-clicked on shred in usr/bin, chose permissions and told it to make it executable. Then the help menu appeared.

I found a very interesting thing in shred's instructions:
In the case of ext3 file systems, the above disclaimer applies
(and shred is thus of limited effectiveness) only in data=journal mode,
which journals file data in addition to just metadata. In both the
data=ordered (default) and data=writeback modes, shred works as usual.
Ext3 journaling modes can be changed by adding the data=something option
to the mount options for a particular file system in the /etc/fstab file,
as documented in the mount man page (man mount)
It would appear that ext3 can be a journaling file system!

Posted: Mon 24 Mar 2014, 05:50
by friendofjane
Thank you, I will try that shred and tell you.

Posted: Mon 24 Mar 2014, 05:50
by amigo
Of course ext3 is a journalling FS.
No problem using a 'loose' copy of shred - that won't break anything.

Posted: Mon 24 Mar 2014, 13:05
by Semme
Newer, from Slack 14.1 >> coreutils v8.21. This one unpacks to /bin. If the other works, that's fine, leave it.

Posted: Mon 07 Apr 2014, 22:58
by slavvo67
Can't something similar be done with a simple bash script? Just curious...

Posted: Mon 07 Apr 2014, 23:06
by Semme
:D Slavvo.. this a tease? Cough it up!

Posted: Wed 21 May 2014, 05:29
by slavvo67
Hi Semme:

I just saw your response. Now I'm going crazy looking for the script that I tied to an Ubuntu "shred like" program but much faster. I'll get back to you on this. Of course there's the dd script but there's something better and quick....

So, while you salivate... take a look at this...

http://www.noah.org/wiki/Dd_-_Destroyer_of_Disks

This above is an amazing write-up about wiping disks. Wish I could take credit but not me.

Stay tuned. I'll find that script and program I'm talking about....

Best,

Slavvo67

Posted: Wed 21 May 2014, 09:28
by Semme
Let me guess >> srm? Don't worry, I'm far from :wink: hell-bent.

Posted: Mon 26 May 2014, 03:12
by slavvo67
Actually, I believe it was HDParm. But I lost the script that I wrote as a front end. :oops: I'm need to stop saving in Root when I'm running a live CD. LOL