Ever noticed how big the channel-information in /var/lib/smart/channels can become? Most of the content in this folder is dispensable, since smart does not erase old channel-information, so after a while it can become pretty huge. Of course you could simply erase the entire folder, but then also valid info has to be fetched again, which takes quite a while when using many channels. Here's a simple way to slim down the channel information and get rid of the useless stuff while keeping the stuff smart still needs:
Code:
for i in /var/lib/smart/channels/*xml; do [ -f ${i}.gz ] && rm ${i}; done
Here's an example to show you how well this command works:
Code:
hoppers:~ # du -h /var/lib/smart/channels/
455M****/var/lib/smart/channels/
hoppers:~ # for i in /var/lib/smart/channels/*xml; do [ -f ${i}.gz ] && rm ${i}; done
bash: [: too many arguments
bash: [: too many arguments
bash: [: too many arguments
You may ignore the bash-output, it still works as intended:
Code:
hoppers:~ # du -h /var/lib/smart/channels/
80M**** /var/lib/smart/channels/
Tadaaa!
I know, disk-space is cheap nowadays, yet I think getting rid of unnecessary stuff is always a plus.