Mount Temp Direcories as Devices

Posted on August 29, 2008 by nseidm1.
Categories: flash, fstab, mount, temp, write.

Mounting your temp directories as devices will store the data in your computers ram instead of on the filesystem. This will reduce the writes made to your storage device, which is  benificial for flash based systems. You can achieve this by adding various directories to your fstab (/etc/fstab) configuration file:

tmpfs      /var/log/apt    tmpfs        defaults           0    0
tmpfs      /var/log        tmpfs        defaults           0    0
tmpfs      /tmp            tmpfs        defaults           0    0
tmpfs      /var/tmp        tmpfs        defaults           0    0

Share, Enjoy, and Support:
  • Digg
  • del.icio.us
  • NewsVine
  • StumbleUpon
  • Technorati