From owner-freebsd-questions Mon Jul 31 17:11:48 2000 Delivered-To: freebsd-questions@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 86D7637BD6B for ; Mon, 31 Jul 2000 17:11:38 -0700 (PDT) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e710BTX22835; Mon, 31 Jul 2000 17:11:29 -0700 (PDT) Date: Mon, 31 Jul 2000 17:11:29 -0700 From: Alfred Perlstein To: David Kirchner Cc: daniel B , freebsd-questions@FreeBSD.ORG Subject: Re: Can't delete /sys : Operation not permited! Message-ID: <20000731171129.L4854@fw.wintelcom.net> References: <20000730160017.A78686@almazs.pacex.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: ; from dpk@nwserv.com on Mon, Jul 31, 2000 at 05:07:08PM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On Sun, 30 Jul 2000, daniel B wrote: > > > Hi > > > > I just did make buildworld to 3.5-STABEL and make installworld failed > > because it could not delete /sys. > > ls -la /sys > > lrwxrwxrwx 1 root wheel ...... /sys -> /usr/src/sys > > > > I didi: chflags -RL noschg /sys and: rm -rf /sys > > I get Operation not permited > > > > Then I did chflags -RL nosunlink /sys and rm -rf /sys > > still no luck! > > Kern securelevel is not an issue since I droped to -1 to do this operation. > > > > How can I remove /sys > > * David Kirchner [000731 17:09] wrote: > > Hi Daniel, > > A couple of suggestions (probably wrong, just ideas): > > o Make sure the root partition is not mounted read-only. I believe this > would cause that error. > o To see the flags for /sys, type 'ls -old /sys'. That'll tell you what > you may need to do with chflags to be able to remove the file. I would check to make sure that / isn't flagged immutable, that would make it impossible to remove files from /. -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message