Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I recently upgraded all of the parts in my FreeBSD 9 server.

I purchased an SSD to run as a the root drive - I'd like to enable TRIM on it but the only documentation I can find on it is that it can be enabled using newfs or tunefs.

Is there a way to specify flags to newfs during the installation process, and if not, am I going to run into TRIM-related issues if I run tunefs after installation is complete?

share|improve this question
add comment

2 Answers

For UFS2 file systems, on FreeBSD 8.2+ you can use the tunefs utility to enable trim after installation or by going into a shell before rebooting during the installer.

Make sure the file system is not mounted read/write (such as in single user mode)

  • Single user mode
  • mount
  • tunefs -t enable /dev/ada0p2

Replace ada0p2 with your disk.

If you're using ZFS, older versions of FreeBSD do not support TRIM. There was some work to add trim support into newer versions of FreeBSD (10+?) , but it would be enabled through the ZFS commands rather than tunefs.

share|improve this answer
add comment

I found this thread on the FreeBSD forums

http://forums.freebsd.org/showthread.php?t=28004

share|improve this answer
1  
Welcome to Super User! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. –  Canadian Luke Jun 30 '12 at 21:25
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.