Questions tagged [data-destruction]

Wiping data from a storage medium so that it cannot be recovered

Use this tag for questions about securely erasing data, i.e. wiping it in such a way that it cannot be undeleted.

Further reading

16 questions
66
votes
9 answers

How do I recursively shred an entire directory tree?

I have a directory tree that I would like to shred with the Linux 'shred' utility. Unfortunately, shred has no -R option for recursive shredding. How can I shred an entire directory tree recursively?
Steve V.
  • 893
  • 1
  • 6
  • 10
33
votes
12 answers

Erasing a Linux laptop

I have a laptop with Debian on it, and I am going to sell this laptop. Would it suffice to erase the Debian installation before selling it to completely clean up my laptop from my personal data, and if yes how can I uninstall Debian (so that there…
user106035
33
votes
5 answers

How can I securely delete the contents of a thumb drive so data can't be recovered.

I would like to know how to delete a USB flash drive via the terminal if possible so data can't be recovered.
user
  • 2,227
  • 6
  • 20
  • 25
17
votes
3 answers

How can I be sure that a directory or file is actually deleted?

I know that most files, when deleted, aren't actually removed from the disk, and can be recovered later. How can I ensure that a directory I had deleted will actually be removed from the disk? Are there utilities for that? I'm using Debian Linux.
jcora
  • 3,874
  • 7
  • 34
  • 52
15
votes
8 answers

What's the best way to format a HDD in Linux in order to leave no trace?

I'm running Debian and need a way to format the entire hdd in order to not leave any trace on it because I want to donate it to a friend. So what will be the best way in order to format it? If I reinstall the OS it will not fully format it. I'm…
Lispninjutsu
  • 291
  • 1
  • 2
  • 3
11
votes
5 answers

how do I wipe a server that I don't have physical access to?

I have a Godaddy dedicated server that I would like to cancel. Before I do that I'd like to do a clean format on the server to make sure that the next person who gets the server isn't able to undelete anything (I don't know how thorough Godaddy is…
7
votes
3 answers

Emergency wipe SSD

I have a SSD drive with LUKS encrypted partition. How to discard all data with one command? Or damage it to non-recoverable state? Even if partition is in use.
NapoleonTheCake
  • 263
  • 2
  • 11
6
votes
1 answer

Regarding the creation and destruction of sensitive data on linux/unix systems

In modern file systems (and on modern SSDs) there is no guarantee that if you write over a file using a traditional utility (such as dd) that the data will be overwritten in-place and journaled backups destroyed. As a result, the data could…
Schives
  • 699
  • 4
  • 12
6
votes
3 answers

How to securely delete a directory without leaving a trace?

I already know that using shred will overwrite my files in such a way that leaves them unrecoverable. However shred can't be used to hide directories. Error Message: failed to open for writing: Is a directory I can't use hard-drive…
1478963
  • 161
  • 1
  • 5
2
votes
1 answer

Making a Deleted folder Impossible to Recover

Suppose you visit a bad location on earth with your laptop. Thieves are about to break in and steal your laptop. So you run : rm -rf /folder but what if thieves have very advanced tools to recover deleted files ? perhaps as advanced as FBI / CIA…
user217298
2
votes
1 answer

Secure deletion on BTRFS in LVM

I have a BTRFS filesystem in an LVM logical volume, which exists inside of a LUKS disk. For reference's sake, let's call the LV lvm-root, and the LUKS disk crypt-root, and the BTRFS filesystem fs-root. It looks like this: /dev/sda3:…
Naftuli Kay
  • 38,686
  • 85
  • 220
  • 311
2
votes
4 answers

Multiple passes of wiping disk with `dd`

I want to use dd to overwrite a disk multiple times to destroy data beyond recovery. I know I could use dd if=/dev/zero/ of=/dev/sdx/ to do a pass with zeros, or dd if=/dev/null/ of=/dev/sdx/ to accomplish similar (not exact same) result, but it…
No Time
  • 1,147
  • 3
  • 13
  • 23
1
vote
2 answers

Securely shredding files

Is the following a secure way of shredding files in *NIX systems: shredder.sh #!/bin/bash # Define number of rewrites COUNT=20 # Define file size FILE_SIZE=`wc -c < "$1"` # Begin rewriting file while [ $COUNT -ge 0 ] do # Write random data to…
Sebi
  • 999
  • 5
  • 16
  • 29
0
votes
1 answer

Self destruct a Linux VM with SSH access only

Lets assume I have a virtual machine and no access to the hypervisor in any way. Also I cannot change any system parameters like setting up password protected booting with LUKS or anything. I can however install whatever tools I'd like and have full…
Felix
  • 33
  • 1
  • 3
-1
votes
1 answer

Reboot and zero drive

Is it possible to issue one command that will both reboot, boot to an external live drive or something similar, and then zero a hard drive?
user75027
  • 613
  • 2
  • 8
  • 12
1
2