tmpfs
You can easily prolong the life of your HDD putting small, high access files into RAM. FreeBSD:
1 2 |
# mkdir /mnt/ramdisk # mount -t tmpfs -o size=1G,mode=777 tmpfs /mnt/ramdisk |
to mount tmpfs each time your system boots at scheduled reboots add to /etc/crontab:
1 |
tmpfs /mnt/ramdisk tmpfs rw,size=1G,mode=777 0 0 |
Debian:
1 2 3 |
# mkdir /mnt/ramdisk # chmod 777 /mnt/ramdisk # mount -t tmpfs -o size=1024M tmpfs /mnt/ramdisk |
To have it automatically created at start add to /etc/fstab next:
1 |
tmpfs /mnt/ramdisk tmpfs defaults,size=1g 0 0 |