secure_deletion.mdwn 4.56 KB
Newer Older
1 2
[[!meta title="Securely delete files and clean diskspace"]]

[[!toc levels=1]]

5 6
<a id="why"></a>

7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
Why use secure deletion?

**Operating systems do not actually remove the contents of a file when it is
deleted**, even after emptying the trash or explicitly removing the file, from
the command line for example.

Instead, they simply remove the file's entry from the file system directory,
because this requires less work and is therefore faster. The contents of the
file—the actual data—remain on the storage medium. The data will remain there
until the operating system reuses the space for new data.

Likewise, reformatting, repartitioning or reimaging a system is not always
guaranteed to write to every area of the disk, though all will cause the disk to
appear empty or, in the case of reimaging, empty except for the files present in
the image, to most software.

Finally, even when the storage medium is overwritten, physical properties of the
medium may make it possible to recover the previous contents. In most cases
however, this recovery is not possible by just reading from the storage device
in the usual way, but requires using laboratory techniques such as disassembling
the device and directly accessing/reading from its components.

<p class="quoted-from">Quoted from [[!wikipedia Secure_file_deletion
desc="Wikipedia: %s"]].</p>

33 34
<a id="usb_and_ssd"></a>

35 36 37 38 39 40
Warning about USB sticks and solid-state drives

**The methods described below will not work as expected on USB sticks and
solid-state drives.**

41 42 43
- The existing hard drive-oriented techniques for secure deletion of
  individual files are not effective.
- Overwriting twice the entire drive is usually, but not always,
44 45
  sufficient to securely clean the drive.

<div class="caution">

48 49 50
Unfortunately, Tails does not currently allow you to perform this task
with graphical tools.

Tails developers's avatar
Tails developers committed
[[!tails_todo wiping_flash_media desc="See the corresponding ticket."]]

53 54

55 56 57 58 59 60 61 62 63 64 65
For more details read, the corresponding section of the Wikipedia article on
[[!wikipedia Secure_file_deletion#Data_on_solid-state_drives desc="Secure file

Securely delete files

In Tails you can securely delete files thanks to an extension of the Nautilus
file manager called [Nautilus

Tails developers's avatar
Tails developers committed
66 67 68
  1. Open the <span class="application">Nautilus</span> file browser, either
  from the <span class="guimenu">Places</span> menu or the <span
  class="guilabel">Computer</span> icon on the desktop.

  1. Navigate to the folder containing the files that you want to delete.

  1. Select the files that you want to delete with the mouse.

  1. Right-click on the files and choose <span class="guimenuitem">Wipe</span>.

     [[!img wipe_files.png link=no alt="Right-click&nbsp;▸ Wipe"]]

  1. Confirm.

80 81
  1. The deletion will start. It can last from a few seconds to several minutes,
  according to the size of the files. Be patient…

83 84
<a id="clean_disk_space"></a>

85 86 87 88
Securely clean available disk space

In order to clean up the contents of all files that were previously suppressed's avatar committed
89 90
but not securely deleted from a disk, it is also possible to securely clean all 
the free space on the disk.

<div class="caution">

This method does not work as expected on solid-state drives or USB sticks.

97 98 99 100

The disk or the folder may or may not contain other files. Those files will not
be deleted during the operation.

Tails developers's avatar
Tails developers committed
101 102
  1. Open Nautilus, either from the <span class="guimenu">Places</span> menu or
  the <span class="guilabel">Computer</span> icon on the desktop.

104 105
  1. Go to the root of the disk that you want to clean (click on the
     disk in the left panel).

107 108
  1. Right-click in empty space in the right panel and choose <span
     class="guimenuitem">Wipe available diskspace</span>.

110 111
     [[!img wipe_available_diskspace.png link=no alt="Right-click&nbsp;▸ Wipe
     available diskspace"]]

  1. Confirm.

  1. The cleaning will start. It can last from a few minutes to a few hours,
     according to the size of the available diskspace. Be patient…

118 119 120 121 122
     Note that a file called <span
     class="filename"></span> is created in the
     folder. <span class="application">Nautilus Wipe</span> tries to
     make it as big as possible to use all the available diskspace and
     then securely deletes it.
123 124 125 126

<div class="caution">

This option does not delete hidden files. Previously deleted files can
127 128
still exist in hidden trash folders: you can make them appear in
Nautilus by doing "View → Show hidden files".
129 130