Skip to content

Instantly share code, notes, and snippets.

@recoder
Created January 8, 2018 15:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save recoder/94f8053c1b5ca7d04557c78f52b921f5 to your computer and use it in GitHub Desktop.
Save recoder/94f8053c1b5ca7d04557c78f52b921f5 to your computer and use it in GitHub Desktop.
How to solve Synology "You cannot login to the system because the disk space is full currently"
#!/bin/bash
#1. See what partition is full:
df -h
#2. Find largest directories:
du -hax / 2> /dev/null | sort -rh | head -n 20
#3. Find fattest files:
find . -type f -printf "%s\t%p\n" | sort -n | tail -n 20
# then remove the largest unneeded files using the 'admin' password:
# sudo rm -f {files}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment