BSD Ports

sysutils/wipe 2.3.1 NetBSD

Secure data destruction

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
gnu-gpl-v2
Categories
sysutils
Package size
28.9 KiB, 73.9 KiB installed

Description

Wipe is a secure file wiping utility.

There are some low level issues that must be taken into consideration. One of these is that there must be some sort of write barrier between passes. Wipe uses fdatasync(2) (or fsync(2)) as a write barrier, or if fsync(2) isn't available, the file is opened with the O_DSYNC or O_SYNC flag. For wipe to be effective, each pass must be completely written. To ensure this, the drive must support some form of a write barrier, write cache flush, or write cache disabling. SCSI supports ordered command tags, has a force media access bit for commands, and write cache can be disable on mode page 8. IDE/ATA drives support write cache flushes and write cache disabling.

Unfortunately, not all drives actually disable write cache when asked to. Those drives are broken. Write caching should always be disabled, unless your system is battery backed and always powers down cleanly.

In the other systems

SystemPortVersion
NetBSDsysutils/wipe2.3.1
FreeBSDsecurity/wipe2.3.1_2
DragonFlysecurity/wipe2.3.1_2
MidnightBSDsecurity/wipe2.3.1_1

Install

Binary package:

pkgin install wipe

From pkgsrc:

cd /usr/pkgsrc/sysutils/wipe && make install clean

Dependencies

No port depends on this one.