5GB of Files deleted - Kodi doesn't free disc space
#1
Hallo,

I just had the problem that I was running out of disc space on my Kodi-OS-SD-Card. So I deleted a folder with ~5GB of Files using FileZilla.
After that, the space is still used!

I rebooted the Raspberry Pi, but the space is still full with 98%!

Is there some kind of trash bin or another thing I have to consider when deleting files to free space??

Thank you very much!!
Reply
#2
No, there is no trash bin. What folder did you delete?

How are you determining that the space is still used, maybe your method is flawed.

Connect to your Pi using ssh and paste the output of "df -h".
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
Reply
#3
It was a custom folder (/media/NZBget/interdir/SomeTVShow.S05E08) from my NZBget Downloader.

I just looked up the System Info in the xbian interface on my TV...

Here is what df -h says (exact the same):

Filesystem________Size Used Avail Use% Mounted on
rootfs____________7.2G 6.7G 182M 98% /
/dev/mmcblk0p2___7.2G 6.7G 182M 98% /
devtmpfs_________362M 4.0K 362M 1% /dev
none_____________74M 256K 74M 1% /run
/dev/mmcblk0p2___7.2G 6.7G 182M 98% /home
/dev/mmcblk0p2___7.2G 6.7G 182M 98% /lib/modules
/dev/mmcblk0p1___34M 21M 14M 62% /boot
Reply
#4
/media/NZBget/interdir/SomeTVShow.S05E08 wouldn't have been your SD card, but instead a disk connected to your USB port.

Your SD card is mounted from /dev/mmcblk0p2, and yes you're running short on space. Hard to suggest what you should remove as I'm not familiar with XBian, but purging your thumbnail/texture cache is usually a good start - use the script in my sig (texturecache.py P) to do this automatically, or search the forum and install the addon that does something similar (some of the time).
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
Reply
#5
I don't know... but I'm pretty sure, that "/media/NZBget/" is on the SD-Card. In the /media directory was 1 folder at the beginning (Volume -> a mounted HDD on USB) and a link "usb0" linking to the same folder (/media/Volume).
I created the NZBget-directory inside /media myself. So I thougt, it would be on the SD-Card. (ok, that may not be the correct way to do this, but I didn't know where else to put the NZBget-Folder and especially the interdir-folder, which is supposed to be on another drive (e.g. the sd-card) as the download-folder)
Also, if I disconnect the USB-HDD, I can still access the NZBget-Folder.

I can not imagine, how the space could get this full! But when I subtract these 5GB, it leaves a usage of 1.7G, what seems reasonable to me...
Is there any way to determine, which file or which folders are using most of the space?
Reply
#6
What is the output of
Code:
du -shx /* 2>/dev/null | sort -n
and
Code:
du -shx ~/.kodi/userdata/* 2>/dev/null | sort -n
You can add further directories to track down what is using the space.

Note: You may have to change the folder structure in the 2nd command to your kodi folder.
Reply
#7
Thank you!!

Code:
0       /mnt
0       /proc
0       /selinux
0       /srv
0       /sys
0       /xbmc-backup
4.0K    /dev
4.0K    /tmp
5.2M    /opt
5.6M    /bin
12K     /root
12M     /sbin
17M     /lib
21M     /boot
45M     /etc
97M     /var
140M    /home
148K    /run
180K    /media
443M    /usr

Well, at least there are no 6.7G, are there?
As you say, the second command does not work. But I got it to work:

Code:
0       /home/xbian/.kodi/userdata/keymaps
0       /home/xbian/.kodi/userdata/library
0       /home/xbian/.kodi/userdata/playlists
4.0K    /home/xbian/.kodi/userdata/advancedsettings.xml
4.0K    /home/xbian/.kodi/userdata/LCD.xml
4.0K    /home/xbian/.kodi/userdata/profiles.xml
4.0K    /home/xbian/.kodi/userdata/RssFeeds.xml
4.0K    /home/xbian/.kodi/userdata/sources.xml
6.9M    /home/xbian/.kodi/userdata/Database
8.0K    /home/xbian/.kodi/userdata/peripheral_data
32K     /home/xbian/.kodi/userdata/guisettings.xml
100M    /home/xbian/.kodi/userdata/Thumbnails
104K    /home/xbian/.kodi/userdata/addon_data
Reply
#8
Check your hidden folders as well
Code:
du -sch .[!.]* * |sort -h
or remove the sort if it doesn't work in xbian
Code:
du -sch .[!.]* *
Note that you have to be inside the folder, so start with /
Reply
#9
Code:
du: cannot access `.[!.]*': No such file or directory
du: cannot access `proc/24575/task/24575/fd/3': No such file or directory
du: cannot access `proc/24575/task/24575/fdinfo/3': No such file or directory
du: cannot access `proc/24575/fd/3': No such file or directory
du: cannot access `proc/24575/fdinfo/3': No such file or directory
0       mnt
0       proc
0       selinux
0       srv
0       sys
0       xbmc-backup
4.0K    dev
4.0K    tmp
12K     root
132K    run
164K    media
5.2M    opt
5.6M    bin
12M     sbin
21M     boot
49M     etc
57M     lib
99M     var
141M    home
443M    usr
830M    total


As I said - pretty weird Big Grin
Reply
#10
Are you still seeing the space used with df -h? I am out of ideas to find the space easily.
Reply
#11
Maybe try:
Code:
sudo fsck.ext4 -n /dev/mmcblk0p2
and paste the results.
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
Reply
#12
I don't know why, but the space is finally free Smile

Thank you!!
Reply
#13
Hmmm.
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
Reply
#14
(2015-06-04, 22:14)crayzee Wrote: I don't know why, but the space is finally free Smile

Thank you!!
That would explain why the above commands couldn't find it.

Congrats.
Reply
#15
(2015-06-04, 23:58)katsup Wrote:
(2015-06-04, 22:14)crayzee Wrote: I don't know why, but the space is finally free Smile

Thank you!!
That would explain why the above commands couldn't find it.

Congrats.

The space was still in use for 98% by the time I posted the second output (yesterday at 10:00) :/
Reply

Logout Mark Read Team Forum Stats Members Help
5GB of Files deleted - Kodi doesn't free disc space0