[Trac #65] Temporary filesystems should be in RAM

Zarro Boogs per Child bugtracker at laptop.org
Mon Sep 25 13:03:58 EDT 2006


#65: Temporary filesystems should be in RAM
-------------------------------+--------------------------------------------
 Reporter:  wmb at firmworks.com  |        Owner:  blizzard
     Type:  enhancement        |       Status:  new     
 Priority:  high               |    Milestone:  beta    
Component:  kernel             |   Resolution:          
 Keywords:                     |  
-------------------------------+--------------------------------------------
Comment (by bluefoxicy):

 Easy enough, add this to /etc/fstab:


 {{{
 none            /tmp            tmpfs   size=2G,nr_inodes=200k,mode=01777
 0 0
 none            /var/run        tmpfs   size=2G,nr_inodes=200k,mode=01777
 0 0
 none            /var/lock       tmpfs   size=2G,nr_inodes=200k,mode=01777
 0 0
 none            /var/tmp        tmpfs   size=2G,nr_inodes=200k,mode=01777
 0 0
 }}}


 Adjust the size= to any limit you want to set (I set 2G as effectively no
 limit) and 'mount -a -t tmpfs' early in the boot process.  /dev (for udev)
 could get mounted in this way too.

 Re wmb:  Alter mount to not create /etc/mtab if /etc/mount.conf says not
 to (we can't guarantee all mount calls will be mount -n); we have
 /proc/mounts on Linux that we can use, probably should symlink it to
 /etc/mtab.

 As for .serverauth and .Xauthority, I have an idea with UnionFS and ~/ but
 I'm not sure it'll work due to RAM constraints.  A simpler solution, you
 could just link .Xauthority and .serverauth to
 .tmp/.{X,server}auth{ority,} and link .tmp/ to /tmp/$USER/.

-- 
Ticket URL: <http://dev.laptop.org/ticket/65#comment:5>
One Laptop Per Child <http://laptop.org/>



More information about the Devel mailing list