Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #235992

Re: Wiping an unencrypted SSD in preparation for encryption

From Reco <recoverym4n@enotuniq.net>
Newsgroups linux.debian.user
Subject Re: Wiping an unencrypted SSD in preparation for encryption
Date 2021-06-11 17:20 +0200
Message-ID <CoR6V-2LL-5@gated-at.bofh.it> (permalink)
References <CoH7z-5f5-3@gated-at.bofh.it> <CoJ9o-6nw-3@gated-at.bofh.it> <CoJ9o-6nw-1@gated-at.bofh.it> <CoQXg-2IA-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, Jun 11, 2021 at 11:01:40AM -0400, rhkramer@gmail.com wrote:
> On Friday, June 11, 2021 02:49:03 AM Reco wrote:
> > On Thu, Jun 10, 2021 at 11:43:12PM -0700, David Christensen wrote:
> > > I don't bother with the 'discard' option in /etc/fstab, but perhaps I
> > > should.  The fstab(5) and mount(8) manual pages are unclear if
> > > 'discard' applies to swap or ext4.
> > 
> > swapon(8):
> > 
> >    -d, --discard[=policy]
> > 	  Enable  swap  discards ... The /etc/fstab mount options discard,
> > discard=once, or discard=pages may also be used to enable discard flags.
> 
> So, I'm not clear on what happens if you don't use the discard option.

Your swap will work the same as far as the kernel is concerned.

Your drive won't receive TRIM commands for the partition/logical
volume/whatever your swap resides in (on swapping out pages).
Theoretically it could lead to longer swap times, practically swapping
is painful enough to avoid it regardless of the time it takes.

Reco

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Wiping an unencrypted SSD in preparation for encryption David Wright <deblis@lionunicorn.co.uk> - 2021-06-11 06:40 +0200
  Re: Wiping an unencrypted SSD in preparation for encryption Jeremy Ardley <jeremy@ardley.org> - 2021-06-11 06:50 +0200
  Re: Wiping an unencrypted SSD in preparation for encryption songbird <songbird@anthive.com> - 2021-06-11 07:00 +0200
  Re: Wiping an unencrypted SSD in preparation for encryption David Christensen <dpchrist@holgerdanske.com> - 2021-06-11 08:50 +0200
    Re: Wiping an unencrypted SSD in preparation for encryption Reco <recoverym4n@enotuniq.net> - 2021-06-11 08:50 +0200
      Re: Wiping an unencrypted SSD in preparation for encryption David Christensen <dpchrist@holgerdanske.com> - 2021-06-11 15:00 +0200
        Re: Wiping an unencrypted SSD in preparation for encryption Reco <recoverym4n@enotuniq.net> - 2021-06-11 15:10 +0200
          Re: Wiping an unencrypted SSD in preparation for encryption David Christensen <dpchrist@holgerdanske.com> - 2021-06-13 00:00 +0200
      Re: Wiping an unencrypted SSD in preparation for encryption rhkramer@gmail.com - 2021-06-11 17:10 +0200
        Re: Wiping an unencrypted SSD in preparation for encryption Reco <recoverym4n@enotuniq.net> - 2021-06-11 17:20 +0200
    Re: Wiping an unencrypted SSD in preparation for encryption David Wright <deblis@lionunicorn.co.uk> - 2021-06-15 07:10 +0200
      Re: Wiping an unencrypted SSD in preparation for encryption Stefan Monnier <monnier@iro.umontreal.ca> - 2021-06-15 17:00 +0200
  Re: Wiping an unencrypted SSD in preparation for encryption "Andrew M.A. Cater" <amacater@einval.com> - 2021-06-11 12:00 +0200
  Re: Wiping an unencrypted SSD in preparation for encryption Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-06-11 17:00 +0200
    Re: Wiping an unencrypted SSD in preparation for encryption Reco <recoverym4n@enotuniq.net> - 2021-06-11 17:20 +0200
      Re: Wiping an unencrypted SSD in preparation for encryption Michael Stone <mstone@debian.org> - 2021-06-11 20:40 +0200
    Re: Wiping an unencrypted SSD in preparation for encryption David Christensen <dpchrist@holgerdanske.com> - 2021-06-13 00:10 +0200
  Re: Wiping an unencrypted SSD in preparation for encryption ghe2001 <ghe2001@protonmail.com> - 2021-06-11 17:20 +0200
  Re: Wiping an unencrypted SSD in preparation for encryption Michael Stone <mstone@debian.org> - 2021-06-11 21:30 +0200

csiph-web