Disk full.. Help needed

Hi 8go Sd Card is full, and i would like to not have to do a reinstall and delete stuff.

This is currently my system

df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        362M     0  362M   0% /dev
tmpfs           367M   38M  330M  11% /run
/dev/mmcblk0p2  7.0G  6.5G   98M  99% /
tmpfs           367M     0  367M   0% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           367M     0  367M   0% /sys/fs/cgroup
/dev/mmcblk0p1  240M   21M  219M   9% /boot
/dev/sda1       917G  368G  503G  43% /media/b8aec17f-a626-4780-89db-df9809bccb5e
tmpfs            74M     0   74M   0% /run/user/1000

runing du -hs on my home folder this is what i get

du -hs
725 Mo

I am complilling tvheadend so i have a folder with 1.2Go but the rest is certainly due to some packages i installed when trying retropie. How do i get rid of some of the excess stuff that i do not want…

Try

cd /
sudo du -h | sort -n

that will tell you the biggest directories, descend one at a time until you find files it is safe to delete.

(you need sudo as only root can ennumerate some system files)

Or use ncdu for the lazy people.

Hehe, call me lazy then. Since I heard about ncdu it has been my go-to for CLI file system analysis.

1 Like

Thank you for your answer i managed to get back 1.2go. Feels much better now.