Cannot delete stubborn files - New Hint

Chris Whitehouse chris at
Mon Jun 5 13:42:45 PDT 2006

Jack Stone wrote:
>> From: Chris Whitehouse <chris at>
>> CC: freebsd-questions at
>> Subject: Re: Cannot delete stubborn files - New Hint
>> Date: Sun, 04 Jun 2006 22:59:48 +0100
>> Update your locate database and see if there are any other instances 
>> of the file? Just a shot in the dark
>> Chris
> Chris: Yes, there are others:
> The one I can't delete:
> /tmp2/local/lib/perl5/5.6.1/mach/Sys/
> ....and the others
> /usr/libdata/perl/5.00503/Sys/
> /usr/local/lib/perl5/5.6.1/mach/Sys/
> What would be the issue if the above exists?

I am wondering if you can do something with the other link if there is 
one, eg delete it.
How many links does
ls -l /tmp2/local/lib/perl5/5.6.1/mach/Sys/ show. I'm 
guessing it is linked to the one in perl5/5.6.1.
Do you need perl 5.6.1? (sorry lost the earlier threads)
Can you delete /usr/local/lib/perl5/5.6.1/mach/Sys/, then can 
you delete the one in tmp2?

Alternative this thread has instructions which which you might be able 
to adapt do what you want - see the response from Matthew Seaman 
involving clri(8)*.freebsd.*+%22terminated+with+1+(non-zero)+status%3A+Cross-device+link%22&rnum=3#0e8f61e4e58fd4a5

(sorry rather long line)

It relates to Fbsd 4.6 but clri is still around so could still work. It 
does say it is dangerous and this example relates to a msdos filesystem.


More information about the freebsd-questions mailing list