Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

2 Answers 2

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. –  dougk 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

 
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.