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.
Best Answer
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.