From owner-freebsd-questions@FreeBSD.ORG Sun Jun 4 21:14:53 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 4FBCD16B18D for ; Sun, 4 Jun 2006 21:14:53 +0000 (UTC) (envelope-from antennex@hotmail.com) Received: from hotmail.com (bay106-f4.bay106.hotmail.com [65.54.161.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 033BF43D68 for ; Sun, 4 Jun 2006 21:14:52 +0000 (GMT) (envelope-from antennex@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 4 Jun 2006 14:14:52 -0700 Message-ID: Received: from 65.54.161.200 by by106fd.bay106.hotmail.msn.com with HTTP; Sun, 04 Jun 2006 21:14:50 GMT X-Originating-IP: [65.68.247.73] X-Originating-Email: [antennex@hotmail.com] X-Sender: antennex@hotmail.com In-Reply-To: <20060604205811.GB960@dwpc.dwlabs.ca> From: "Jack Stone" To: duane@dwlabs.ca Date: Sun, 04 Jun 2006 16:14:50 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 04 Jun 2006 21:14:52.0859 (UTC) FILETIME=[EBD2C0B0:01C6881B] 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: Sun, 04 Jun 2006 21:14:53 -0000 >From: Duane Whitty >To: Jack Stone >CC: freebsd-questions@freebsd.org >Subject: Re: Cannot delete stubborn files - New Hint >Date: Sun, 04 Jun 2006 17:58:11 -0300 > >On Sun, Jun 04, 2006 at 02:57:38PM -0500, Jack Stone wrote: > > >From: "Jack Stone" > > >To: wmoran@collaborativefusion.com > > >CC: freebsd-questions@freebsd.org > > >Subject: Re: Cannot delete stubborn files > > >Date: Sun, 04 Jun 2006 14:52:01 -0500 > > > > > >>From: Bill Moran > > >>To: "Jack Stone" > > >>CC: freebsd-questions@freebsd.org > > >>Subject: Re: Cannot delete stubborn files > > >>Date: Sun, 4 Jun 2006 14:40:22 -0400 > > >> > > >>"Jack Stone" wrote: > > >> > > >>> >From: Chris Hill > > >>> >To: Jack Stone > > >>> >CC: freebsd-questions@freebsd.org > > >>> >Subject: Re: Cannot delete stubborn files > > >>> >Date: Sun, 4 Jun 2006 09:39:51 -0400 (EDT) > > >>> > > > >>> >On Sun, 4 Jun 2006, Jack Stone wrote: > > >>> > > > >>> >>I have 2 files that resists all efforts to delete them. > > >>> > > > >>> >[...] > > >>> > > > >>> >>Here are the files and the error message: > > >>> >>rm: local/lib/perl5/5.6.1/mach/Sys/Hostname.pm: Operation not > > >>permitted > > >>> >>rm: local/lib/perl5/5.6.1/mach/Sys/Syslog.pm: Operation not >permitted > > >>> > > > >>> >Make sure the files do not have the system immutable flag set: > > >>> > > > >>> ># chflags noschg local/lib/perl5/5.6.1/mach/Sys/Hostname.pm > > >>> ># chflags noschg local/lib/perl5/5.6.1/mach/Sys/Syslog.pm > > >>> > > > >>> >...and then see if you can't delete them. I don't know why the flag > > >>would > > >>> >be set, but it's something to try. > > >>> > > > >>> >HTH. > > >>> > > > >>> >-- > > >>> >Chris Hill chris@monochrome.org > > >>> > > >>> Chris: Tried that at the very first. No joy! > > >> > > >>If flags and permissions are all set so that the files should delete, >and > > >>they still don't, reboot the system into single user mode and fsck the > > >>partition. > > >> > > >>I had this happen a number of years ago. We had dirty power and the > > >>system > > >>would reboot on occasion during brownout. We finally got UPS on the > > >>system, > > >>but months later we had files that wouldn't delete. The only way we > > >>finally > > >>got rid of them was to reboot in single user and fsck. I expect the >disk > > >>suffered some subtle corruption during an unclean boot and it took >time > > >>before we noticed. > > >> > > >>Another option would be to use fstat to make sure nothing has the >files > > >>open. > > >> > > >>HTH. > > >> > > >>-- > > >>Bill Moran > > >> > > > > > >Hi, Bill: Yes, tried all of that before and again no joy -- very >mysteries. > > >A free cigar to anyone who solves this one! > > > > > > > Since I learned I could "mv" the directory that contains the 2 files, I > > tried to move it to another partition, figuring I had a solution IF I >could > > only do that. > > > > Here's the new error when I tried to move the directory from "/" to /usr > > > > mv: /bin/rm: terminated with 1 (non-zero) status: Cross-device link > > > > Does this new hint stike any bells? > > > > THX > > Jack > > >Hi, > >Since you can move the directory can you move (rename) the file? >If you can mv just the files can you access/modify the files? > >Because of the cross-device link error message maybe this is hard link >related? Any files with the same name floating around? Obviously this >isn't normal hard link behaviour but maybe a link was somehow damaged? > > >Best Regards, > >Duane Whitty >-- >duane@dwlabs.ca I can move the entire directory package, i.e., local/lib/perl5/5.6.1/mach/Sys/Hostname.pm .... but, not just the file. Also, any move must be within the same partition. I cannot get it to reveal the crosslink that is preventing the removal. THX Jack _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/