You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
-
5Going from "shred is bad" (true for single files, regardless of HDD/SSD; fine for full device wipes) to "blkdiscard isn't safe" (true in theory, usually fine in practice) to "you can just use rm" sounds like bad advice to me... anyone can photorec, in the end for SSD it'll still be TRIM/discard (blkdiscard, fstrim, discard mount flag) to get rid of that data. For HDD you must overwrite (entire device or all free space) in a single pass. There is no purpose to multiple passes at all.frostschutz– frostschutz2020-06-17 08:39:54 +00:00Commented Jun 17, 2020 at 8:39
-
5@frostschutz It's not meant as "advice". It's what came up in the discussion (look at the other answers, and comments). If you want advice: The first step is to define your threat model. Be clear against what and whom you want to protect. "Protect from a knowledgeable person" is not a threat model. Then, once you know this, understand what consequences the actions you do have, and to what degree they protect you against the threat you modeled. This answer tries to shed at least some light on this, because there seem to be a lot of misconceptions around.dirkt– dirkt2020-06-17 08:49:49 +00:00Commented Jun 17, 2020 at 8:49
-
3Not sure if it's worth adding to your answer, but the erase procedure is actually quite slow, which is another reason to perform erases during idle time / as housekeeping... If they were to erase and write a page at once, then the write performance of even modern SSDs would be awful.Attie– Attie2020-06-17 17:47:02 +00:00Commented Jun 17, 2020 at 17:47
-
@Attie: On top of that, drives are limited to erasing large groups of pages at once, meaning that if e.g. 3/4 the pages in a block contain useful data, and 1/4 contain obsolete data, recovering the storage used for obsolete data will require copying the useful blocks to some other location and then erasing the entire block, and will only free up a quarter block worth of pages.supercat– supercat2020-06-17 20:59:51 +00:00Commented Jun 17, 2020 at 20:59
-
3I suppose this is why encryption is mandatory for a server environment? Erasing a drive is as simple as "forgetting" the decryption key.adib– adib2020-06-18 10:40:42 +00:00Commented Jun 18, 2020 at 10:40
|
Show 2 more comments
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
-
create code fences with backticks ` or tildes ~
```
like so
``` -
add language identifier to highlight code
```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible)
<https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. shell-script), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you