I want an area of disk space where I can constantly change the contents i.e. webcam image refresh, access log files for web server etc.
Since flash memory has limited write cycles before going bad having a RAM drive would eliminate this problem because the writes are in RAM only.
After some searching on Google I found the following that works on my PI:
mkfs -q /dev/ram1 1024
mount /dev/ram1 /ram
RAM drive now exists in /ram if you need RAM drive again after a reboot just repeat the same commands except for mkdir /ram
Now if only I had the PI 512MB model B I would have loads more RAM to play with.
While on the subject of RAM there appears to be other RAM devices present i.e. /dev/ram1 /dev/ram2 /dev/ram3 ... /dev/ram15.
Can anyone explain the difference between /dev/ram1 and /dev/ram2 ??