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

Don't miss a thing. Post your questions and discussion about other uncategorized NAS features here.

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

Postby happyfishman » Thu Feb 07, 2008 6:54 am

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....
happyfishman
New here
 
Posts: 7
Joined: Sun Jan 27, 2008 7:53 pm

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

Postby tizzy » Fri Feb 08, 2008 12:37 am

you can delete them using the web filemanager
- TS-219, 4.0.2 Build 20130706, English, 2x2TB HDDs (WDC WD20EADS-00R6B0 01.0), EXT4 JOBD, Joomla; MLDonkey; FTP; webserver; photoalbum; backup 2TB Western Digital USB frontside, 10/100 & 1500
- TS-119P+, 4.0.2 Build 20130706, English, 1x2TB HDD (WDC WD20EURS-63Z9B1 80.0), EXT4, Joomla; MLDonkey; FTP; webserver; photoalbum; backup 2x1TB Samsung Story Plus eSata, 10/100 & 1500
[network environment: Firefox 12, 3xWin7 Family (1xIntel corei7, 1xAsus EEE 1000H, 1xToshiba Satelite Pro), Sitecom WL-342 Router, 3 switches, 1xHumax iHDR5050, 1xSiemens Gigaset M750cIR, 2xMediagate MG35, 1xPlayon!HD, 2xPlayon!HDmini, 1xHTC TouchHD winMo6.5, 1xHTC DesireHD droid2.2, 1xArchos101 G8 (droid2.2), 1xArchos101 G9 (droid ICS4.3)
tizzy
Know my way around
 
Posts: 182
Joined: Wed Jan 16, 2008 7:26 pm
Location: Bussum
Model: TS-109/209 Pro II

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

Postby niwa2 » Sun Feb 17, 2008 10:29 pm

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.
TS-639 Pro | Version 4.0.1 | 5x 3TB WDC WD30EFRX RAID5 + 1x 320GB WDC WD3200AAKS
LianLi EX-50 with 3x 2TB SAMSUNG HD203WI + 2x 2TB SAMSUNG HD204UI in RAID5 as Backup drive
LianLi EX-503 with 5x 2TB SAMSUNG HD204UI in RAID5 as Backup drive
TS-109 + TS-109 Pro II | Version 3.3.2 Build 0918
HDI Dune BD Prime 3.0, Mede8er MED600X3D, SqueezeBox Duet, Netgear GS608 v2 8 Port GBit Switch
niwa2
Experience counts
 
Posts: 1728
Joined: Sat Oct 13, 2007 2:21 am
Location: Germany
Model: TS-509 Pro

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

Postby gor » Mon Apr 12, 2010 10:09 pm

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.
User avatar
gor
Starting out
 
Posts: 20
Joined: Mon Aug 10, 2009 3:46 pm
Model: TS-x69 Pro

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

Postby niwa2 » Mon Apr 12, 2010 10:57 pm

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.
TS-639 Pro | Version 4.0.1 | 5x 3TB WDC WD30EFRX RAID5 + 1x 320GB WDC WD3200AAKS
LianLi EX-50 with 3x 2TB SAMSUNG HD203WI + 2x 2TB SAMSUNG HD204UI in RAID5 as Backup drive
LianLi EX-503 with 5x 2TB SAMSUNG HD204UI in RAID5 as Backup drive
TS-109 + TS-109 Pro II | Version 3.3.2 Build 0918
HDI Dune BD Prime 3.0, Mede8er MED600X3D, SqueezeBox Duet, Netgear GS608 v2 8 Port GBit Switch
niwa2
Experience counts
 
Posts: 1728
Joined: Sat Oct 13, 2007 2:21 am
Location: Germany
Model: TS-509 Pro

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

Postby gor » Tue Apr 13, 2010 5:43 pm

How can I do that?
How can I bulk delete them?
Thank you!
User avatar
gor
Starting out
 
Posts: 20
Joined: Mon Aug 10, 2009 3:46 pm
Model: TS-x69 Pro

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

Postby niwa2 » Tue Apr 13, 2010 6:37 pm

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.
TS-639 Pro | Version 4.0.1 | 5x 3TB WDC WD30EFRX RAID5 + 1x 320GB WDC WD3200AAKS
LianLi EX-50 with 3x 2TB SAMSUNG HD203WI + 2x 2TB SAMSUNG HD204UI in RAID5 as Backup drive
LianLi EX-503 with 5x 2TB SAMSUNG HD204UI in RAID5 as Backup drive
TS-109 + TS-109 Pro II | Version 3.3.2 Build 0918
HDI Dune BD Prime 3.0, Mede8er MED600X3D, SqueezeBox Duet, Netgear GS608 v2 8 Port GBit Switch
niwa2
Experience counts
 
Posts: 1728
Joined: Sat Oct 13, 2007 2:21 am
Location: Germany
Model: TS-509 Pro

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

Postby gor » Tue Apr 13, 2010 8:53 pm

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.
User avatar
gor
Starting out
 
Posts: 20
Joined: Mon Aug 10, 2009 3:46 pm
Model: TS-x69 Pro

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

Postby gingercat » Fri May 14, 2010 3:15 pm

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 :)
gingercat
Starting out
 
Posts: 10
Joined: Sun Apr 19, 2009 3:59 am
Location: Lancashire, UK
Model: TS-109/209 Pro

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

Postby voxtreet » Mon Jun 07, 2010 5:18 am

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!
voxtreet
First post
 
Posts: 1
Joined: Wed Jun 11, 2008 6:05 am
Model: TS-101/TS-201

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

Postby niwa2 » Mon Jun 07, 2010 3:38 pm

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.
TS-639 Pro | Version 4.0.1 | 5x 3TB WDC WD30EFRX RAID5 + 1x 320GB WDC WD3200AAKS
LianLi EX-50 with 3x 2TB SAMSUNG HD203WI + 2x 2TB SAMSUNG HD204UI in RAID5 as Backup drive
LianLi EX-503 with 5x 2TB SAMSUNG HD204UI in RAID5 as Backup drive
TS-109 + TS-109 Pro II | Version 3.3.2 Build 0918
HDI Dune BD Prime 3.0, Mede8er MED600X3D, SqueezeBox Duet, Netgear GS608 v2 8 Port GBit Switch
niwa2
Experience counts
 
Posts: 1728
Joined: Sat Oct 13, 2007 2:21 am
Location: Germany
Model: TS-509 Pro

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

Postby nexgen » Fri Jun 18, 2010 3:15 pm

voxtreet wrote:[/code]
- Run it!
Code: Select all
#python rmthumbnails.py


That should do it!

Thanks!


Works like a charm... Thank you so much.
**************************************************************
TS-459-Pro [RAID5]
4x HGST Deskstar NAS - 4TB

**************************************************************
User avatar
nexgen
Starting out
 
Posts: 22
Joined: Mon May 17, 2010 3:00 pm
Location: Denmark
Model: TS-459 Pro

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

Postby johngalt » Wed Jul 14, 2010 11:32 pm

This is what worked well for me.

Code: Select all
find /share/Qmultimedia/music/ -type d -name .@__thumb -exec rm -r {} \;
Doug

TS-659 Pro+, 3.6.0 Build 0210
Drives: 2x Seagate ST31000524NS Raid 1 + 4 Seagate ST32000641AS JBOD
johngalt
Know my way around
 
Posts: 104
Joined: Mon Oct 22, 2007 12:24 am
Location: KY, USA

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

Postby boschma1 » Sat Jul 24, 2010 5:04 pm

@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)
User avatar
boschma1
New here
 
Posts: 8
Joined: Mon Dec 14, 2009 12:58 pm
Location: Basel, Switzerland
Model: TS-259 Pro+

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

Postby Xmantium » Wed Dec 15, 2010 8:03 am

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
User avatar
Xmantium
Easy as a breeze
 
Posts: 400
Joined: Fri Sep 03, 2010 3:55 am
Location: Manchester, England
Model: TS-639 Pro

Next

Return to Miscellaneous

Who is online

Users browsing this forum: ozgreg and 5 guests