Search This Blog

Tuesday, June 16, 2009

To add a partition which stores data in RAM of Linux

__REQUIREDPATH__ means the path of the temporary partition which you want
  1. echo "tmpfs __REQUIREDPATH__ tmpfs rw,size=10M" >> /etc/fstab
  2. mkdir __REQUIREDPATH__
  3. Change ownership appropiately
  4. mount -t tmpfs -o size=10m tmpfs __REQUIREDPATH__
Note: You will have to do the above steps again whenever your machine is rebooted. or add the above steps in /etc/rc.local For Eg: __REQUIRESPATH__ = "/var/tempdata/"

No comments: