Kodi Community Forum

Full Version: ATV2 Clearing space
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi
Looking through the wiki, I read about clearing space on my ATV2
After entering df -k via SSH i got :
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/disk0s1s1 612344 542352 63872 90% /
devfs 27 27 0 100% /dev
/dev/disk0s1s2 7170056 2069224 5100832 29% /private/var

There is alot of stuff in /private/var/cache/apt/archives/
Can I safely delete it ALL?

Thanks for any advice.
try

Code:
apt-get clean
apt-get autoclean
apt-get autoremove
(2012-10-25, 20:45)jjforfun00 Wrote: [ -> ]Recently started having problems with my XBMC v.11 install on my Apple TV 2. The MovieDB add-on stopped working and my background images will often fail to load.

Not sure of the cause of this problem, but perhaps it is related to the lack of space on my internal flash drive? Just checked it, and it's at 100%

I read through the FAQ's, and found this entry:

4.10 Not enough space/memory
Shortcut: #Disk_space
Have you run out of space on your ATV2? Check with (via SSH) the df -k command. If any /dev/disk* filesystems are at 100%, use du -h / to see what's taking up space. or to show which files are, for example, bigger then 9 Mb do find / -size +9000b
First places to check are:
/private/var/mobile/Library/Preferences/XBMC/addons/packages
/private/var/mobile/Library/Caches/AppleTV/Video/LocalAndRental
/private/var/mobile/Library/Caches/AppleTV/Video/Other
/private/var/cache/apt/archives/
See also #Thumbnails for saving space with smaller thumbs or moving them to a network location.

I can find these files.

My question:
1) Which files can I delete? Can they all be erased without undue harm? If not, how can I determine the appropriate files to remove?
2) While I still want to clear space, will that help the issues I noted above?

Thanks!

J
That's the link I was on, just wanted to check what's safe to delete in :
/private/var/cache/apt/archives/
(2014-03-06, 11:25)herbieUK Wrote: [ -> ]That's the link I was on, just wanted to check what's safe to delete in :
/private/var/cache/apt/archives/

If it's in the WiKi, you can have faith Wink
I have done all of the above only to still have huge files in User/library/caches/com.apple.lauchservices-045csstore also can I delete lockcache-encryptedA.db as it contains 108kb
kb is nothing dude. You need to find stuff which has a couple of MB or even GB ... (freeing 108kb of space is not even enough to save a full hd jpeg image...)
After entering the command as suggested (http://wiki.xbmc.org/index.php?title=XBM...e.2Fmemory) I'm getting a message - No such file or directory.
I have no experience programming ATV2. I guess I have to be specific on the file name and instead of XBM... enter the real file name. Tried everything but nothing works.
Can anybody help? This is my space report:
No such file or directory
Jacobs-MacBook-AirBig Grinownloads myapple$ du -h
59M ./Demis Roussos/1971 - On The Greek Side Of My Mind
52M ./Demis Roussos/1973 - Forever And Ever
43M ./Demis Roussos/1974 - My Only Fascination
40M ./Demis Roussos/1975 - Souvenirs
39M ./Demis Roussos/1976 - Happy To Be
50M ./Demis Roussos/1977 - Ainsi Soit-Il
39M ./Demis Roussos/1977 - Magic
43M ./Demis Roussos/1978 - Demis Roussos
34M ./Demis Roussos/1980 - Man Of The World
27M ./Demis Roussos/1982 - Attitudes
36M ./Demis Roussos/1982 - Demis
61M ./Demis Roussos/1984 - Reflection
30M ./Demis Roussos/1986 - Die Grosse Erfolge
58M ./Demis Roussos/1986 - Greater Love
61M ./Demis Roussos/1989 - The Greek
26M ./Demis Roussos/Bonus Tracks
697M ./Demis Roussos
121M ./EMIN - Начистоту (2014) [320 kbps]
32K ./Support-LogMeInRescue.app/Contents/_CodeSignature
3.7M ./Support-LogMeInRescue.app/Contents/MacOS
4.0K ./Support-LogMeInRescue.app/Contents/RescueRebootHelper.app/Contents/_CodeSignature
24K ./Support-LogMeInRescue.app/Contents/RescueRebootHelper.app/Contents/MacOS
36K ./Support-LogMeInRescue.app/Contents/RescueRebootHelper.app/Contents
36K ./Support-LogMeInRescue.app/Contents/RescueRebootHelper.app
76K ./Support-LogMeInRescue.app/Contents/Resources/English.lproj
796K ./Support-LogMeInRescue.app/Contents/Resources
1.6M ./Support-LogMeInRescue.app/Contents/unattended_mac.app/Contents/MacOS
4.0K ./Support-LogMeInRescue.app/Contents/unattended_mac.app/Contents/Resources/ar.lproj
4.0K ./Support-LogMeInRescue.app/Contents/unattended_mac.app/Contents/Resources/en.lproj
4.0K ./Support-LogMeInRescue.app/Contents/unattended_mac.app/Contents/Resources/he.lproj
388K ./Support-LogMeInRescue.app/Contents/unattended_mac.app/Contents/Resources
1.9M ./Support-LogMeInRescue.app/Contents/unattended_mac.app/Contents
1.9M ./Support-LogMeInRescue.app/Contents/unattended_mac.app
6.5M ./Support-LogMeInRescue.app/Contents
6.6M ./Support-LogMeInRescue.app
6.2M ./Демис Руссос - Большой Успех Демиса Руссоса/Большой Успех I/Art
519M ./Демис Руссос - Большой Успех Демиса Руссоса/Большой Успех I
6.1M ./Демис Руссос - Большой Успех Демиса Руссоса/Большой Успех II/Art
517M ./Демис Руссос - Большой Успех Демиса Руссоса/Большой Успех II
1.0G ./Демис Руссос - Большой Успех Демиса Руссоса

How do I get rid of all these files, especially the one that is 697 Meg?
Not sure in which folder you are ... but from the wiki you would need to do:

Code:
rm -r /private/var/mobile/Library/Caches/AppleTV/Video/LocalAndRental/*
rm -r /private/var/mobile/Library/Caches/AppleTV/Video/Other/*
rm -r /private/var/cache/apt/archives/*

Be really carefull "Jacobs-MacBook-Air" this suggests you are on your macbook air - you need to ssh into the atv2 before deleting files else you might end up deleting files from your macbook air in accident.
Thank you very much for you response and for the warning.
I did these 3 command (and the ssh), but looks like only the 3-rd worked.

Apple-TV:~ root# rm -r /private/var/mobile/Library/Caches/AppleTV/Video/LocalAndRental/*
rm: cannot remove `/private/var/mobile/Library/Caches/AppleTV/Video/LocalAndRental/*': No such file or directory
Apple-TV:~ root# rm -r /private/var/mobile/Library/Caches/AppleTV/Video/Other/*
rm: cannot remove `/private/var/mobile/Library/Caches/AppleTV/Video/Other/*': No such file or directory
Apple-TV:~ root# rm -r /private/var/cache/apt/archives/*
Apple-TV:~ root#

When I go to nitoTV and try to install Kodi 14.1 I'm getting the following message (at least it doesn't complain about space anymore)

"The following NEW packages will be installed:

org.xbmc.kodi-seatbeltunlock

0 upgraded, 2 newly installed, 0 to remove and 41 not upgraded

E:Archive directory /var/cache/apt/archives/partial is missing"

Do you have any idea what that means?
enter

apt-get update
That didn't work:

Apple-TV:~ root# apt-get update
E: Archive directory /var/cache/apt/archives/partial is missing.
Apple-TV:~ root#
mkdir /var/cache/apt/archives/partial && apt-get autoclean && apt-get update
Did everything and more... When I got the message that it's setting up kodi 14-1 the box disconnected from the TV. The light on the box is flashing, but the TV says "No source input". Did a soft restart (menu + down) and powered off for a few minutes, but it still doesn't connect. Any guesses?

Jacobs-MacBook-AirBig Grinownloads myapple$ ssh [email protected]
[email protected]'s password:
Apple-TV:~ root# mkdir /var/cache/apt/archives/partial && apt-get autoclean && apt-get update
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
Apple-TV:~ root# dpkg --configure -a
Setting up org.xbmc.kodi-atv2 (14.1-0) ...
Apple-TV:~ root#
Pages: 1 2