How do I create a true RAM disk? I don't want a virtual file system with loop devices, I would like a mountable filesystem that is stored completely in RAM.
I am using Fedora 17, linux 3.6.9-2.fc17.i686
Thanks in advance.


2 Answers 2


See the man page for more details.

Step 1:

mkdir -p /mnt/[some-name-or-other]

Step 2:

mount -t tmpfs -o size=1G tmpfs /mnt/[some-name-or-other]

Step 3:



tmpfs should do the trick.

# mount -t tmpfs tmpfs /path/to/mount/point

# df -h
tmpfs                            12G     0   12G   0% /home/gert/tmpfs

It limits to 50% of your total RAM available by default (configurable - see 'Mount options for tmpfs' in the manpage mount(8)).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .