Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-05-2003, 04:06 PM   #1
Registered: Sep 2001
Location: Cherry Hill, NJ
Distribution: Gentoo baby!
Posts: 67

Rep: Reputation: 15
shred program for ext3

From the shred man page:

CAUTION: Note that shred relies on a very important assumption: that
the filesystem overwrites data in place. This is the traditional way
to do things, but many modern filesystem designs do not satisfy this
assumption. The following are examples of filesystems on which shred
is not effective:

* log-structured or journaled filesystems, such as those supplied with

AIX and Solaris (and JFS, ReiserFS, XFS, etc.)

I'm using ext3. It is a journaled fs. How can I shred stuff?

Please send an answer quick. The FBI is coming!

Old 11-05-2003, 04:30 PM   #2
Registered: Oct 2003
Distribution: Debian/unstable
Posts: 85

Rep: Reputation: 15
AFAIK, the only way to wipe files from a journalled filesystem is to wipe out the whole partition (e.g. dd if=/dev/urandom of=/dev/hda1).
Old 11-06-2003, 03:08 PM   #3
Registered: Sep 2001
Location: Cherry Hill, NJ
Distribution: Gentoo baby!
Posts: 67

Original Poster
Rep: Reputation: 15
A bit heavy handed. I just want to shred a couple of files. I'll keep that in mind though!
Old 11-06-2003, 08:34 PM   #4
Registered: Apr 2003
Location: Juneau, Alaska
Posts: 247

Rep: Reputation: 31
I've not really looked into this, but it seems possible to convert ext3 to ext2, remove the journal, shred the files, then do the -j thing again with mkfs.ext2 to get your ext3fs back.

NOTE: You might want to find out for sure if you can conver back to ext2 without destroyign files before making the change. I didn't read the man page recently.
Old 11-24-2003, 07:08 PM   #5
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
maybe this would work

cd [sumwhere_where_quota's_arnt_used] (e.g. cd /usr/)

then delete the file's you want to shred
yes "Nirvana Are the GREATEST BAND EVER" > BigFile

which will fill the free hard drive space with the repeated string above,

then delete the big_file

rm BigFile.

would that work ?????


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
why does the new version of kgpg shred so fast? darksmiley Linux - Security 7 04-23-2006 04:02 PM
shred folder from konsole illtbagu Linux - General 6 05-06-2004 10:39 AM
Deleting Linux, All Partitions, Every Shred of Data! g-force Linux - Newbie 2 05-03-2004 11:04 PM
Bootdisk with Shred or dd for Alpha bretticus Linux - Newbie 0 11-11-2003 11:22 PM
what is meant by shred? murshed Linux - Newbie 5 04-13-2003 11:50 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration