From owner-freebsd-questions Wed Apr 29 02:38:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA08359 for freebsd-questions-outgoing; Wed, 29 Apr 1998 02:38:31 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from freebie.lemis.com (freebie.lemis.com [139.130.136.133]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA08307 for ; Wed, 29 Apr 1998 02:38:23 -0700 (PDT) (envelope-from grog@lemis.com) Received: from papillon.lemis.com ([192.122.138.250]) by freebie.lemis.com (8.8.8/8.8.7) with ESMTP id TAA19993; Wed, 29 Apr 1998 19:06:52 +0930 (CST) (envelope-from grog@lemis.com) Received: (grog@localhost) by papillon.lemis.com (8.8.8/8.6.12) id VAA00361; Mon, 27 Apr 1998 21:27:12 +0800 (SGT) Message-ID: <19980427212711.45986@papillon.lemis.com> Date: Mon, 27 Apr 1998 21:27:11 +0800 From: Greg Lehey To: Peter Fogg , freebsd-questions@FreeBSD.ORG Subject: Re: Installation Problem References: <3540A818.61C1ACF6@csun.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89i In-Reply-To: <3540A818.61C1ACF6@csun.edu>; from Peter Fogg on Fri, Apr 24, 1998 at 07:56:24AM -0700 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 24 April 1998 at 7:56:24 -0700, Peter Fogg wrote: > On page 72 of The Complete FreeBSD book, second edition, several > end-of-installation procedures are recommended. The procedure to move > "/var" is the one giving me the problem. When I enter the commands > listed, the following takes place: > > # mkdir /usr/var ( this works ) > # cd /var ( this works ) > # tar cf - . | (cd /usr/var; tar xf - ) ( this works ) > # cd / ( this works ) > # rm -rf /var ( I receive a message "/var Device is busy" ) > # ln -s /usr/var /var ( does not work ) Yes, this is a consequence of the previous problem. > Some subsequent operations, including the boot process, display messages > that state the some file in /var cannot be found. This procedure is intended only for people who have not created a /var file system (as I suggest earlier in the chapter). It looks to me as if you have done this although you have created a /var file system. The problem now is that you have deleted all the files, and that you can't delete the mount point (/var) because there is a file system mounted on it. You have two options: 1. Put the files back where they came from: # cd /usr/var/ # tar cf - . | (cd /var; tar xvf -) then at least restart syslogd, as described in the text. 2. Forget /var and leave them where they are: # umount /var # rmdir /var # ln -s /usr/var /var Remove the /var entry from /etc/fstab (with an editor). The second option leaves you with a file system floating around with which you can't do too much. On the whole, I'd stick with the first option. If you do, and *after* you're sure it all works, you can tidy up with: # rm -rf /usr/var Greg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message