Step-by-Step Secure Erasing of a Data Storage Device

Motivation

If you didn't have the whole device encrypted, including swap space, a regular delete file command only removes the file's entry from the index and marks the space as free, so the file's contents are left intact until they are overwritten by some other file at an arbitrary time. Thus, when giving a storage device away, e.g., selling or discarding it, and you don't want to have anyone find your personal data on it, you have to manually clean it.

Preparation

Overwrite

Alternative Solutions