1

I would like to mount /dev/shm in a freebsd jail. Every time I attempt to, I get these errors:

[root@gaming /]# mount -t tmpfs tmpfs /dev/shm
mount: /dev/shm: No such file or directory
[root@gaming /]# touch /dev/shm
touch: /dev/shm: Operation not supported
[root@gaming /]#

Jail works perfectly, I just can't figure out how to get devfs to automagically create a directory.

Thanks.

  • /dev/shm is a Linux thing just mount your tmpfs where you need it. – arved Mar 31 '15 at 10:06
2

If you want to use tmpfs inside jail it is better to add line like

tmpfs /jails/foo.example.org/tmp tmpfs rw,size=524288000 0 0

to the jail's fstab file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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