From owner-freebsd-questions@FreeBSD.ORG Mon Jun 5 20:42:42 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8FB4B16CA54 for ; Mon, 5 Jun 2006 20:42:42 +0000 (UTC) (envelope-from chris@childeric.freeserve.co.uk) Received: from smtp-out2.blueyonder.co.uk (smtp-out2.blueyonder.co.uk [195.188.213.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 24B0A43D45 for ; Mon, 5 Jun 2006 20:42:41 +0000 (GMT) (envelope-from chris@childeric.freeserve.co.uk) Received: from [172.23.170.147] (helo=anti-virus03-10) by smtp-out2.blueyonder.co.uk with smtp (Exim 4.52) id 1FnLuK-0003cM-Ff; Mon, 05 Jun 2006 21:42:40 +0100 Received: from [82.35.115.93] (helo=[192.168.10.60]) by asmtp-out1.blueyonder.co.uk with esmtpa (Exim 4.52) id 1FnLuJ-0006TG-Ow; Mon, 05 Jun 2006 21:42:39 +0100 Message-ID: <4484973B.8020604@childeric.freeserve.co.uk> Date: Mon, 05 Jun 2006 21:42:35 +0100 From: Chris Whitehouse User-Agent: Thunderbird 1.5 (X11/20060417) MIME-Version: 1.0 To: Jack Stone References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Cannot delete stubborn files - New Hint X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 20:42:45 -0000 Jack Stone wrote: >> From: Chris Whitehouse >> CC: freebsd-questions@freebsd.org >> 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/Hostname.pm > ....and the others > /usr/libdata/perl/5.00503/Sys/Hostname.pm > /usr/local/lib/perl5/5.6.1/mach/Sys/Hostname.pm > > 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/Hostname.pm 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/Hostname.pm, 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) http://groups.google.com/group/fa.freebsd.questions/browse_thread/thread/b031f4a77ccd26a3/0e8f61e4e58fd4a5?lnk=st&q=group%3A*.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. Chris