From owner-freebsd-questions@FreeBSD.ORG Wed Mar 2 15:42:17 2005 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 600CD16A4CE for ; Wed, 2 Mar 2005 15:42:17 +0000 (GMT) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id D084F43D31 for ; Wed, 2 Mar 2005 15:42:15 +0000 (GMT) (envelope-from nkinkade@fastmail.fm) Received: from frontend2.messagingengine.com (frontend2.internal [10.202.2.151]) by frontend1.messagingengine.com (Postfix) with ESMTP id D74F9C5AC46; Wed, 2 Mar 2005 10:42:14 -0500 (EST) X-Sasl-enc: HAIHDI5pve2hdlGcXJjliQ 1109778134 Received: from gentoo-npk.bmp.ub (unknown [206.27.244.136]) by www.fastmail.fm (Postfix) with ESMTP id BF1C3570360; Wed, 2 Mar 2005 10:42:08 -0500 (EST) Received: from nkinkade by gentoo-npk.bmp.ub with local (Exim 4.21) id 1D6VzB-000262-KK; Wed, 02 Mar 2005 09:42:05 -0600 Date: Wed, 2 Mar 2005 09:42:05 -0600 From: Nathan Kinkade To: Gerald Lightsey Message-ID: <20050302154205.GN3678@gentoo-npk.bmp.ub> Mail-Followup-To: Gerald Lightsey , 'Nathan Kinkade' , freebsd-questions@freebsd.org References: <20050228180409.GR10499@gentoo-npk.bmp.ub> <20050302094248.RZTA22013.fed1rmmtao11.cox.net@geraldligh> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QQNwO3VdVfodZayb" Content-Disposition: inline In-Reply-To: <20050302094248.RZTA22013.fed1rmmtao11.cox.net@geraldligh> X-PGP-Fingerprint: 3FDF A406 B149 3959 A8CB C5A9 3B46 4812 D852 7E49 User-Agent: Mutt/1.5.6i Sender: cc: 'Nathan Kinkade' cc: freebsd-questions@freebsd.org Subject: Re: What am I doing wrong with MOUNT? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Nathan Kinkade List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2005 15:42:17 -0000 --QQNwO3VdVfodZayb Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 02, 2005 at 01:42:40AM -0800, Gerald Lightsey wrote: > Nathan Kinkade said... > > Here is quick rundown on how you could achieve your goal: > >=20 > > 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 > >=20 > > Also, you may want to reallocate the partition formerly mounted at /var > for something else? >=20 > Your advice was right on thank you very much. Actually step #4 was > automatically handled by step #3. >=20 > Regarding reallocation of space formerly occupied by /var on /dev/ad0s2d,= is > there a way to reallocate it back to one of the other existing partitions= or > do you mean only to use it as is for something else? >=20 > Gerald I was actually suggesting that you could just mount the old partition at another mount point, but I suppose there is the possibility to have the old partition swallowed up by the one directly proceeding it on the physical disk. I have never done it and I don't know anything about it, but there is a utility called growfs(8) that might be of use. Nathan --QQNwO3VdVfodZayb Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFCJd7NO0ZIEthSfkkRAhUrAJ9l7x/NyswiN2NS3vOql99FGUBB0gCbB2Nv iWY5atiBeNEJLVIPsldZNtE= =Yrvp -----END PGP SIGNATURE----- --QQNwO3VdVfodZayb--