What am I doing wrong with MOUNT?
Gerald Lightsey
glightsey1 at cox.net
Wed Mar 2 10:04:17 GMT 2005
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
More information about the freebsd-newbies
mailing list