I have a Raspberry Pi that is running a bunch of scripts 24/7. Recently it has been giving me errors because the Disk is full. I checked /var/log
and there were no gratuitously large files there. I used NCDU and it is saying that the total Disk Usage is 22.2 mb. Are there hidden files or directories that have filled up? Any help is greatly appreciated :). Thank you in advance
Filesystem Size Used Avail Use% Mounted on
/dev/root 4.9G 4.8G 0 100% /
devtmpfs 428M 0 428M 0% /dev
tmpfs 432M 0 432M 0% /dev/shm
tmpfs 432M 5.9M 426M 2% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 432M 0 432M 0% /sys/fs/cgroup
/dev/mmcblk0p5 60M 20M 41M 33% /boot
tmpfs 87M 0 87M 0% /run/user/1000
after running this command: sudo find /var -type f -a -printf '%s %p\n'| sort -nr | head -10
I found this:
104857600 /var/swap
46641296 /var/lib/apt/lists/mirrordirector.raspbian.org_raspbian_dists_jessie_main_binary-armhf_Packages
22031232 /var/cache/apt/pkgcache.bin
22010693 /var/cache/apt/srcpkgcache.bin
2808989 /var/cache/debconf/templates.dat-old
2808989 /var/cache/debconf/templates.dat
2334288 /var/lib/aspell/en-common.rws
1803157 /var/lib/dpkg/info/keyboard-configuration.config
1182618 /var/lib/dpkg/info/ri1.9.1.md5sums
1114891 /var/lib/dpkg/info/sonic-pi.md5sums
du -h / | sort -h
to find the storage hogs (disk usage of every file in human readable {uses letters for K/M/G/T multipliers} then sorted into largest of those human readable number forms last) but that uses a pipe and that might need temporary storage for the intermediate data so may not be able to run... – SlySven Dec 31 '15 at 20:09836M /usr/share 1.2G /usr/lib 1.7G /root 2.2G /usr
– Yllier123 Jan 03 '16 at 15:01