You are not logged in.

#1 2009-06-23 05:16:12

markzzzsmith
Member
From: Adelaide, South Australia
Registered: 2006-07-30
Posts: 14

tmpfs-varlog AUR package - use tmpfs file system for /var/log

Hi,

Based upon a number of posts, blogs etc. I've put a number of file systems on my Dell Mini 9 on a tmpfs file system, rather than on the SSD.

e.g. (with 2GB of RAM)

/etc/fstab

#http://tombuntu.com/index.php/2008/09/04/four-tweaks-for-using-linux-with-solid-state-drives/
# use RAM for various temporary file systems
tmpfs /tmp tmpfs defaults,noatime,mode=1777,size=256M 0 0
tmpfs /var/tmp tmpfs defaults,noatime,mode=1777,size=256M 0 0
tmpfs /var/lock tmpfs defaults,noatime,mode=1777,size=128M 0 0
tmpfs /var/run tmpfs defaults,noatime,mode=755,size=128M 0 0

I came across this post the other day, discussing putting /var/log onto a tmpfs file system

http://bbs.archlinux.org/viewtopic.php? … 10#p528010

I liked the idea, but thought rather than just taking snapshots of the contents of /var/log, it'd be better to fully backup and fully restore the contents of /var/log at shutdown / boot time. I put together the following package yesterday to automate that:

http://aur.archlinux.org/packages.php?ID=27501

It seems to be working fine for me, hopefully it'd be useful to others with netbooks/laptops. Any feedback, including "it's the dumbest idea on earth" (as long as you explain why), is welcome.

Regards,
Mark.

Offline

Board footer

Powered by FluxBB