The default settings for the filesystem are best for most environments, however there are occasions that call for slight changes to improve stability, performance, or longevity of the filesystem.
Enabling TRIM Support¶
The installer for the factory version of pfSense® sets TRIM automatically. Both factory and the CE version of pfSense 2.4 support TRIM natively when using ZFS.
While it is possible to manually enable TRIM, support is unpredictable in hardware so we do not provide instructions on how to enable the feature.
Triggering a Filesystem Check¶
pfSense will run a filesystem check (
fsck ) at boot when it detects an
unclean filesystem, typically from after a power outage or other sudden unclean
reboot or shutdown. In rare cases, that isn’t always enough, as a filesystem can
become corrupted in other ways that may not always leave the drive marked
In these cases:
Connect to the console
Choose the menu option to reboot from the console menu (
F(uppercase “f”) to force a filesystem check during the boot sequence even if the drive is considered clean
That option is not present on all firewalls as it is not compatible with certain BIOS implementations. If that option is not present:
Reboot the firewall into single user mode by choosing option
2from the boot menu
Enterwhen prompted for a shell
fsck -y /
Repeat the command at least 3 times, or until no errors are found, even if the filesystem is reported clean