Create a RAM disk of 10 MB
# mkramdisk 10M
/dev/rramdisk0
Create a JFS File System on this RAM disk
# mkfs -V jfs /dev/rramdisk0
mkfs:destroy /dev/rramdisk0 (yes) ? y
Create Mountpoint
# mkdir /ramdisk
Mount RAM File System
# mount -V jfs -o nointegrity /dev/ramdisk0 /ramdisk
The purpose of the mkramdisk command is to create file systems directly in memory. This is useful for applications that make many temporary files. Use ramdisk only for data that can be lost. After each reboot the ramdisk file system is destroyed and must be rebuilt.