Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

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 getting this weird behaviour where writing to /tmp is failing.

Even try touch /tmp/foo as root fails with OS error code 22: Invalid argument.

The permissions are set to 1777/drwxrwxrwt.

share|improve this question
up vote 1 down vote accepted

Where is /tmp mounted?

Alternately, check with dmesg to see if there were any kernel errors involving that mountpoint recently.

share|improve this answer
It's in /dev - the server is a VPS and other file systems ended up going read-only as well. So I guess it was a SAN failure or something related to the cloud. – MrD Nov 1 '11 at 10:21
Time to contact the VPS operator, I think. – Shadur Nov 1 '11 at 11:17

Another solution is to remove /tmp and recreate it

share|improve this answer
How does that solve the user's problem? – kurtm Oct 7 '13 at 23:35

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.