recently installed SSD gets full {solved}

You have a problem with Salix? Post here and we'll do what we can to help.
User avatar
jpg153
Donor
Posts: 449
Joined: 23. Oct 2009, 15:43
Location: Krefeld/NRW/BRD/EU

Re: recently installed SSD gets full

Post by jpg153 »

Well,

the images range from few kB to some few MB (4MB is a good average).
The *png's which Thunar creates in the .cache/Thumbnails/normal are 10-30kB (average).
So 3 million files of 30kB certainly consume a lot of disc space..

I have seen that already before when I copied data/directories from the old SSD onto the new one. There were hundres/thousands of small files,
which I finally removed (as I did now).

So, there probably is somewhere a switch to control that behavior?!

Thanks
Regards Gruß
jpg
User avatar
gapan
Salix Wizard
Posts: 6238
Joined: 6. Jun 2009, 17:40

Re: recently installed SSD gets full

Post by gapan »

Run

Code: Select all

thunar-settings
(it's also somewhere in the menu)

View thumbnails -> Never
Image
Image
westms
Posts: 298
Joined: 17. Mar 2013, 18:51

Re: recently installed SSD gets full

Post by westms »

jpg153 wrote:Everytime I open a folder containing images (from camera via USB or from filed images on disk) Thunar creates the preview images which are stored in [...]
Nice.

From your previous message:
jpg153 wrote:It contains almost 3 million objects in "thumbnails".
But how can you get 3 million objects? Did you take so many photos?
jpg153 wrote:But, any other way to prevent the disk is getting filled up again?
You need a caretaker.

The more caches are filled, the worse is the shutdown on my installation, so I had to find a solution. I have disabled the creation of thumbnails. But .thumbnails/normal is never quite empty. I do not know why?

When I end a Linux session, I also delete all other superfluous directory contents of all users, namely:

Code: Select all

.thumbnails/normal
.cache/midori/thumbnails
.cache/midori/web
.cache/mozilla/firefox/pb5qbs4e.default/cache2/entries
.cache/sessions

/tmp/.ICE-unix
/tmp/gpg-*
and all superfluous files, namely:

Code: Select all

/tmp/*.part
/tmp/.xfsm-ICE-*
if they are older than the current Linux session, in order to prevent such madness from building up at all (the above is for Salix Xfce 14.1).
This is done via shell code in script /etc/rc.d/rc.local_shutdown

You can do the same. At the end of a Linux session, empty out .thumbnails/normal. The thumbnails are only intended for instant use in a session.
jpg153 wrote:[...]as previewing photos is a must have.
Pre-viewing photos can be achieved by any slightly better viewing program.
User avatar
jpg153
Donor
Posts: 449
Joined: 23. Oct 2009, 15:43
Location: Krefeld/NRW/BRD/EU

Re: recently installed SSD gets full

Post by jpg153 »

Hi Gapan,

Thanks - Yes, I found the checkbox and unticked to preview and keep thumbnails.

Hi westms,

well as I usually do not restart the machine frequently, a shutdown script is not enough.

I am thinking about a job which is run say once in a month or so, to clean up what needs to be clean.

Well, the preview function of a graphics app is not what I am looking for...

Thanks
Regards Gruß
jpg
westms
Posts: 298
Joined: 17. Mar 2013, 18:51

Re: recently installed SSD gets full

Post by westms »

jpg153 wrote:well as I usually do not restart the machine frequently, a shutdown script is not enough.

I am thinking about a job which is run say once in a month or so, to clean up what needs to be clean.
Hello jpg153,

slightly different approach but is easy to cope with. For example, a daily cron job lets 'find' search for files that are 30 days or older and delete them.

File: cutnails

Code: Select all

#!/bin/sh

find /home/jpg153/.thumbnails/normal -iname '*' -mtime +30 -delete
If you want to perform the actions on files of e.g. Type JPG, then:

File: cutnails

Code: Select all

#!/bin/sh

find /home/jpg153/.thumbnails/normal -iname '*.jpg' -mtime +30 -delete
Store this file in directory /etc/cron.daily and set its ownership to root:root and its privileges to 755. Done.
User avatar
jpg153
Donor
Posts: 449
Joined: 23. Oct 2009, 15:43
Location: Krefeld/NRW/BRD/EU

Re: recently installed SSD gets full

Post by jpg153 »

Hi westms,

thanks. Lets hope it does what its supposed to do :-)
Regards Gruß
jpg
westms
Posts: 298
Joined: 17. Mar 2013, 18:51

Re: recently installed SSD gets full

Post by westms »

jpg153 wrote:Hi westms,

thanks. Lets hope it does what its supposed to do :-)
Do not worry, tomorrow you will not stand without underpants. :)

Of course, such a command has potential hazards. If you have a space in the wrong place, then you will lose everything. So, let us hope that you entered everything correctly. But because you are a cautious person, you first tested manually with -print instead of -delete. :D
User avatar
jpg153
Donor
Posts: 449
Joined: 23. Oct 2009, 15:43
Location: Krefeld/NRW/BRD/EU

Re: recently installed SSD gets full

Post by jpg153 »

:lol:
Regards Gruß
jpg
westms
Posts: 298
Joined: 17. Mar 2013, 18:51

Re: recently installed SSD gets full

Post by westms »

Hello jpg153,

according to my idea your problem is not solved. Therefore still a thought.

It is unusual that by switching from HDD to SSD, such behavior should have occurred.

At the same time, you changed from an old Salix version to the current version without new installation, didn't you? If you did not have any problems before the change, and after the change you have not changed your way of working, you should continue to look for the cause.

The cron file should only prevent you the files reaching upper edge lower lip. :D

Thunar uses Tumbler to create thumbnails. Only since version 0.1.27 Tumbler uses configuration files, e.g. Salix version 14.1 still had version 0.1.25. For Salix 14.2, the global tumbler configuration file /etc/xdg/tumbler/tumbler.rc should exist. Does it exist on your updated system?

If needed a user-specific configuration file with the same name can be created in directory ~/.config/tumbler. The directory probably needs to be created. You can copy the above configuration file to it and change it if necessary and see if the behavior changes.

It is also worth considering whether your complex build-up, with multiple simultaneous virtualizations and chroot environment, confuses tumbler and thus leads to the depletion of the SSD capacity.

I wish you luck.
Post Reply