Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
computer_science:linux:linux_troubleshooting:linux_no_space_left_on_device [2020/06/30 14:44] – carlossousa | computer_science:linux:linux_troubleshooting:linux_no_space_left_on_device [2023/12/01 12:07] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Linux - No Space left on device ====== | ||
+ | |||
[TODO] A detailed troubleshooting should be made instead of bulletpoints. | [TODO] A detailed troubleshooting should be made instead of bulletpoints. | ||
|Check if the device itself has free space|< | |Check if the device itself has free space|< | ||
df-h | df-h | ||
- | </ | + | |
+ | </ | ||
|If you need to clear logs a simple redirect would be enough|< | |If you need to clear logs a simple redirect would be enough|< | ||
</ | </ | ||
|If the issue still remains probably your inodes are full. You can check it with: | |If the issue still remains probably your inodes are full. You can check it with: | ||
df -i | df -i | ||
- | </ | + | |
+ | </ | ||
|If that is the issue you can check where the issues lies with: | |If that is the issue you can check where the issues lies with: | ||
for i in /*; do echo $i; find $i |wc -l; done | for i in /*; do echo $i; find $i |wc -l; done | ||
- | </ | + | |
+ | </ | ||
|You can go deeper then with: | |You can go deeper then with: | ||
for i in /var/*; do echo $i; find $i |wc -l; done | for i in /var/*; do echo $i; find $i |wc -l; done | ||
- | </ | + | |
+ | </ | ||
|In my case the issue was by / | |In my case the issue was by / | ||
for f in *; do echo rm " | for f in *; do echo rm " | ||
- | </ | + | |
+ | </ | ||
|and if you are happy with the result, commit to it: | |and if you are happy with the result, commit to it: | ||
for f in *; do rm " | for f in *; do rm " | ||
- | </ | + | |
+ | </ | ||
\\ | \\ | ||