How to create a memory based file system (ramdisk)
Ramfs is a memory based filesystem. Mount it and you have it. Unmount it and it is gone.
mount -t ramfs none /mount/point
- All files are kept in RAM.
- Access is read-write.
- Does not use fixed amount of RAM.
- Filesystem grows and shrinks to accommodate the files it contains.
- When the filesystem is unmounted, all its contents are lost.
