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


Groups > linux.debian.user > #188878

Re: how to enable trim for an external encrypted SSD?

From Christian Seiler <christian@iwakd.de>
Newsgroups linux.debian.user
Followup-To debian-user@lists.debian.org
Subject Re: how to enable trim for an external encrypted SSD?
Date 2017-11-11 14:20 +0100
Message-ID <uKDRw-2ci-1@gated-at.bofh.it> (permalink)
References <uIOo1-2L5-5@gated-at.bofh.it> <uIPDr-3uR-9@gated-at.bofh.it> <uKDHP-28K-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Followups directed to: debian-user@lists.debian.org

Show all headers | View raw


On 11/11/2017 02:05 PM, Joerg Desch wrote:
> Am Mon, 06 Nov 2017 14:28:32 +0100 schrieb Christian Seiler:
> 
>> I don't what you want is possible. When you plug in an external drive
>> (that is _not_ in /etc/fstab etc.) the process of how it gets mounted is
>> different:
> ...
>>     tune2fs -o +discard /dev/external_disk_device
> 
> My drive has arrived and even a ext4 without LUKS fails to (fs)trim the 
> mount! Any idea why?
> 
> ~~~~
> $ sudo hdparm -I /dev/sdg1
> ...
> 	   *	Data Set Management TRIM supported (limit 8 blocks)
> 	   *	Deterministic read data after TRIM
> $ sudo fstrim /media/jd/TEST
> fstrim: /media/jd/TEST: Verwerfungsvorgang wird nicht unterstützt.
> ~~~~

Maybe the external controller (or at least the driver for the external
controller) that interfaces the SSD with USB (or whatever you're using
to connect it externally to your system) doesn't understand TRIM
properly?

Also, did you mount the device with -o discard or set that option with
tune2fs (_before_ mounting it)?

What does the command

findmnt | grep /media/jd/TEST

say in terms of active filesystem options?

Regards,
Christian

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


Thread

how to enable trim for an external encrypted SSD? Joerg Desch <news@jdesch.de> - 2017-11-06 13:10 +0100
  Re: how to enable trim for an external encrypted SSD? Christian Seiler <christian@iwakd.de> - 2017-11-06 14:30 +0100
    Re: how to enable trim for an external encrypted SSD? "Alexander V. Makartsev" <avbetev@gmail.com> - 2017-11-06 21:10 +0100
      Re: how to enable trim for an external encrypted SSD? Michael Stone <mstone@debian.org> - 2017-11-06 21:50 +0100
        Re: how to enable trim for an external encrypted SSD? "Alexander V. Makartsev" <avbetev@gmail.com> - 2017-11-06 22:30 +0100
          Re: how to enable trim for an external encrypted SSD? Michael Stone <mstone@debian.org> - 2017-11-06 23:10 +0100
            Re: how to enable trim for an external encrypted SSD? "Alexander V. Makartsev" <avbetev@gmail.com> - 2017-11-07 00:20 +0100
              Re: ow to enable trim for an external encrypted SSD? dekkzz78@gmail.com - 2017-11-07 13:40 +0100
          Re: how to enable trim for an external encrypted SSD? Henrique de Moraes Holschuh <hmh@debian.org> - 2017-11-07 02:10 +0100
      Re: how to enable trim for an external encrypted SSD? Joerg Desch <news@jdesch.de> - 2017-11-07 08:20 +0100
    Re: how to enable trim for an external encrypted SSD? Joerg Desch <news@jdesch.de> - 2017-11-07 08:10 +0100
    Re: how to enable trim for an external encrypted SSD? Joerg Desch <news@jdesch.de> - 2017-11-11 14:10 +0100
      Re: how to enable trim for an external encrypted SSD? Christian Seiler <christian@iwakd.de> - 2017-11-11 14:20 +0100
        Re: how to enable trim for an external encrypted SSD? Joerg Desch <news@jdesch.de> - 2017-11-11 14:40 +0100
          Re: how to enable trim for an external encrypted SSD? Christian Seiler <christian@iwakd.de> - 2017-11-11 15:30 +0100
            Re: how to enable trim for an external encrypted SSD? Joerg Desch <news@jdesch.de> - 2017-11-11 16:50 +0100
              Re: how to enable trim for an external encrypted SSD? Stefan Monnier <monnier@iro.umontreal.ca> - 2017-11-16 04:10 +0100
                Re: how to enable trim for an external encrypted SSD? Joerg Desch <news@jdesch.de> - 2017-11-21 18:40 +0100
    Re: how to enable trim for an external encrypted SSD? Christian Seiler <christian@iwakd.de> - 2017-12-18 13:20 +0100

csiph-web