ubuntu No space left on device but there is tons of space
It's possible that you've run out of memory or some space elsewhere and it prompted the system to mount an overflow filesystem, and for whatever reason, it's not going away.
Try unmounting the overflow partition:
umount /tmp
or
umount overflow
Error: no space left on device Ubuntu 16.04
you may want to check your inode usage as well:
df -i
it's possible to get "no space left on device" when you have space available, but you're out of inodes.
http://web.archive.org/web/20210514092503/https://scoutapm.com/blog/understanding-disk-inodes
No space left on device
Such difference between the output of du -sh
and df -h
may happen if some large file has been deleted, but is still opened by some process. Check with the command lsof | grep deleted
to see which processes have opened descriptors to deleted files. You can restart the process and the space will be freed.
root user has no enough space issue in ubuntu
As it is full, you may be not able to add a tool to monitor your disk usage, like ncdu
However, some directories can be cleaned easily :
check files you need or not
/tmp
/var/log/Snaps are size consuming too, it holds multiple versions of the same package (rollback feature):
https://www.linuxuprising.com/2019/04/how-to-remove-old-snap-versions-to-free.html
Check files before deleting
error: file write error: No space left on device
It depends on where you are trying to do the git add .
As mentioned here:
The /snap mounts come from using software packages installed with Snap.
These utilize loop devices and are usually not writable.
You will get some sort of "No space on device" error when trying to write to any of these locations and that is represented in
df -h
as showing those mounts as 100% in use.
But in your case, assuming the repository is in /dev/...
:
devfs 392 392 0 100% 679 0 100% /dev
That means you don't have enough inodes.
Look for files to delete:
for x in /* ; do echo $x ; find $x | wc -l ; done
The goal is to free inode usage or increase the number of inodes.
Related Topics
How to List One Filename Per Output Line in Linux
Omitting the First Line from Any Linux Command Output
Matlab Mex Socket Wrapper Library
Bash Sort - How to Sort Using Timestamp
How to Limit the Number of Results Returned from Grep
How to Loop Through the Coming Frequency of the Keyword
Why Does Perf Show That Sleep Takes All Cores
Bash Echo with an $ Character Outside the String
Netfilter-Like Kernel Module to Get Source and Destination Address
How to Remove Specific Rules from Iptables
How to Get Out of 'Screen' Without Typing 'Exit'
Stty Serial Port Settings for Parity Not Persistent
Extending a Script to Loop Over Multiple Files and Generate Output Names
How to Use Linux 'Perf' Tool to Generate "Off-Cpu" Profile
How to Retain Docker Alpine Container After "Exit" Is Used
How to Execute an Local Script in Remote Server with Parameters