computer_science:linux:linux_troubleshooting:linux_no_space_left_on_device

This is an old revision of the document!


[TODO] A detailed troubleshooting should be made instead of bulletpoints.

  1. Check if the device itself has free space
    • df-h
  2. If you need to clear logs a simple redirect would be enough
    • > file.log
  3. If the issue still remains probably your inodes are full. You can check it with:
    • df -i
  4. If that is the issue you can check where the issues lies with:
    • for i in /*; do echo $i; find $i |wc -l; done
    1. You can go deeper then with:
      • for i in /var/*; do echo $i; find $i |wc -l; done -

In my case the issue was by /var/spool/postfix/maildrop. A “rm -fv” doesn't work, since there are too many files in that directory. Therefore, you can make sure a loop will delete the files you actually want with:

  • computer_science/linux/linux_troubleshooting/linux_no_space_left_on_device.1593527877.txt.gz
  • Last modified: 2023/12/01 12:07
  • (external edit)