How to Create RAMDISK in Linux?

RAMDISK is part of system memory which user can use as a normal disk space. The advantage of RAMDISK is faster read and write access in comparison of Hard Disk.

By default Ubuntu mounts RAMDISK on /dev/shm/ directory.

To setup RAMDISK on other distributions like Fedora or CentOS, you can follow below method. My Laptop’s actual RAM size is 4GB out of which I am going to use 1024MB for ramdisk.

# mkdir -p /media/ramdisk
# mount -t tmpfs -o size=1024M tmpfs /media/ramdisk/

Please Post Your Comments & Reviews

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.