Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a tmpfs mount defined in my /etc/fstab with a size of 1024m, but when I restart the server it sizes itself to 5.9G. If I run mount -o remount /dev/shm, the size will correct itself to 1G. But it'll revert the next time the server is restarted.

The entry in fstab is:

tmpfs                   /dev/shm                tmpfs   size=1024m        0 0

Could there another file that mount could be calling during startup? How might I find that file?

share|improve this question

1 Answer 1

Why do you care? It's not as if that space is being used.

The default size is approximately half your system memory - and yes, there will be somewhere in your startup scripts that mounts a bunch of interesting tmpfs locations on a modern Linux.

You haven't said which particular distribution you use. Various Debian derived distributions might control them via any of:

  • /etc/init.d/mdadm-raid
  • /etc/init.d/udev
  • /etc/init.d/mtab.sh
  • /etc/init.d/mountdevsubfs.sh

There's even a /etc/default/tmpfs on squeeze where you can set the default size.

share|improve this answer

Your Answer

 
discard

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.