Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    unable to enable trim?

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    3 Posts 2 Posters 879 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      Visseroth
      last edited by

      I just rebuilt my firewall and I'm going through a few things and thought I'd check to make sure trim is enabled since fstrim obviously doesn't work so I can't just add a cron job.

      /sbin/tunefs -p / gives me the following...

      tunefs: POSIX.1e ACLs: (-a)                                disabled
      tunefs: NFSv4 ACLs: (-N)                                   disabled
      tunefs: MAC multilabel: (-l)                               disabled
      tunefs: soft updates: (-n)                                 enabled
      tunefs: soft update journaling: (-j)                       enabled
      tunefs: gjournal: (-J)                                     disabled
      tunefs: trim: (-t)                                         disabled
      tunefs: maximum blocks per file in a cylinder group: (-e)  4096
      tunefs: average file size: (-f)                            16384
      tunefs: average number of files in a directory: (-s)       64
      tunefs: minimum percentage of free space: (-m)             8%
      tunefs: space to hold for metadata blocks: (-k)            6408
      tunefs: optimization preference: (-o)                      time
      tunefs: volume label: (-L)
      

      My drive is a SATA SSD and trim is disabled.

      I tried the option found here
      https://forum.netgate.com/topic/87458/2-2-4-and-how-i-enabled-trim
      BUT booting from a bootable USB installer goes straight to the installer.
      I'm running 2.5.2-Release. How do I enable trim?

      running tunefs -t enable gives me.....

      tunefs: /dev/gptid/45501687-7d62-11ec-9295-90e2ba8c936c is not clean - run fsck.
      

      running fsck comes back with everything clean, reboot confirms.

      Any ideas?

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @Visseroth
        last edited by

        @visseroth said in unable to enable trim?:

        BUT booting from a bootable USB installer goes straight to the installer.
        I'm running 2.5.2-Release. How do I enable trim?

        You should see the big pfsense ASCI logo showing up while it's booting.
        That's the moment you can "press a key" (I don't remember the screen) to boot into console single user mode.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        V 1 Reply Last reply Reply Quote 1
        • V
          Visseroth @Gertjan
          last edited by

          @gertjan Guess somehow I missed that.
          Tried again successfully.
          Thanks!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.