@__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.
niwa2
Experience counts
Posts: 1784
Joined: Sat Oct 13, 2007 2:21 am
Location: Germany

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

Post by niwa2 » Wed Dec 15, 2010 5:06 pm

as long as the script is running the host is not answering, that is why the message pops up.
it is just taking a while to delete all tose files.
just wait until the script finishes and ignore the not responding for more than 15s message.
TVS-1282 | Version 4.4.3 | 3x 12TB WDC WD121KRYZ RAID5
TS-639 Pro | Version 4.2.6 | 5x 3TB WDC WD30EFRX RAID5 as Backup
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

User avatar
OMDB
Getting the hang of things
Posts: 55
Joined: Fri Oct 30, 2009 2:56 pm
Location: Dubai

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

Post by OMDB » Wed Feb 09, 2011 8:44 pm

Thanks for that lovely python script. Worked like a charm :)
~~~QNAP TS-509 Pro~~~~

kuro.houou
Starting out
Posts: 12
Joined: Sat Mar 19, 2011 8:38 pm

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

Post by kuro.houou » Sat Mar 19, 2011 8:41 pm

I am trying to prevent the creation of the @_thumb folder and files but I don't see the below line in my crontab file

0 3 * * * /usr/local/sbin/ImR_all -soft /Qmultimedia

I am running firmware 3.4.0 on a 419p+, this is getting very annoying as it uploads these files to my S3 account. Wish I could prevent this as its costing me money.

niwa2
Experience counts
Posts: 1784
Joined: Sat Oct 13, 2007 2:21 am
Location: Germany

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

Post by niwa2 » Sat Mar 19, 2011 9:22 pm

on my TS-639 it is now called

Code: Select all

/etc/init.d/ImRd.sh bgThGen
and not

Code: Select all

/usr/local/sbin/ImR_all -soft /Qmultimedia
anymore.
TVS-1282 | Version 4.4.3 | 3x 12TB WDC WD121KRYZ RAID5
TS-639 Pro | Version 4.2.6 | 5x 3TB WDC WD30EFRX RAID5 as Backup
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

aquagraphite
Starting out
Posts: 30
Joined: Tue Mar 08, 2011 6:52 am
Contact:

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

Post by aquagraphite » Fri Apr 01, 2011 2:55 am

The reason that the script might not be running for some people - ermmmm you have to install Python - just as I found out DOH!

Definitely was this as I managed to get rind of loads of the stuff.

What I did was to install Python with Get QPKG in the NAS admin. Created the py file mentioned earlier in the thread and copied to the base of my share/multimedia. I then downloaded and ran Putty and logged in as admin. I then did a CD command to where my multimedia files were (cd share/multimedia). Then I simply ran python rmthumbnails.py *JOY*

All gone now

Hope that helps

Mark

Kronissimo54
New here
Posts: 2
Joined: Thu Jul 21, 2011 3:07 am

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

Post by Kronissimo54 » Sat Jul 23, 2011 5:02 pm

Hello,

the script didn't work for me.

I have installed Phyton over the Web-Adimistration with "Get QPKG" and activated it.

Then, i tried to start the script in Putty, but just became this message:

Code: Select all

[/share/Medien] # python rmthumb.py
  File "rmthumb.py", line 1
    import os, shutil
    ^
IndentationError: unexpected indent


I named the script "rmthum.py", and created it with WinSCP in /share/Medien.

How can i get it started?
QNAP: TS-419P+, Firmware 3.5.0

bobertuk
Easy as a breeze
Posts: 273
Joined: Fri Mar 27, 2009 12:12 am

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

Post by bobertuk » Fri Oct 28, 2011 1:13 am

You could run a bash script like this but will need to install 'findutils' (using ipkg) first to get access to 'exec' command.
(The basic script was obtained from internet sources but the 'find' section had to be greatly modified)

Code: Select all

#!/bin/sh
# Script:         cleanup
# Object:         Cleans up your Linux file system
#
 
# Test number of arguments here
if (( $# < 1 )) ; then
   echo
        echo "We need an argument here."
   echo "Usage:   ./cleanup [Directory]"
   echo "Example: ./cleanup /home/christian"
   echo >&2
        exit 1
fi
 
/opt/bin/find $1 \( -iname ':2eDS_Store' \
 -o -iname ':2eapdisk' \
 -o -iname '.@__thumb' \
 -o -iname '.hightlight' \
 -o -iname '.AppleDB' \
 -o -iname '.AppleDesktop' \
 -o -iname '.AppleDouble' \
 -o -iname 'Network Trash Folder' \
 -o -iname 'Temporary Items' \
 -o -iname '2elocalized' \
 -o -iname '.DS_Store' \
 -o -iname 'Thumbs.db' \
 -o -iname ':2e_*' \
 -o -iname '._*' \) -exec rm -rf {} \;

exit 0


And then set it off with crontab using something like this...

Code: Select all

10 * * * * /share/MD0_DATA/Public/Custom/cleanup /share/MD0_DATA/your_directory

This crontab task runs at 10min past every hour - you could set it off at any time of course.

On my NAS the script is called 'cleanup' and I keep it in ../Public/Custom. You can obvioulsy add/remove files/folders of your choice but MUST keep the script structure intact.

It works for me but use it at your own risk.

Bob
1 x Touch - LMS 7.7.1 SQLite - SSOTS v4.14
1 x Radio
1 x Boom
Lavry DA-10 DAC
QNAP TS-509 3.5.2 build 1124T
Starfish Pre-amp : Based on NAIM
Heavily modified NAIM NAP 250 Power-amp
Behringer DEQ2496
Linn Isobarik DMS

kuro.houou
Starting out
Posts: 12
Joined: Sat Mar 19, 2011 8:38 pm

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

Post by kuro.houou » Thu Dec 08, 2011 5:00 am

niwa2 wrote:on my TS-639 it is now called

Code: Select all

/etc/init.d/ImRd.sh bgThGen
and not

Code: Select all

/usr/local/sbin/ImR_all -soft /Qmultimedia
anymore.



I didn't see either of these on my 419p+ II. Using the latest firmware 3.5.2. Did they fix this perhaps finally?

User avatar
zitoon
Starting out
Posts: 14
Joined: Sat Dec 10, 2011 8:06 pm

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

Post by zitoon » Mon Dec 12, 2011 5:56 pm

Hello !
I have the same problem on a TS-112.
I removed this line :
# 0 3 * * * /etc/init.d/ImRd.sh bgThGen
But i still have folders created at 3:00 AM.
Does anybody have a solution for this ?
I don't use the Multimedia Station, only Zina for my music, and don't need those folders.
Thanks !

IT-King
First post
Posts: 1
Joined: Sun Apr 29, 2012 5:07 am

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

Post by IT-King » Sun Apr 29, 2012 5:09 am

Removes all thumb directories: find -iname ".@__thumb" -exec /bin/rm -r {} \+

sushi17
Starting out
Posts: 11
Joined: Thu Oct 15, 2009 3:23 pm

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

Post by sushi17 » Tue Jun 11, 2013 12:56 am

this works too from SSH

Code: Select all

rm -rf /share/Qmultimedia/*/.@__thumb
rm -rf /share/Qmultimedia/*/*/.@__thumb
rm -rf /share/Qmultimedia/*/*/*/.@__thumb
rm -rf /share/Qmultimedia/*/*/*/*/.@__thumb
rm -rf /share/Qmultimedia/*/*/*/*/*/.@__thumb


and it's easier

tshah1n
New here
Posts: 9
Joined: Wed Jul 17, 2013 5:37 pm

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

Post by tshah1n » Thu Jul 18, 2013 9:17 pm

picasa.ini files are created/used by picasa to store facetag information for all the images in the folder. if you delete then it will be reprocessed again by picasa else facetags info will be lost. one way to avoid depending on picasa.ini file to store face tags is to enable the option of storing face tags directly to jpg files (added in XMP field metadata). the option is available starting picasa 3.9 yet methods for storing face tags is not standardized and will only be understood by picasa.

also note that starting qnap qts 4, other thumbnails are generated by media library service for photo station 3 and stored along with the database file in a different location /share/HDA_DATA/.system which are independent on the multimedia station thumbnails

there should be a way to migrate multimedia station to use the new media library database instead of wasting time/storage duplicating and generating multiple thumbnail sets else i recommend to stop using multimedia station altogether and delete the thumbnails using the script offered above and depending on qfile and qmusic apps instead of qmobile. though QNAP sw team should develop a qphoto app that displays and uses database generated by the new photostation 3 which is much faster and robust compared to multimedia station.

tshah1n
New here
Posts: 9
Joined: Wed Jul 17, 2013 5:37 pm

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

Post by tshah1n » Thu Jul 18, 2013 9:19 pm

you may also stop multimedia station thumbnail generation process directly from the station manager in qts 4 by disabling the daily scan schedule which will remove it from crontab automatically

User avatar
doktornotor
Ask me anything
Posts: 7519
Joined: Tue Apr 24, 2012 5:44 am

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

Post by doktornotor » Thu Jul 18, 2013 10:27 pm

Best solution - remove the horrible thing altogether. Finally possible with 4.0.1
I'm gone from this forum till QNAP stop wasting volunteers' time. Get help from QNAP helpdesk instead.
Warning: offensive signature and materials damaging QNAP reputation follow:
QNAP's FW security issues
QNAP's hardware compatibility list madness
QNAP's new logo competition
Dear QNAP, kindly fire your clueless incompetent forum "admin" And while at it, don't forget the webmaster!

User avatar
shenga
Know my way around
Posts: 176
Joined: Sun May 29, 2011 7:38 pm

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

Post by shenga » Fri Jul 19, 2013 1:25 am

Im on qts 4..0.1 and i cannot seem to stop generating these ** thumb folders. i have gone into station manager, media library, everything off. Theystll generate if i go into the file station at a later date so how do you turn if off completely ?
Nothing I can see in crontab suggests putting an # at the start of the line

Code: Select all

# m h dom m dow cmd
0 4 * * * /sbin/hwclock -s
0 3 * * * /sbin/vs_refresh
0 3 * * * /sbin/clean_reset_pwd
0-59/15 * * * * /etc/init.d/nss2_dusg.sh
30 7 * * * /sbin/clean_upload_file
45 2 * * * /etc/init.d/updatedb.sh crontab enable
0 5 * * * /etc/init.d/ddns_update.sh
0 3 * * 0 /etc/init.d/idmap.sh dump
45 8 * * 0 /etc/init.d/startup
*/30 * * * * /etc/init.d/check_ddns_external_ip.sh 1>/dev/null 2>/dev/null
0 2 * * 1 /etc/init.d/antivirus.sh scan 1
0 0 * * * /etc/init.d/antivirus.sh archive_log
0 0 */1 * * /etc/init.d/antivirus.sh update_db

Post Reply

Return to “Miscellaneous”