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

    TRIM on SG2220

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 4 Posters 1.1k 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.
    • J Offline
      jgraham5481
      last edited by

      Hello, I recently purchased a few SG2220's, with the mSATA ssd installed and to my surprise, trim was not enabled. I know how to go in to single user mode and do it, any reason this would not be on by default for this hardware that came with an ssd? Should I even worry?

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        You should ask the pfSense shop team and/or support if that mSATA is TRIM compatible or if only
        their install script will be forgetting that.

        1 Reply Last reply Reply Quote 0
        • C Offline
          cmb
          last edited by

          We discovered a problem with the installer not enabling TRIM in that case this week.

          You can enable it manually by booting the system into single user mode, and running:

          tunefs -t /dev/da1s1a
          

          Though double check what your root partition actually is, I don't recall for sure off the top of my head what the M.2 shows up as in that case. 'dmesg |grep da0', then da1, etc. as needed to find it.

          1 Reply Last reply Reply Quote 0
          • stan-qazS Offline
            stan-qaz
            last edited by

            I rebooted my 2440 to single user mode, Option 2 and used this set of commands to check the trim status, enable trim and verify trim was set:

            tunefs -p /
            
            tunefs -t enable /
            
            tunefs -p /
            

            Issue a reboot command and get a shell, Option 8, and use the "tunefs -p /" to see that your change survived the reboot.

            1 Reply Last reply Reply Quote 0
            • C Offline
              cmb
              last edited by

              Ah yeah, thanks Stan, forgot it takes just / there as well. That's easier.

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