0

we want to use tmpfs on /var/work folder

what is the differences between the following tmpfs in fstab

tmpfs  /var/work   tmpfs   size=4g   0 0

to this tmpfs in fstab

tmpfs /var/work tmpfs   defaults,size=4g    0 0

second - is it necessary to defined also the - rw,nosuid,noatime,nodev ?

tmpfs /var/work  tmpfs rw,nosuid,noatime,nodev,size=4G 0 0
  • 1
  • what about - "tmpfs /var/work tmpfs rw,nosuid,noatime,nodev,size=4G 0 0" – yael Mar 23 at 5:19
  • The mount man page states that rw,suid,dev,exec,auto,nouser,async are the defaults which also depend on the kernel and filesystem type. So I'd guess you need nosuid,noatime,nodev,size=4G, but better verify the options with mount. – Freddy Mar 23 at 5:42

Your Answer

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

Browse other questions tagged or ask your own question.