1

i'm to get discard/fstrim enabled on my Siduction-System on a thinkpad x250.

I use Siduction (Debian Unstable) with LVM 2.03.02(2). I have a big partition /dev/sda2 which is LUKS-Encrypted and in it an lvm where the root partition (ext4) is sitting. /dev/sda1 is the boot-partition and not encrypted, very classic.

But regardless what i do, i always get:

fstrim: /: the discard operation is not supported

fstrim on /boot works flawless.

I added issue_discards = 1 in lvm.conf and added the discard option in /etc/crypttab:

# <target name> <source device>     <key file>  <options>
lvm UUID=XXX    none    luks,discard

I executed update-initramfs -u -k all every time after a change, but no luck.

Some more infos:

#dmsetup table /dev/mapper/lvm
0 902903808 crypt aes-xts-plain64:sha256 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0 8:2 4096

 #cryptsetup status lvm
/dev/mapper/lvm is active and is in use.
  type:    LUKS1
  cipher:  aes-xts-plain64:sha256
  keysize: 512 bits
  key location: dm-crypt
  device:  /dev/sda2
  sector size:  512
  offset:  4096 sectors
  size:    902903808 sectors
  mode:    read/write

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.