From owner-freebsd-newbies@FreeBSD.ORG Mon Feb 28 14:44:13 2005 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6130716A4CE for ; Mon, 28 Feb 2005 14:44:13 +0000 (GMT) Received: from mail.freeode.co.uk (freeode.co.uk [213.162.123.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 74CEA43D46 for ; Mon, 28 Feb 2005 14:44:12 +0000 (GMT) (envelope-from sub01@freeode.co.uk) Received: from lexx (lexx.freeode.co.uk [10.253.253.2]) by mail.freeode.co.uk (8.12.10/8.12.10) with ESMTP id j1SEi4l2003300; Mon, 28 Feb 2005 14:44:04 GMT (envelope-from sub01@freeode.co.uk) From: John Murphy To: "Gerald Lightsey" Date: Mon, 28 Feb 2005 14:44:04 +0000 Message-ID: <2v7621tffrogmtmg3b9vljft60259mqvh5@4ax.com> References: <20050228084358.QKAL13819.fed1rmmtao12.cox.net@geraldligh> In-Reply-To: <20050228084358.QKAL13819.fed1rmmtao12.cox.net@geraldligh> X-Mailer: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: newbies@freebsd.org Subject: Re: What am I doing wrong with MOUNT? X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: sub01@freeode.co.uk List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Feb 2005 14:44:13 -0000 "Gerald Lightsey" wrote: >What am I doing wrong or what don't I understand about a drive being mounted >on /var where data is being written underneath it to the original >/var/db/mysql/mydatabasename on disk 0 rather than onto the mounted disk 1? First I must say that you should ask questions of a technical nature at FreeBSD-Questions@FreeBSD.ORG Read the FreeBSD-Newbies First Aid Kit at http://people.freebsd.org/~sue/newbies/fak.html which explains what the newbies list is for. However, your question reminds me of a technique which I occasionally used some years ago from the excellent "The Complete FreeBSD" by Greg Lehey, which I'll describe below in case it helps. In those days the default layout had /var in the fairly small / partition and it was useful to move it to the much larger /usr partition like so: # mkdir /usr/var # cd /var # tar cf - . | (cd /usr/var; tar xf - ) # cd / # rm -rf /var # ln -s /usr/var /var I suggest you simply mount the new large partition at the temporary mount point you initially used and replace 'usr' above with the name of that mount point. You may find that you cant remove the old /var because /var/empty has the system immutable flag (schg) set, in which case: # chflags -RH noschg /var/empty and then rm it. Probably a good idea to set the schg flag on the new /var/empty. Use ls -lo to see if it's set. I was pleased to read your question as I'll soon be building a PC for experimenting with a MySQL database, and it highlighted the need for a larger /var than I would have created. Thanks :) -- John.