Ubuntu – Cannot rm file: Disk quota exceeded

quotarmUbuntu

In bash (and over ssh) running rm FILENAME gives the error: rm: cannot remove 'FILENAME': Disk quota exceeded. I've seen the other posts (and everyting down the first page of google) on this topic and have tried:

echo "" > FILENAME
cp /dev/null FILENAME
cat /dev/null >FILENAME

and all give the same error. This has happened to me once before and one of the things above fixed it, but for whatever reason that isn't working this time. Is there some sort of more powerful method to remove or write 0 bytes to a file?

I don't have sudo access on the system.
This is on a unix system.

Best Answer

Something is trying to write to your disk. This error usually occurs with network disks.

Try opening a text file, delete contents and save it. Using this command to re-check disk space:

df -h
Related Question