Weekend Project: Scrub Files and Old Hard Drives Securely on Linux | Linux Today

Weekend Project: Scrub Files and Old Hard Drives Securely on Linux

Written By
Web Webster
Web Webster
Feb 14, 2011

“Whether you are upgrading components for a system refresh,
selling an old laptop on Craigslist, or recycling your desktop PC,
there comes a time when you have to wipe a storage device in
preparation for giving it to someone else. Chances are, you don’t
want whoever gets physical access to your old hard disk to have
unfettered access to its contents: files, email, passwords, the
embarrassingly-high frequency of Justin Beiber sites in your
browsing history. You’ll find several open source utilities for
wiping away personal data — so this weekend, why not take
stock of your options and put together a deep-clean routine?

“Gone but Not Forgotten: When Delete is Not Delete

“One thing most experienced Linux veterans know is that once you
delete a file with rm, it’s not just moved to hidden “recycle
basket” folder, it’s gone. That’s because Linux and other Unix-like
systems reuse filesystem blocks with regularity, and rm actually
frees the blocks where the deleted file used to reside — so
the odds are that they will get overwritten with temporary data
pretty quickly.

“But there is no guarantee that the blocks will be overwritten.
As a result, just rm-ing the contents of your disk alone won’t
remove the files contents, especially if you unmount and unplug the
now-empty disk, rather than reuse it elsewhere. In fact, that’s how
file-recovery tools like PhotoRec work: they scan the actual
contents of the blocks, which can include data and pointers to
other blocks of data.”


Complete Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.