RAM Disk: A Very Interesting Idea…
Ξ June 29th, 2010 | → 0 Comments |
∇ Tools | ∇ file system, Linux, memory, ramdisk |
Simply run:
$ mkfs -q /dev/ram1 8192 # 8192 = 8MB disk capacity
$ mkdir -p /mnt/ramcache
$ mount /dev/ram1 /mnt/ramcache
$ df -H | grep ramcache
to mount your own mini ramdisk.
For more details, here and here are some references I found on the subject.
You might ask yourself “Why does this guy needs a ramdisk?… What a geek!”, and wouldn’t mind. It was kind of a epiphany, when I remembered to use a ramdisk to run a “‘Lack of space’ Test Case” on the application I’m building right now.
After running the application, I just had to copy a mp3 album to occupy the remaining disk space… et voilá, welcome the expected “error message”. No, not a SIGSEGV, a real error dialog!…
