Page 1 of 4

@__thumb files - How do do I get rid of them?

Posted: Thu Feb 07, 2008 6:54 am
by happyfishman
I'm being plagued by an ever-expanding number of files called @__thumb in my TS-109 directories. I vaguely remember reading somewhere that they are connected with, or generated by, the Qmultimedia display system, but how do I get rid of them? They're not visible in Windows Explorer....

Re: @__thumb files - How do do I get rid of them?

Posted: Fri Feb 08, 2008 12:37 am
by tizzy
you can delete them using the web filemanager

Re: @__thumb files - How do do I get rid of them?

Posted: Sun Feb 17, 2008 10:29 pm
by niwa2
in those foolders are the thumbnails for the multimediastation. if you delete them they have to be recreated once anybody accesses your MultimediaStation.
but those thumbnails are also created every night (at 3 i think). they are only created for files located in the Qmultimedia folder. you will get as many thumbnails as you have pictures in the Qmultimedia folder.

Re: @__thumb files - How do do I get rid of them?

Posted: Mon Apr 12, 2010 10:09 pm
by gor
How can I delete all the folders directly (not one by one)?
Let say the Media Station is off but the junk files are still there.

Re: @__thumb files - How do do I get rid of them?

Posted: Mon Apr 12, 2010 10:57 pm
by niwa2
you can delete them but even if the mutimedia station is off they will be recreated every night.
in order to stop that you have to disable the imrall job in the crontab file.

Re: @__thumb files - How do do I get rid of them?

Posted: Tue Apr 13, 2010 5:43 pm
by gor
How can I do that?
How can I bulk delete them?
Thank you!

Re: @__thumb files - How do do I get rid of them?

Posted: Tue Apr 13, 2010 6:37 pm
by niwa2
the easiest way to edit the crontab file is using WinSCP to login to your NAS via SSH (only admin can login) and then browse to /etc/config/ and then doubleclick the crontab file to edit it. once saved you need to restart the cron service for the changes to take effect. alternatively you can also restart the nas.
to stop the creation of the thumbnails you need to put a # at the verry beginning of the line that looks something like this:

Code: Select all

0 3 * * * /usr/local/sbin/ImR_all -soft /Qmultimedia
the bulk deletition is bit tricky.
maybe someone else has a practical idea.

the esiest way that comes to my mind is copy the entire content of Qmultimedia to your PC using SMB (windows file shares). then delete the entire content of Qmultimedia and at last copy everyting back. this way the .@__thumb folders are not copied. but depending on the amount of data in your Qmultimedia folder this might take some time.

Re: @__thumb files - How do do I get rid of them?

Posted: Tue Apr 13, 2010 8:53 pm
by gor
Thank you for your support!
I made the change in crontab.
I still don't know how to delete all the junk folders...
I have more then 500 folders like .@__thumb and around 1.4TB of data files; It's hard to move them to PC and back on. (I have backups allready).
I tried with Total Commander and a SSH plugin but it didn't work like on local drives.

Re: @__thumb files - How do do I get rid of them?

Posted: Fri May 14, 2010 3:15 pm
by gingercat
If using a Windows PC, the easiest way is to do a windows search for ".@__thumb" on a network share to your Qmultimedia folder, that will bring up a long list of its results, then just select all the results, and delete :)

Re: @__thumb files - How do do I get rid of them?

Posted: Mon Jun 07, 2010 5:18 am
by voxtreet
Hi,

I have noticed the same thing. At first I thought it was the Multimedia Station, but even when I disabled it, they still appeared. Good to learn that it is the cron job that is creating them every night. I'm having trouble commenting out the ImR_all line in the crontab, though. I do crontab -e, and put the "#" in front of the line, then do Esc and :wq to save and exit. But the next time I look at the crontab (crontab -l) the comment isn't there anymore. Any hints?

Anyways, I wrote a Python script to remove all those pesky "@__thumbs" thumbnails under the current directory and all subdirectories. I was using this for my Photo collection, so my script also removes ".hightlight" files (what are those anyway?), Thumbs.db, and picasa.ini files, you can remove those lines if you don't care about those. It works for me, but as I'm not an official QNAP representative, USE AT YOUR OWN RISK!

- Log onto your QNAP machine (I use SSH)
- Navigate to the directory under which you want to delete all thumbnails
- Create a new file called rmthumbnails.py
- Copy and paste the following code into that file

Code: Select all

import os, shutil

for root, dirs, files in os.walk('.', topdown=False):
        print "Root: %s" % root
        for dir in dirs:
                if dir == '.@__thumb':
                        delpath = os.path.join(root, dir)
                        print "Removing %s" % delpath
                        shutil.rmtree(delpath)
        for file in files:
                if file == '.hightlight':
                        delpath = os.path.join(root, file)
                        print "Removing %s" % delpath
                        os.remove(delpath)
                elif file == 'Picasa.ini':
                        delpath = os.path.join(root, file)
                        print "Removing %s" % delpath
                        os.remove(delpath)
                elif file == 'Thumbs.db':
                        delpath = os.path.join(root, file)
                        print "Removing %s" % delpath
- Run it!

Code: Select all

#python rmthumbnails.py
That should do it!

Thanks!

Re: @__thumb files - How do do I get rid of them?

Posted: Mon Jun 07, 2010 3:38 pm
by niwa2
once you edited the crontab, make sure you save your changes and then you need to restart the cron service for the changes to take effect. to restart the cron service type the folowing:

Code: Select all

/etc/init.d/crond.sh restart
Then all your changes should take effect.

Re: @__thumb files - How do do I get rid of them?

Posted: Fri Jun 18, 2010 3:15 pm
by nexgen
voxtreet wrote: [/code]
- Run it!

Code: Select all

#python rmthumbnails.py
That should do it!

Thanks!
Works like a charm... Thank you so much.

Re: @__thumb files - How do do I get rid of them?

Posted: Wed Jul 14, 2010 11:32 pm
by johngalt
This is what worked well for me.

Code: Select all

find /share/Qmultimedia/music/ -type d -name .@__thumb -exec rm -r {} \;

Re: @__thumb files - How do do I get rid of them?

Posted: Sat Jul 24, 2010 5:04 pm
by boschma1
@voxtreet: Thank you for the Python script! Worked like a charm - but I had to add the MAC OS X (._.DS_Store etc) stupidity files to be removed:

Code: Select all

import os, shutil

for root, dirs, files in os.walk('.', topdown=False):
	print "Root: %s" % root
	for dir in dirs:
		if dir == '.@__thumb':
			delpath = os.path.join(root, dir)
			print "Removing %s" % delpath
			shutil.rmtree(delpath)
	for file in files:
		if file == '.hightlight':
			delpath = os.path.join(root, file)
			print "Removing %s" % delpath
			os.remove(delpath)
		elif file == 'Picasa.ini':
			delpath = os.path.join(root, file)
			print "Removing %s" % delpath
			os.remove(delpath)
		elif file == 'Thumbs.db':
			delpath = os.path.join(root, file)
			print "Removing %s" % delpath
			os.remove(delpath)
		elif file == '.DS_Store':
			delpath = os.path.join(root, file)
			print "Removing %s" % delpath
			os.remove(delpath)
		elif file == '._.DS_Store':
			delpath = os.path.join(root, file)
			print "Removing %s" % delpath
			os.remove(delpath)

Re: @__thumb files - How do do I get rid of them?

Posted: Wed Dec 15, 2010 8:03 am
by Xmantium
I cant get the script to work, im using WinSCP

I use the console to run the script with #python rmthumbnails.py
and then it says Host has not answered for than 15 seconds
Im logged in the correct directory with the rmthumbnails.py but doesnt work for me