From owner-freebsd-questions Mon Jan 18 12:01:33 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA00480 for freebsd-questions-outgoing; Mon, 18 Jan 1999 12:01:33 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from horton.iaces.com (horton.iaces.com [204.147.87.98]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA00438 for ; Mon, 18 Jan 1999 12:01:19 -0800 (PST) (envelope-from proot@horton.iaces.com) Received: (from proot@localhost) by horton.iaces.com (8.8.8/8.8.8) id OAA02012; Mon, 18 Jan 1999 14:01:05 -0600 (CST) (envelope-from proot) From: "Paul T. Root" Message-Id: <199901182001.OAA02012@horton.iaces.com> Subject: Re: symbolic link trouble In-Reply-To: <19990118195850.6149.rocketmail@send106.yahoomail.com> from "N. R.R." at "Jan 18, 99 11:58:50 am" To: robalama@yahoo.com (N. R.R.) Date: Mon, 18 Jan 1999 14:01:04 -0600 (CST) Cc: freebsd-questions@FreeBSD.ORG X-Organization: USWEST !nterprise Networking - ACES X-Phone: (612) 664-3385 X-Fax: (612) 664-4779 X-Page: (800) SKY-PAGE PIN: 537-7270 X-Address: 600 Stinson Blvd, Fl 1S X-Address: Minneapolis, MN 55413 X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In a previous message, N. R.R. said: > Hello, > > I was trying to create a symbolic link to /var by following this > technique: > > #mkdir /usr/var > #cd /var > #tar cf - . | (cd /usr/var; tar xf - ) > #rm -rf /var > > However, this is where it gets weird. It says: > > rm: /var: Device Busy > > #ln -s /usr/var /var > > even after I rebooted I still couldnt remove the /var directory. And, > of course, many things wouldnt start at bootup (cron stuff, sendmail > stuff, etc., due to not finding files in the /var directory) > It would give me some errors along the lines of: There are files that are always open in /var. If you can reboot the easiest thing to do would be mv /var /var.old ln -s /usr/var /var reboot Then come back and remove /var.old If you can't reboot, you can do the mv and ln, then stop and restart anything that has an open file (which you can find with fstat). -- o __o __/\______-\<, __ ) _____________________ -\>, O/ O -\>' O/ O O/ O To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message