LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   shred program for ext3 (https://www.linuxquestions.org/questions/linux-software-2/shred-program-for-ext3-112777/)

elconde 11-05-2003 03:06 PM

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!





-R

evil_Tak 11-05-2003 03:30 PM

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).

elconde 11-06-2003 02:08 PM

A bit heavy handed. I just want to shred a couple of files. I'll keep that in mind though!

camelrider 11-06-2003 07:34 PM

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.

qwijibow 11-24-2003 06:08 PM

maybe this would work

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

then delete the file's you want to shred
then...
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 ?????


All times are GMT -5. The time now is 08:35 AM.