Created
January 8, 2018 15:45
-
-
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"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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