ubuntu:disk:error_no_space_left_on_device
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ubuntu:disk:error_no_space_left_on_device [2019/11/26 18:23] – created peter | ubuntu:disk:error_no_space_left_on_device [2020/07/15 09:30] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 3: | Line 3: | ||
If an error message is received informing **No space left on device**. | If an error message is received informing **No space left on device**. | ||
- | < | + | < |
mkdir: cannot create directory `folder’: No space left on device | mkdir: cannot create directory `folder’: No space left on device | ||
</ | </ | ||
Line 11: | Line 11: | ||
This command searches for files larger than 50 MB under your current directory: | This command searches for files larger than 50 MB under your current directory: | ||
- | < | + | < |
find . -type f -size +50000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }' | find . -type f -size +50000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }' | ||
</ | </ | ||
Line 18: | Line 18: | ||
Check at least under the following directories: | Check at least under the following directories: | ||
- | < | + | < |
/root/ | /root/ | ||
/home/ | /home/ | ||
Line 26: | Line 26: | ||
<WRAP tip> | <WRAP tip> | ||
- | If you see a lots of temporary files under /tmp/, it is time to check how often the system cleans this folder. | + | If you see a lots of temporary files under /tmp/, it is time to check how often the system cleans this folder. |
+ | |||
+ | Usually the directory is cleared by default at every boot. | ||
+ | |||
+ | If you don't reboot that often, change the value of TMPTIME in / | ||
+ | |||
+ | The default value is 0, meaning only at reboot. | ||
+ | |||
+ | Use 7 if you, for example, want the system to delete temp files once they turn one week old. | ||
</ | </ |
ubuntu/disk/error_no_space_left_on_device.1574792606.txt.gz · Last modified: 2020/07/15 09:30 (external edit)