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


Groups > linux.debian.user > #236045

Re: Wiping an unencrypted SSD in preparation for encryption

From David Christensen <dpchrist@holgerdanske.com>
Newsgroups linux.debian.user
Subject Re: Wiping an unencrypted SSD in preparation for encryption
Date 2021-06-13 00:00 +0200
Message-ID <CpjPA-40l-1@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> <CoOVs-1jI-3@gated-at.bofh.it> <CoP57-1Ca-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 6/11/21 6:01 AM, Reco wrote:
> On Fri, Jun 11, 2021 at 05:55:02AM -0700, David Christensen wrote:
>> On 6/10/21 11:49 PM, 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.
>>>
>>>
>>> Therefore 'discard' can be applied to both ext4 and swap.
>>
>> Thank you for the clarification regarding trim and swap.
>>
>> Where do you see the information for ext4?
> 
> You just have to know where to look - ext4(5):
> 
> discard/nodiscard
> 	Controls  whether  ext4  should issue discard/TRIM commands to the
> underlying block device when blocks are freed.  This is useful for SSD
> devices and sparse/thinly-provisioned LUNs, but it is off by default
> until sufficient testing has been done.
> 
> 
> How exactly this ended in manpages section 5 (which is "File formats and
> conventions eg /etc/passwd") is anyone's guess.
> 
> Reco


Thank you.


I needed to RTFM MOUNT(8) more carefully:

     FILESYSTEM-SPECIFIC MOUNT OPTIONS
        You  should  consult  the respective man page for the filesystem 
first.
        If you want to know what options the  ext4  filesystem 
supports,  then
        check  the ext4(5) man page.


David

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