4

I tried to turn off TRIM ("discard") on my ext4 filesystem, but I did not succeed.

I tried to add nodiscard option into /etc/fstab, but I can still see this:

# tune2fs -l /dev/md2 | grep discard
Default mount options:    journal_data_writeback user_xattr acl discard

OS is GNU/Debian, and the disk is an SSD.

Alex Flo
  • 1,761
  • 3
  • 18
  • 23
  • 2
    Why do you think modifying the fstab would change the default mount options that stored in the filesystem metadata? Changing the fstab options will only change the options used at mount time. – Zoredache Oct 20 '14 at 21:06
  • Well, because I couldn't find any better ideas to try. I looked on the internet on ways to set the fs to "nodiscard" but I couldn't find anything. – Alex Flo Oct 21 '14 at 06:10

1 Answers1

6

the command to remove "discard" is this
tune2fs -o^discard /dev/md2

Alex Flo
  • 1,761
  • 3
  • 18
  • 23