From owner-freebsd-questions@FreeBSD.ORG Mon Oct 6 22:31:44 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 265D2106568C for ; Mon, 6 Oct 2008 22:31:44 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mx1.freebsd.org (Postfix) with ESMTP id F1B638FC16 for ; Mon, 6 Oct 2008 22:31:43 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KmycA-0008Mh-Qe for freebsd-questions@freebsd.org; Mon, 06 Oct 2008 15:31:42 -0700 Message-ID: <19847627.post@talk.nabble.com> Date: Mon, 6 Oct 2008 15:31:42 -0700 (PDT) From: jaymax To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: jaymax36@gmail.com Subject: Cant remove /var, in relocating /var to a symbolic link 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, 06 Oct 2008 22:31:44 -0000 I am attempting to relocate /var to avoid files system full issues. Using a - mkdir /usr/var cd /var tar cf - . | (cd /usr/var; tar xf - ) cd / rm -rf /var ln -s /usr/var /var approach at the rm -rf /var step, the following was received rm: /var/empty: Operation not permitted rm: /var/named/dev: Device busy rm: /var/named: Directory not empty rm: /var: Device busy Te contents of /var at this site was ls /var ./ ../ empty/ named/ and ls /var/empty/ ./ ../ ls -l /var/empty/ total 4 dr-xr-xr-x 2 root wheel 512 Nov 3 2005 ./ drwxr-xr-x 4 root wheel 512 Oct 6 14:02 ../ Can't change permissons either chmod 755 /var/empty/ chmod: /var/empty/: Operation not permitted while ls /var/named/ ./ ../ dev/ ls -l /var/named/ total 5 drwxr-xr-x 3 root wheel 512 Oct 4 19:46 ./ drwxr-xr-x 5 root wheel 512 Oct 6 14:16 ../ dr-xr-xr-x 4 root wheel 512 Jan 1 2002 dev/ ls -l /var/named/dev total 0 Could chmod755 but still cant remove, dev, dir empty but => Device busy How can I remove these two directories so that I can create a link from /usr/var to /var -- View this message in context: http://www.nabble.com/Cant-remove--var%2C-in-relocating--var-to-a-symbolic-link-tp19847627p19847627.html Sent from the freebsd-questions mailing list archive at Nabble.com.