From owner-freebsd-questions@FreeBSD.ORG Fri May 25 21:07:11 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 21301106566C for ; Fri, 25 May 2012 21:07:10 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (nightmare.dreamchaser.org [12.32.44.142]) by mx1.freebsd.org (Postfix) with ESMTP id 99C308FC17 for ; Fri, 25 May 2012 21:07:10 +0000 (UTC) Received: from breakaway.dreamchaser.org (breakaway.dreamchaser.org. [12.32.36.73]) by nightmare.dreamchaser.org (8.13.6/8.13.6) with ESMTP id q4PL79HL022239; Fri, 25 May 2012 15:07:09 -0600 (MDT) (envelope-from freebsd@dreamchaser.org) Message-ID: <4FBFF47D.9040803@dreamchaser.org> Date: Fri, 25 May 2012 15:07:09 -0600 From: Gary Aitken User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120524 Thunderbird/12.0.1 MIME-Version: 1.0 To: Wojciech Puchar References: <4FBBF32D.9070505@dreamchaser.org> <20120522234510.a406941d.goksin.akdeniz@gmail.com> <4FBD7BA0.7070502@dreamchaser.org> <4FBEE05A.6000909@dreamchaser.org> <20120525035108.a3af81c1.freebsd@edvax.de> <4FBFAB5B.6010405@dreamchaser.org> <4FBFCC61.2010504@dreamchaser.org> <4FBFE5E2.6070305@dreamchaser.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (nightmare.dreamchaser.org [12.32.36.65]); Fri, 25 May 2012 15:07:09 -0600 (MDT) Cc: freebsd-questions@freebsd.org Subject: Re: removing /var/empty on a non-system disk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@dreamchaser.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 May 2012 21:07:11 -0000 On 05/25/12 14:38, Wojciech Puchar wrote: > chflags noschg is your friend. Not in this case. If you look at the commands attempted, that was already tried (line 282) Topmost login had to be as root. > On Fri, 25 May 2012, Gary Aitken wrote: > >> something I'm not seeing >> >> I've got a disk previously used as a sys disk I'm trying to clean up. >> What's the key to removing /var/empty? >> >> 280 /hd1/var#sysctl kern.securelevel >> kern.securelevel: -1 >> 281 /hd1/var#ls -l >> total 4 >> dr-xr-xr-x 2 root wheel 512 Jan 3 00:55 empty >> 282 /hd1/var#chflags noschg empty >> 283 /hd1/var#chmod 777 empty >> chmod: empty: Operation not permitted >> 284 /hd1/var#rmdir empty >> rmdir: empty: Operation not permitted