LinuxCommandLibrary

sfill

Securely wipe free disk space

TLDR

Securely wipe free space (38 writes)

$ sfill /path/to/mounted_disk
copy
Fast wipe with 6 writes
$ sfill -l -v /path/to/mounted_disk
copy
Fastest wipe with 1 write
$ sfill -ll -v /path/to/mounted_disk
copy
Wipe only free space (not inodes)
$ sfill -I /path/to/mounted_disk
copy
Wipe only free inodes
$ sfill -i /path/to/mounted_disk
copy

SYNOPSIS

sfill [options] directory

DESCRIPTION

sfill securely overwrites the free space and inodes of a partition where the specified directory resides. It uses multiple passes to prevent recovery of previously deleted files.

PARAMETERS

-l

Use less secure mode with fewer overwrites (6 passes instead of 38)
-ll
Use fast mode with single overwrite pass
-v
Verbose mode; show progress
-I
Overwrite only free disk space, not inodes
-i
Overwrite only free inodes, not disk space
-f
Force operation without prompting
-z
Final overwrite with zeros instead of random data

CAVEATS

This operation is time-consuming, especially with the default 38 passes. SSDs may not be effectively wiped due to wear leveling. The target must be a mounted filesystem, not a raw device.

HISTORY

sfill is part of the secure-delete package, providing tools for securely erasing data to prevent forensic recovery.

SEE ALSO

srm(1), smem(1), sswap(1), shred(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community