I followed this guide to turn my raspberry pi into my backup server. It has a 16 GB SD Card in it and Raspbian (based on Debian buster) installed. When I try to update with sudo apt upgrade
, it returns the error:
Error writing to output file - write (28: No space left on device) [IP: 93.93.135.141 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
Which indicates to me, that the SD Card is full even tough it has pretty much only the system on it.
Here is the output of sudo du -hs /*
:
646G /backupdrive
9.3M /bin
52M /boot
0 /dev
3.4M /etc
780K /home
348M /lib
16K /lost+found
4.0K /media
4.0K /mnt
41M /opt
du: cannot access '/proc/5385/task/5385/fd/3': No such file or directory
du: cannot access '/proc/5385/task/5385/fdinfo/3': No such file or directory
du: cannot access '/proc/5385/fd/3': No such file or directory
du: cannot access '/proc/5385/fdinfo/3': No such file or directory
0 /proc
24K /root
6.2M /run
8.8M /sbin
4.0K /srv
0 /sys
32K /tmp
625M /usr
167M /var
Here is the output of lsblk
:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
|-sda1 8:1 0 931.5G 0 part /backupdrive
`-sda2 8:2 0 512B 0 part
mmcblk0 179:0 0 14.9G 0 disk
|-mmcblk0p1 179:1 0 256M 0 part /boot
`-mmcblk0p2 179:2 0 14.6G 0 part /
It seems to me, that the external hdd (sda
) is mounted on /
, but some of the data is still stored on the normal SD Card. Does anyone have an idea on why this is?
**Edit: **
Output of: df /
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 15023184 14381088 0 100% /
sda
andsda1
(it's main partition) is mounted to/backupdrive
. Internal flash is namedmmcblk0
andmmcblk0p2
(second partition) on sd is mounted as/
. Can you please [edit] your question with the output ofdf /
. 16gb seems a lot to fill so easily. I'm wondering if you missed the step where you resize/
at first boot. – Philip Couling Aug 13 '20 at 22:09du -h --max-depth=1 /some/directory/path
to find how big directories are and which sub-directories are taking all the space. – Philip Couling Aug 17 '20 at 20:28