How to remove folders from subdirectories?

Don't miss a thing. Post your questions and discussion about other uncategorized NAS features here.
Post Reply
queueNap
Starting out
Posts: 28
Joined: Sun May 06, 2012 10:32 pm

How to remove folders from subdirectories?

Post by queueNap » Thu Nov 07, 2013 6:50 pm

Finally I'm tired of the crappy Twonky Server on my QNAP - even under 4:02 QTS it scans for days and days with continuously high CPU utilization.
Unfortunately I could not find any useful alternative.

Now I want to delete approx. 5.000 directories named .@__twonky this crappy software has generated. Entered this on the console:

Code: Select all

find / -name ".@__thumb" -exec rm -R {} \;


This does not work, looks like -exec is not supported, all I get is this:

Code: Select all

usyBox v1.01 (2013.06.23-18:42+0000) multi-call binary

Usage: find [PATH...] [EXPRESSION]

Search for files in a directory hierarchy.  The default PATH is
the current directory; default EXPRESSION is '-print'

EXPRESSION may consist of:
        -follow         Dereference symbolic links.
        -name PATTERN   File name (leading directories removed) matches PATTERN.
        -print          Print (default and assumed).

        -type X         Filetype matches X (where X is one of: f,d,l,b,c,...)
        -perm PERMS     Permissions match any of (+NNN); all of (-NNN);
                        or exactly (NNN)
        -mtime TIME     Modified time is greater than (+N); less than (-N);
                        or exactly (N) days


Also tried to
- remove the folders in QS 4.02 file station, but it does not list the files because they are hidden
- use FileZilla which finds all folders, but it is not possible to delete folders in different locations.

Any help is appreciated.
Last edited by queueNap on Thu Nov 07, 2013 8:31 pm, edited 1 time in total.

User avatar
schumaku
Guru
Posts: 43648
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: How to remove Twonky generated folders from subdirectori

Post by schumaku » Thu Nov 07, 2013 7:11 pm

You are blaming Twonky for something it's not in charge - claim .@__twonky but try to deal with .@__thumb which is completely unrelated.

queueNap wrote:Unfortunately I could not find any useful alternative.
That says it all - it's one of the best DLNA servers out there.

Crappy problem analysis - back to your desk :twisted:

Regards,
-Kurt.

PS. Building the Media Library with it's thumbnails from all photos and images (stored within .@__thumb :shock: ) is highly resource intensive - new firmware can't make a Bugatti from your 2CV. Coming-up firmware permits to disable the Media Library - being the platform for the QNAP DLNA (not Twonky), Photo Station, Music Station, Video Station 2, ... and more to come.

queueNap
Starting out
Posts: 28
Joined: Sun May 06, 2012 10:32 pm

Re: How to remove Twonky generated folders from subdirectori

Post by queueNap » Thu Nov 07, 2013 7:41 pm

Okay, shame on me, so these folders do not come from Twonky Server, but apart from your opinion it is unusable for me. Let's pretend I'm the only one who has the problems of TS scanning for days (last time I stopped after 9 days, and at there were no .@__thumb dirs at this time) and utilizing over 90 % CPU constantly.

The question remains.

PS:

schumaku wrote:
queueNap wrote:Unfortunately I could not find any useful alternative.
That says it all - it's one of the best DLNA servers out there.


What are the other ones in your list? I would prefer the best, not "one of the best". :p

User avatar
schumaku
Guru
Posts: 43648
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: How to remove Twonky generated folders from subdirectori

Post by schumaku » Thu Nov 07, 2013 7:58 pm

Twonky does never ever scan that long. Might happen your NAS is simply overloaded 2CV need to carry 250 tons - this does and will delay any services running. Just attempting to remove these folders will cause ... the automatic recreation, and some more days or weeks of processing. A war you will never able to win wit this approach. Oh --- and File Station will create these folders again when accessing.

For me Twonky is #1 in DLNA - not a playground something that simply works, and the NAS integration is almost a no-brainer.

queueNap
Starting out
Posts: 28
Joined: Sun May 06, 2012 10:32 pm

Re: How to remove Twonky generated folders from subdirectori

Post by queueNap » Thu Nov 07, 2013 8:28 pm

schumaku wrote:Twonky does never ever scan that long.


Ok, you don't believe me.

Someone else willing to help? The question still remains.

User avatar
schumaku
Guru
Posts: 43648
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: How to remove folders from subdirectories?

Post by schumaku » Thu Nov 07, 2013 9:14 pm

No, I have not stated that I don't believe you. The 2CV will reach it's destination with the 250 tons load (assuming it does not break down before). If Twonky only gets say 1% of the CPU time, it will take a long time.

How to kill the media library is documented in the forum - I will not assist, because it's the wrong way. With QTS 4.1 available in public Beta, you can disable the Media Library. But I don't want to repeat everything.

Just sticking on the idea removing any folders - which don't hurt for 99.8% of the NAS usage, which will come back, which are used by active services, ... - is a dead end as these will come back anyway.

Unload your 2CV and load only what is required before cleaning the dust when you have reached the destination.

User avatar
teracow
Easy as a breeze
Posts: 307
Joined: Thu Jun 23, 2011 8:17 am

Re: How to remove folders from subdirectories?

Post by teracow » Fri Nov 08, 2013 6:18 am

.
Last edited by teracow on Sat Nov 29, 2014 1:38 pm, edited 2 times in total.
I (like many others) have left this forum due to the incompetence of QNAP staff.

I have now completed deletion of all my posts (how-to's, images, hand-written instructions, on-the-fly user manuals, etc..). These are now gone.

I am not interested in assisting QNAP any further when they won't assist me. Anyone unlucky enough to have dealt with Adong Lin (QNAP Systems Inc.) or the blundering incompetence of the 'live chat' specialist AJ Lee will know what I mean. Adong doesn't understand the first thing about basic computer interoperability and AJ disconnects you from live chat when he doesn't want to deal with your problem.

I will not support QNAP any further. Far from it - I will now be recommending a competitor's hardware instead. I'm done.

User avatar
forkless
Experience counts
Posts: 1914
Joined: Mon Nov 23, 2009 6:52 am
Location: The Netherlands

Re: How to remove folders from subdirectories?

Post by forkless » Fri Nov 08, 2013 8:08 am

You will need to add -r to that rm or it won't delete folders

Sent from my GT-I9100 using Tapatalk

User avatar
teracow
Easy as a breeze
Posts: 307
Joined: Thu Jun 23, 2011 8:17 am

Re: How to remove folders from subdirectories?

Post by teracow » Fri Nov 08, 2013 8:15 am

.
Last edited by teracow on Sat Nov 29, 2014 1:37 pm, edited 1 time in total.
I (like many others) have left this forum due to the incompetence of QNAP staff.

I have now completed deletion of all my posts (how-to's, images, hand-written instructions, on-the-fly user manuals, etc..). These are now gone.

I am not interested in assisting QNAP any further when they won't assist me. Anyone unlucky enough to have dealt with Adong Lin (QNAP Systems Inc.) or the blundering incompetence of the 'live chat' specialist AJ Lee will know what I mean. Adong doesn't understand the first thing about basic computer interoperability and AJ disconnects you from live chat when he doesn't want to deal with your problem.

I will not support QNAP any further. Far from it - I will now be recommending a competitor's hardware instead. I'm done.

queueNap
Starting out
Posts: 28
Joined: Sun May 06, 2012 10:32 pm

Re: How to remove folders from subdirectories?

Post by queueNap » Fri Nov 08, 2013 2:57 pm

Thank you very much, teracow 8)

User avatar
trejder
Know my way around
Posts: 182
Joined: Fri Jan 07, 2011 5:13 am

Re: How to remove folders from subdirectories?

Post by trejder » Sun Nov 24, 2013 9:38 pm

Don't forget to disable Media Library, which is responsible for creation of these nasty folders, by visiting: Control Panel > Applications > Multimedia Management > Media library (path or module can vary according to your QTS version and QNAP device type). Then switch `Scan Settings` to `Manual` and click `Apply` and/or click `Deactivate Media Library` (whichever option suits you best).
QNAP TS-210 with:
- RAID 0 Stripping Disk Volume using 2x2TB HDD (Samsung HD204UI),
- plus 1,5TB Ext USB HDD (Samsung HD154UI),
- and 0,75TB Ext USB HDD (WD MyPassport).
Latest firmware installed.

Post Reply

Return to “Miscellaneous”