View previous topic :: View next topic |
Author |
Message |
befortin Apprentice
Joined: 10 Feb 2004 Posts: 193
|
Posted: Mon Mar 07, 2005 9:52 pm Post subject: Secure delete on journaling filesystem? |
|
|
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
Anyone knows a package that could do this?? |
|
Back to top |
|
|
codergeek42 Bodhisattva
Joined: 05 Apr 2004 Posts: 5142 Location: Anaheim, CA (USA)
|
Posted: Mon Mar 07, 2005 10:01 pm Post subject: |
|
|
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 |
|
|
PowerFactor Veteran
Joined: 30 Jan 2003 Posts: 1693 Location: out of it
|
Posted: Tue Mar 08, 2005 2:26 am Post subject: |
|
|
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 |
|
|
Roguelazer Veteran
Joined: 10 Feb 2003 Posts: 1233 Location: San Francisco, CA
|
Posted: Tue Mar 08, 2005 2:49 am Post subject: |
|
|
Switch to ext3 and mount it as ext2? _________________ Registered Linux User #263260 |
|
Back to top |
|
|
codergeek42 Bodhisattva
Joined: 05 Apr 2004 Posts: 5142 Location: Anaheim, CA (USA)
|
Posted: Tue Mar 08, 2005 4:49 am Post subject: |
|
|
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 |
|
|
befortin Apprentice
Joined: 10 Feb 2004 Posts: 193
|
Posted: Tue Mar 08, 2005 3:05 pm Post subject: |
|
|
OMG! Next time I'll use the good ol' ext2!! |
|
Back to top |
|
|
PowerFactor Veteran
Joined: 30 Jan 2003 Posts: 1693 Location: out of it
|
Posted: Tue Mar 08, 2005 9:53 pm Post subject: |
|
|
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 |
|
|
|