Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Mar 2005 02:04:05 -0800
From:      "Gerald Lightsey" <glightsey1@cox.net>
To:        <sub01@freeode.co.uk>
Cc:        newbies@freebsd.org
Subject:   RE: What am I doing wrong with MOUNT?
Message-ID:  <20050302100417.SYAR1282.fed1rmmtao03.cox.net@geraldligh>
In-Reply-To: <2v7621tffrogmtmg3b9vljft60259mqvh5@4ax.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050302100417.SYAR1282.fed1rmmtao03.cox.net>