Unable to delete LARGE folder

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Wed Dec 7 16:05:09 UTC 2011


On Wed, Dec 07, 2011 at 10:57:53AM -0500, Stephen W. Clarke wrote:
> Hello all,
> 
> I'm stumped with what should be a simple issue.
> 
> I have a folder that due to a coding error ended up with 280,000 files in
> it. A total of about 3GB of junk.
> 
> I tried to delete it using
> 
> #rm -rf foldername
> 
> but it produces this error:
> 
> CIFS VFS: No response for cmd 50 mid 14xxx
> 
> A google search suggested turning off the Opportunistic Locking with
> 
> #echo 0 > /proc/fs/cifs/OplockEnabled
> 
> and then re-running the rm command from above
> 
> But that didn't help either.
> 
> Any suggestions?

find foldername -print0 | xargs -0 -n 100 rm

Basicly, delete 100 things at a time.  It should tolerate that,
shouldn't it?

Is this a local drive, or a network mount?  The error makes me suspect
it is a windows drive remotely mounted.

-- 
Len Sorensen
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list