Creating RAMDISK on fly


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 mount RAMDISK on /dev/shm/ directory.

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

NOTE : You can also use below method on Ubuntu

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

Related content:

  1. Sed one liner
  2. Downloading website for offline use with wget
  3. Remote File System through SSH
  4. Merge Split pdf files in Ubuntu, Fedora
  5. Recovering Ubuntu After Re-Installing Windows

Subscribe / Share

Article by Vidyadhar

My name is Vidyadhar Sarmalkar & I work as a consultant and have done RHCE & CCNA.
Vidyadhar tagged this post with: , , , , , , , , , , , , , Read 229 articles by

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

Notify me of followup comments via e-mail. You can also subscribe without commenting.

rss twitter facbook

Categories

Archives

Buffer