From owner-freebsd-questions@FreeBSD.ORG Sat May 31 11:57:35 2003 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 5589D37B401 for ; Sat, 31 May 2003 11:57:35 -0700 (PDT) Received: from mail.speakeasy.net (mail12.speakeasy.net [216.254.0.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id C329143FA3 for ; Sat, 31 May 2003 11:57:34 -0700 (PDT) (envelope-from jemaxwell@jaymax.com) Received: (qmail 27351 invoked from network); 31 May 2003 18:57:34 -0000 Received: from unknown (HELO jaymax.com) (jaymax@[66.93.45.209]) (envelope-sender ) by mail12.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 31 May 2003 18:57:34 -0000 Message-ID: <3ED8FB4E.76498642@jaymax.com> Date: Sat, 31 May 2003 11:58:23 -0700 From: Joseph Maxwell X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en,pdf MIME-Version: 1.0 To: FreeBSD Users Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Repositioning /var | /tmp to avoid disk full condition 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: Sat, 31 May 2003 18:57:35 -0000 Hello, The 3rd edition of "The Complete FreeBSD" suggest repositioning the /var directory ( and even /tmp) to prevent filling up that partition. I ignored it and did just that today, filled it up. So I attempted the repositioning with the following recommended command steps and results: cd /var tar cf - . | (cd /usr/var; tar xf - ) cd / rm -rf /var ln -s /usr/var /var However the 'rm -rf /var' returned rm: /var: Device busy After trying all known tricks to me to remove /var, I concluded that since it was mounted from the /etc/fstab I should dismount it and remove the directory (link point ?) and create a soft link there as recommended. However, on rebooting boot was aborted, was thrown into single users mode. After some findangling eventually got the system back up as before with the /var directory, except that now it contains only the /var/cron and /var/run directories. The original /var contained /var/account: /var/at: /var/backups: /var/crash: /var/cron: /var/db: /var/games: /var/log: /var/lost+found: /var/mail: /var/msgs: /var/preserve: /var/qmail: /var/run: /var/rwho: /var/smtpd: /var/spool: /var/tmp: /var/webmin: /var/yp: How can I restore the full functioning structural integrity as before, of course the contents of the /usr/var directory was wiped out somwhere along the way, sans log, sans mail, sans everything. Just want to continue as before. Thanks. -- Joe --