Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Secure delete on journaling filesystem?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
befortin
Apprentice
Apprentice


Joined: 10 Feb 2004
Posts: 193

PostPosted: Mon Mar 07, 2005 9:52 pm    Post subject: Secure delete on journaling filesystem? Reply with quote

I'm using Reiserfs and I'm looking for a way to securely delete file on this filesystem (and fill the empty space on the drive). The secure-delete package, from THC, doesn't work for journaling filesystems. And I don't want to delete ALL the data on the drive :wink:

Anyone knows a package that could do this??
Back to top
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Mon Mar 07, 2005 10:01 pm    Post subject: Reply with quote

Perhaps you can just fill it with random meaningless data, then rm it like normal?
Code:
# dd if=/dev/urandom of=/path/to/file
# dd if=/dev/urandom of=/path/to/file
# dd if=/dev/urandom of=/path/to/file
(...do it a few more times...)
# dd if=/dev/zero of=/path/to/file
# rm -f /path/to/file
You may also want to unmount the filesystem to be sure that the transactions are removed from the journal and flushed to disk.
_________________
~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF
Back to top
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Tue Mar 08, 2005 2:26 am    Post subject: Reply with quote

codergeek42 wrote:
Perhaps you can just fill it with random meaningless data, then rm it like normal?

Doesn't work on a journaled filesystem, for the same reasons secure-delete, shred and others don't work.
Back to top
View user's profile Send private message
Roguelazer
Veteran
Veteran


Joined: 10 Feb 2003
Posts: 1233
Location: San Francisco, CA

PostPosted: Tue Mar 08, 2005 2:49 am    Post subject: Reply with quote

Switch to ext3 and mount it as ext2? :P
_________________
Registered Linux User #263260
Back to top
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Tue Mar 08, 2005 4:49 am    Post subject: Reply with quote

PowerFactor wrote:
codergeek42 wrote:
Perhaps you can just fill it with random meaningless data, then rm it like normal?

Doesn't work on a journaled filesystem, for the same reasons secure-delete, shred and others don't work.
Ok this is going slightly off-topic, I apologize; but why wouldn't this work on a journalled filesystem if you force it to flush all transactions to the filesystem by unmounting it instead of simply letting them possibly remain in the journal? Wouldn't it have the same effect as a non-journalled filesystem that the filesystem itself is immediately altered? What about mounting the filesystem with synchronous I/O (adding the 'sync' moun option to /etc/fstab, for example)?
_________________
~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF
Back to top
View user's profile Send private message
befortin
Apprentice
Apprentice


Joined: 10 Feb 2004
Posts: 193

PostPosted: Tue Mar 08, 2005 3:05 pm    Post subject: Reply with quote

OMG! Next time I'll use the good ol' ext2!!
Back to top
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Tue Mar 08, 2005 9:53 pm    Post subject: Reply with quote

codergeek42 wrote:
PowerFactor wrote:
codergeek42 wrote:
Perhaps you can just fill it with random meaningless data, then rm it like normal?

Doesn't work on a journaled filesystem, for the same reasons secure-delete, shred and others don't work.
Ok this is going slightly off-topic, I apologize; but why wouldn't this work on a journalled filesystem ...


See the shred manpage for a brief description of the problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum