Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

I'm setting up a new Linode server and following steps from here:

2 times now if I follow the following steps:

Edit /etc/fstab
Add this line: 
    tmpfs     /dev/shm     tmpfs     defaults,ro     0     0

After reboot I'm no longer able to ssh into the server.

In /etc/fstab, its indicated in the format comment that the file path should be the first option. "tmpfs" is before that. Could this be a typo in the documentation?

share|improve this question

First, the syntax as given is correct. The line in /etc/fstab is supposed to begin with tmpfs. Note that the way you posted it, it begins with spaces, which should not be there.

Second, the page you linked to did warn you:

Note: MANY programs will not work if you make /dev/shm read-only (e.g. Google Chrome).

If you're trying to secure /dev/shm then that's going too far. Try just noexec,nosuid instead.

share|improve this answer
True, I did read that. However, it also said that you don't really have to worry about that on server environments, which is what I'm configuring. – Geuis Jan 18 '13 at 0:18
If you really didn't have to worry about it, you would never have run into the problem .. twice. – Michael Hampton Jan 18 '13 at 0:22
Either way, my question is still open. It wasn't about memory, it was about whether the syntax with tmpfs is correct. – Geuis Jan 18 '13 at 0:25
What part of your question remains unanswered? – Michael Hampton Jan 18 '13 at 0:30

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.