You are here: Home Cheat Sheets Linux RAM Disk

Linux RAM Disk

Howto setup a ram disk on linux

Make a mount point

sudo mkdir /ramdisk

First create the partition

sudo mount -t tmpfs none /ramdisk -o size=256M,mode=1777,noexec,nosuid,nodev

To make it automatic add this to /etc/fstab

none   /ramdisk   tmps size=256M,mode=1777,noexec,nosuid,nodev    0 0

There's no need to format the filesystem as the mount call does this already. Remember that this partition is volatile.

 

Document Actions

Copyright © 2007-2015 Mario Theodoridis. All rights reserved. Content licensed under AFL.   Impressum   Datenschutz
Content from the underlying Plone CMS is © 2000-2009 by the Plone Foundation