From owner-freebsd-questions@FreeBSD.ORG Wed May 12 08:54:09 2004 Return-Path: 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 7E56716A4CF for ; Wed, 12 May 2004 08:54:09 -0700 (PDT) Received: from web40411.mail.yahoo.com (web40411.mail.yahoo.com [66.218.78.108]) by mx1.FreeBSD.org (Postfix) with SMTP id 1267F43D2F for ; Wed, 12 May 2004 08:54:09 -0700 (PDT) (envelope-from carvin5string@yahoo.com) Message-ID: <20040512155408.67902.qmail@web40411.mail.yahoo.com> Received: from [207.17.234.210] by web40411.mail.yahoo.com via HTTP; Wed, 12 May 2004 08:54:08 PDT Date: Wed, 12 May 2004 08:54:08 -0700 (PDT) From: carvin5string To: freebsd-questions@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: moving /var & symlink to /usr/var isn't working, now broke mysql X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 May 2004 15:54:09 -0000 I am trying to move /var to /usr/var and create a symlink but it isn't working right. Here's what I am doing - mkdir /usr/var cd /var tar cf - . | ( cd /usr/var; tar xf - ) cd / rm -rf /var ln -s /usr/var /var I am using FreeBSD-5.2. Everything works except the rm -rf /var, I get a message that it is not empty. I look in /var and see a subdirectory called empty, which is empty. But I cannot delete it. If I try the ln -s part it appears to work but when I do ls -la I don't see the link. Now the /var is messed up and my database server isn't working correctly, and the web site doesn't show the results of queries needed on the web site. Do the above commands work with this version of FreeBSD? If not, how do I do this? (Please reply to this email address, carvin5string@yahoo.com, because for some reason my requests to subscribe to the list are not working) Thanks -- Chip Wiegand Computer Services Simrad, Inc www.simradusa.com chip.wiegand@simrad.com "There is no reason anyone would want a computer in their home." --Ken Olson, president, chairman and founder of Digital Equipment Corporation, 1977 (Then why do I have 8? Somebody help me!) __________________________________ Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2' http://movies.yahoo.com/showtimes/movie?mid=1808405861