LWN.net Logo

What about shred(1)?

What about shred(1)?

Posted Oct 13, 2011 6:56 UTC (Thu) by djwong (subscriber, #23506)
In reply to: What about shred(1)? by pr1268
Parent article: Securely deleting files from ext4 filesystems

That depends -- if only the file contents are precious, then shred will securely wipe the data blocks, since with the default mount options, file data doesn't go through the journal. If you're using data=journal mode, you can always write $JOURNAL_SIZE amount of data to fill up the journal thereby overwriting anything that was in it. If, however, the metadata was also precious, then yes, shred alone might not have been sufficient. Though it isn't difficult to change most of the fields in an inode/extent tree/attributes from userspace.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds