RE: What am I doing wrong with MOUNT?

From: Gerald Lightsey (glightsey1_at_cox.net)
Date: 03/02/05

  • Next message: Jaanus J6gisu: "SiS sound problem"
    To: <sub01@freeode.co.uk>
    Date: Wed, 2 Mar 2005 02:04:05 -0800
    
    

    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

    _______________________________________________
    freebsd-newbies@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-newbies
    To unsubscribe, send any mail to "freebsd-newbies-unsubscribe@freebsd.org"


  • Next message: Jaanus J6gisu: "SiS sound problem"