I'm new to Linux and I've just set up a Raspberry Pi 2 with Raspbian Jessie.
The device runs fine for about a day then I start getting errors "No space left on device". I can't find which device is causing the problem and the errors come with a number of commands. A reboot fixes the problem for a while.
I've had this problem wile installing Apache and PHP using sudo apt-get and I often get it while starting and stopping services. This is my most recent error
Code: Select all
pi@pi1:~ $ sudo systemctl restart apache2.service
Error: No space left on device
pi@pi1:~ $ sudo service apache2 restart
Error: No space left on device
pi@pi1:~ $ sudo /etc/init.d/apache2 restart
[....] Restarting apache2 (via systemctl): apache2.serviceError: No space left on device
. ok
As far as I can tell I have space left on all devices
Code: Select all
pi@pi1:~ $ df -hl
Filesystem Size Used Avail Use% Mounted on
/dev/root 15G 3.8G 9.7G 29% /
devtmpfs 459M 0 459M 0% /dev
tmpfs 463M 0 463M 0% /dev/shm
tmpfs 463M 13M 451M 3% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 463M 0 463M 0% /sys/fs/cgroup
/dev/mmcblk0p1 60M 20M 41M 33% /boot
/dev/sda1 29G 7.7G 19G 29% /data0
tmpfs 93M 0 93M 0% /run/user/1000
pi@pi1:~ $ df -hil
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/root 923K 177K 747K 20% /
devtmpfs 115K 354 115K 1% /dev
tmpfs 116K 1 116K 1% /dev/shm
tmpfs 116K 548 116K 1% /run
tmpfs 116K 6 116K 1% /run/lock
tmpfs 116K 10 116K 1% /sys/fs/cgroup
/dev/mmcblk0p1 0 0 0 - /boot
/dev/sda1 1.8M 95K 1.8M 6% /data0
tmpfs 116K 5 116K 1% /run/user/1000
Thanks