Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
# mkdir -p /mnt/tmpfs
# mount -t tmpfs -o size=6400M tmpfs /mnt/tmpfs

I ran that but if I was to reboot will I need to run that again because it is tmpfs?

How do I get that mount point to come back on a reboot?

share|improve this question
For what purpose? – Andrew Apr 24 '13 at 5:19
up vote 4 down vote accepted

As usual: You can define this in /etc/fstab

none     /tmp/tmpfs     tmpfs     defaults,size=6400M     0 0
share|improve this answer
I think however that you want /mnt/tmpfs instead of /tmp – ETL Apr 24 '13 at 2:45
can that be done with a software raid? – Jake Thomas Apr 24 '13 at 2:52
@ETL Sure, was just lazy with copying. – Hauke Laging Apr 24 '13 at 2:53
@JakeThomas Would you mind rephrasing your question? I have no idea what you want to know. How do you come from tmpfs to mdraid? But of course, /dev/md* devices can be (and usually are) configured in fstab. – Hauke Laging Apr 24 '13 at 2:56
you could also add the size option to your fstab example, so it will do exactly what he wants – Renan Apr 24 '13 at 3:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.