From owner-freebsd-newbies@FreeBSD.ORG Wed Mar 2 10:04:17 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 6332D16A4CE for ; Wed, 2 Mar 2005 10:04:17 +0000 (GMT) Received: from fed1rmmtao03.cox.net (fed1rmmtao03.cox.net [68.230.241.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23F4643D55 for ; Wed, 2 Mar 2005 10:04:17 +0000 (GMT) (envelope-from glightsey1@cox.net) Received: from geraldligh ([68.7.148.88]) by fed1rmmtao03.cox.net (InterMail vM.6.01.04.00 201-2131-118-20041027) with ESMTP id <20050302100417.SYAR1282.fed1rmmtao03.cox.net@geraldligh>; Wed, 2 Mar 2005 05:04:17 -0500 From: "Gerald Lightsey" To: Date: Wed, 2 Mar 2005 02:04:05 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 In-Reply-To: <2v7621tffrogmtmg3b9vljft60259mqvh5@4ax.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 Thread-Index: AcUdo/ZbxN+MeK9KRVC3bHnuN9ePGgBaY0bw Message-Id: <20050302100417.SYAR1282.fed1rmmtao03.cox.net@geraldligh> 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 List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2005 10:04:17 -0000 John Murphy said... > 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 :) Thanks for pointing me to the questions area. Nathan Kinkade over there provided the direction I needed which might be of value to you. The use of tar to move the data followed by the edit of fstab seems to be the secret to success. > Here is quick rundown on how you could achieve your goal: > 1) Mount the new disk at at /mnt with something like: # mount /dev/ad1s1a /mnt > 2) Copy everything from your original /var partition to the new one: # cd /var && tar cf - ./ | (cd /mnt && tar xvpf -) > 3) Edit /etc/fstab from something like: /dev/ad0s1e /var ufs defaults 1 2 to: /dev/ad1s1a /var ufs defaults 1 2 > 4) Unmount old partition from /var and mount new one at /var: # umount /var && mount /var Actually step #3 automatically took care of step #4 for me. Gerald