Just what subject says, I need a utility to scramble/ overwrite deleted
file space to make the files unrecoverable. I just read about Shred,
but it requires moving all existing files off of the drive first, then
doing a drive overwrite and/or overwriting the file no longer wanted.
Thank you
Just what subject says, I need a utility to scramble/ overwrite deleted file space to make the files unrecoverable. I just read about Shred, but it requires moving all existing files off of the drive first, then doing a drive overwrite and/or overwriting the file no longer wanted.
Thank you
Just what subject says, I need a utility to scramble/ overwrite deleted
file space to make the files unrecoverable. I just read about Shred,
but it requires moving all existing files off of the drive first, then
doing a drive overwrite and/or overwriting the file no longer wanted.
Thank you
While backing up with "dd" is a pretty time-wasting thing to do,
it's part of preparing for the test of other backup programs. You
make "dd" backups because you know they work.
Just what subject says, I need a utility to scramble/ overwrite deleted
file space to make the files unrecoverable. I just read about Shred,
but it requires moving all existing files off of the drive first, then
doing a drive overwrite and/or overwriting the file no longer wanted.
Thank you
Just what subject says, I need a utility to scramble/ overwrite deleted
file space to make the files unrecoverable. I just read about Shred,
but it requires moving all existing files off of the drive first, then
doing a drive overwrite and/or overwriting the file no longer wanted.
Thank you
On Wed, 3/11/2026 10:38 PM, JR Dolobson wrote:
Just what subject says, I need a utility to scramble/ overwrite deleted file space to make the files unrecoverable. I just read about Shred, but it requires moving all existing files off of the drive first, then doing a drive overwrite and/or overwriting the file no longer wanted.
Thank you
1) Unmount partition /dev/sdb2 # Can't have target partition mounted while this runs
2) sudo zerofree /dev/sdb2 # Writes the unallocated space, removing deleted material evidence
For the slash partition, boot with a LiveDVD (slash is now unmounted)
and try it out. The default fill is zeros, which is a good choice.
https://manpages.ubuntu.com/manpages/focal/man8/zerofree.8.html
sudo zerofree /dev/sdb2 # Zero out unmounted EXT family partition and its unallocated blocks
# Any undeleted files will not be touched
# Typical usage:
# Used just before doing a compact on a VHD container with EXtn inside
# Also used to zero unused parts of /dev/sdb2 before the usage of a dd.gz backup op.
# Zero the EXTn on /dev/sdb one at a time, then sudo dd and pipe to a compressor.
While backing up with "dd" is a pretty time-wasting thing to do,
it's part of preparing for the test of other backup programs. You
make "dd" backups because you know they work. Does NOT support resize particularly. dd tends to be for "like-to-like" situations (requires
lowest skill level of the user).
Anything requiring physical layer access to storage, needs elevation.
The compressor doesn't need to be elevated, as it comes later.
Zerofree does not support a very wide selection of partition types,
but I can still fit this into a workflow.
Example: 1TB drive with 20GB worth of OS files. Zerofree.
dd | then pipe to compressor, output file would be 20GB or less in size.
A good approach for partially filled partitions. All of the zeros,
can compress quite well.
Paul
| Sysop: | DaiTengu |
|---|---|
| Location: | Appleton, WI |
| Users: | 1,101 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 492448:07:15 |
| Calls: | 14,119 |
| Calls today: | 1 |
| Files: | 186,272 |
| D/L today: |
35,786 files (11,339M bytes) |
| Messages: | 2,498,678 |