Using Shred to remove files on SSD - will this affect the lifespan of the disk? [duplicate]

Solution 1:

Memory used by SSD disks has a limit on write-cycles. If you use shred, it means you will overwrite all blocks occupied by file 3 times (default settings). So, if you use it consistently, the limit for memory cells will be reached faster.

According to answers on the following question at SuperUser:
How can I securely format a solid-state drive?
shred with a single random pass should be secure enough and will have less impact (1 write vs. 3 writes by default) on SSD memory.

If you are concerned about security, it might be better to use encryption.

And if you want to pass (e.g. sell) your SSD to other party - securely erase its content then.

Solution 2:

In performing a man shred I notice this...


CAUTION: Note that shred relies on a very important assumption: that the file system overwrites data in place. This is the traditional way to do things, but many modern file system designs do not satisfy this assumption. The following are examples of file systems on which shred is not effective, or is not guaranteed to be effective in all file system modes:

   * log-structured or journaled file systems, such as those supplied with
   AIX and Solaris (and JFS, ReiserFS, XFS, Ext3, etc.)

Which means that it's not effective on Ext4 file systems, which is what you have in Ubuntu.