Posts by miggedy

    I have libreelec running on a raspberry 3 and it reports that my SD card is quite full (10.3 GB of 12.5 GB used in mounted folder /storage)

    If I check that folder with du I only see 229.4 MB instead of 10.3 GB of files (I used the "x" parameter to exclude the as well mounted folder "media" in the storage folder which is actually my NAS)

    df is looking at the filesystem itself while du looks at actual file sizes, so it could be assumed that I have many thousands of zero sized files somewhere, but in total this folder only contains 7000 files (after I deleted all thumbnails and picons):

    Code
    find /storage -path /storage/media -prune -o -type f | wc -l
    => 7.040

    with a "normal" block size of 4 KB:

    One further reason I read why du can differ from df so much is that there may be deleted files to which some process still has a handle on and therefore space is not freed by now. But I checked this as well and there is not pending file deletion (plus I did a reboot and the issue remains).

    Code
    find /proc/*/fd -ls 2> /dev/null | grep '(deleted)'
    => (nothing)

    Does anybody have an idea what else could cause this? Where are the 10 GB clogging my SD card? :/