Write error - write (28: No space left on device)

Posted February 12, 2021 1.1k views
WordPressLAMP StackUbuntu 20.04

I did a Wordpress LAMP install on Ubuntu 20.04 including SSL.
No problems -
I installed phpmyadmin and copied the wordpress database 3 times.
No problems -
Several days later I began getting the write error above.
I can’t login to phpmyadmin or wordpress.
How do I go about freeing up some space so I can login again thru phpmyadmin?

The system is a development one, so I can do anything.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
3 answers

Hello @rggosf ,

You can first start about checking the free space and delete unwanted files. Please refer to the below Community answer for detailed instructions

Hope this helps.


Thanks Lalitha,
I typed the specific error msg into search and got no hits. But see now should’ve used more generic term.

I’m sure I can remedy it with your post.

  • Rick

Hello, all

You can examine the disk space usage and delete any data which is not crucial to your application or website. What is the output of the following command:

  • df -h

Also, I could suggest following the steps from this answer here on how to find the folders that are using the most disk space:

The other option will be to resize the droplet. You can check this article on how to resize your droplet: