Fix 1 : Using the df command
There are several ways to fix the “No Space Left on Device” error on Linux. The most obvious way is to delete some files or data on the storage space to make more room. Another way is to make the storage space bigger. We will go over how to do this in the steps below.
Start by finding out which storage space is full. The df command can help with this. We recommend using the -h option to make the output easier to understand.
Command :
df -h
Output :
You can use other commands in addition to df. Check out our other tutorial on How to see how much space each folder is using on Linux for more command examples.
How to Fix the “No space left on device” Error in Linux
When you try to save files or write data on a Linux system, you might get the “No Space Left on Device” error. This error means that the storage space you are trying to use is full and does not have enough room left for your operation. To fix this error, you can either make more space available in the storage space or increase the total amount of storage space.
In this tutorial, we will show you how to resolve the “No Space Left on Device” error and review some basic Linux commands to help you identify the problem.
How to Fix the “No space left on device” Error in Linux
- Fix 1 : Using the df command
- Fix 2 : Using the du Command
- Fix 3 : Clear your Browser Cache
- Fix 4 : Clearing Temporary Files
- Fix 5 : Deleting Old Log Files
- Fix 6 : Clearing Package Cache
- Fix 7 : Resizing Partitions
- Fix 8 : Removing Unnecessary Software