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

Any way to TRIM SSD when bios has no AHCI mode

Scheduled Pinned Locked Moved 2.3-RC Snapshot Feedback and Issues - ARCHIVED
9 Posts 4 Posters 3.0k 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.
  • X
    xbipin
    last edited by Mar 13, 2016, 9:35 AM

    one of my full install boxes had a broken HDD so replaced it with an SSD, now the problem is the motherboard doesnt have AHCI mode in the bios so not able to enable TRIM in pfsense, is there any way to TRIM it manually using cron jobs or something like that?

    i tried setting the ahci load in loader.conf and alos trim set but that doesnt seem to work

    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)
    
    1 Reply Last reply Reply Quote 0
    • ?
      Guest
      last edited by Mar 13, 2016, 1:34 PM

      TRIM support can´t be enabled on 32Bit pfSense OS!! And if there is a SSD that supports TRIM
      on a 64Bit pfSense OS it can be done with ease, likes shown under the link in the next line.
      How to enable TRIM support in pfSense

      1 Reply Last reply Reply Quote 0
      • X
        xbipin
        last edited by Mar 13, 2016, 2:14 PM

        isnt there a manual way even to send trim command using fstrim etc which i could install and run regularly?

        1 Reply Last reply Reply Quote 0
        • ?
          Guest
          last edited by Mar 13, 2016, 5:50 PM

          @xbipin:

          isnt there a manual way even to send trim command using fstrim etc which i could install and run regularly?

          Sorry, this was in earlier time or in earlier versions of pfSense perhaps like you might do it, but as I am
          informed since version 2.2.x it is only able to realize it if pfSense is booted to or in the so called
          single-user mode. Here is a statement from @jimp about that, from the same thread, Link

          1 Reply Last reply Reply Quote 0
          • X
            xbipin
            last edited by Mar 14, 2016, 5:54 AM

            im on 2.3 32bit so can i still boot to single user mode and get it to work.

            if not automatic then by manual i mean every month or so i run some command that would send the TRIM command to the SSD, is this possible?

            1 Reply Last reply Reply Quote 0
            • ?
              Guest
              last edited by Mar 14, 2016, 6:21 PM

              im on 2.3 32bit so can i still boot to single user mode and get it to work.

              This is interesting because many other customers and users were reporting that they get
              it only to work if they use the 64Bit version of pfSense, congratulation.

              if not automatic then by manual i mean every month or so i run some command that would send the TRIM command to the SSD, is this possible?

              No, it is more like the DMA mode for HDDs, you activate it once and it is running then for ever.
              It could only activated as I am informed in the so called single user mode and then it must be switched
              again to the normal mode installation.

              1 Reply Last reply Reply Quote 0
              • A
                athurdent
                last edited by Mar 15, 2016, 5:16 AM

                @BlueKobold:

                TRIM support can´t be enabled on 32Bit pfSense OS!!

                Why? There was no problem enabling TRIM on a Lanner FW-7530 running 32Bit pfSense.

                1 Reply Last reply Reply Quote 0
                • ?
                  Guest
                  last edited by Mar 15, 2016, 7:25 AM

                  Why? There was no problem enabling TRIM on a Lanner FW-7530 running 32Bit pfSense.

                  Some users or customers where reporting here in the forum that they were not being able to activate the
                  TRIM support on a 32Bit pfSense, but until they where changing to a 64Bit pfSense system they were able
                  to solve this by activating then the TRIM support without any kind of failure or getting problems as before.
                  The SSD they were talking about was the Samsung850 EVO. And so I was thinking it could be the same
                  issue like they where in. And vice versa, also their solution could be working well here and solve it out.

                  1 Reply Last reply Reply Quote 0
                  • P
                    Perforado Rebel Alliance
                    last edited by Mar 21, 2016, 2:42 PM

                    possible workaround:
                    overprovisioning (saferase, then only use <=80% of the ssd at install time)

                    1 Reply Last reply Reply Quote 0
                    1 out of 9
                    • First post
                      1/9
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                      This community forum collects and processes your personal information.
                      consent.not_received