this post was submitted on 11 Dec 2025
19 points (95.2% liked)
cybersecurity
5382 readers
1 users here now
An umbrella community for all things cybersecurity / infosec. News, research, questions, are all welcome!
Community Rules
- Be kind
- Limit promotional activities
- Non-cybersecurity posts should be redirected to other communities within infosec.pub.
Enjoy!
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
shredis intended to overwrite the actual on-disk contents by overwriting data in the file prior to unlinking the files. However,shredisn't as effective on journalled filesystems, because writing in this fashion doesn't overwrite the contents on-disk like this. Normally, ext3, ext4, and btrfs are journalled. Most people are not running ext2 in 2025, save maybe on their/bootpartition, if they have that as a separate partition.I don’t think journaled file systems fare any better. You’re probably thinking COW (copy on write) systems like zfs and btrfs, but I don’t see how journaling helps with overwrite recovery at all.
It looks like I was wrong about it being the default journaling mode for ext3; the default is apparently to journal only metadata. However, if you're journaling data, it gets pushed out to the disk in a new location rather than on top of where the previous data existed.
https://linux.die.net/man/1/shred