Date: Wed, 2 Mar 2005 01:42:40 -0800 From: "Gerald Lightsey" <glightsey1@cox.net> To: "'Nathan Kinkade'" <nkinkade@ub.edu.bz> Cc: freebsd-questions@freebsd.org Subject: RE: What am I doing wrong with MOUNT? Message-ID: <20050302094248.RZTA22013.fed1rmmtao11.cox.net@geraldligh> In-Reply-To: <20050228180409.GR10499@gentoo-npk.bmp.ub>
next in thread | previous in thread | raw e-mail | index | archive | help
Nathan Kinkade said... > 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 > > Also, you may want to reallocate the partition formerly mounted at /var for something else? Your advice was right on thank you very much. Actually step #4 was automatically handled by step #3. 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? Gerald
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050302094248.RZTA22013.fed1rmmtao11.cox.net>