Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Mar 1997 15:58:42 -0600
From:      "Jeffrey J. Mountin" <sysop@mixcom.com>
To:        Dan Wolfe <dwolfe@zyga.com>
Cc:        questions@freebsd.org
Subject:   Re: Creating a directory link from one partition to another
Message-ID:  <3.0.32.19970313155841.01043ec0@mixcom.com>

next in thread | raw e-mail | index | archive | help
At 12:15 AM 3/13/97 -0500, Dan Wolfe wrote:
>I would like to move my /var/mail directory, which is in the / partition,
to the /usr partition.  I was thinking of establishing a link to do this.
Can anyone help me the steps involved to perform this.  Any help is
certainly appreciated.

The easiest way would be to boot singler user mode (-s at the boot:) so
that no mail will be written.  Then:

mv /var /usr
cd /
ln -s /usr/var /var


One file, if you have lpd enabled (I think), will not move and you will
have to delete it.

This is what I do for every system install.  More efficient to have var
under /usr/var and share the partition.  Now if you have a lot of mail
traffic, then mouting another drive to /var would be better.


-------------------------------------------
Jeff Mountin - System/Network Administrator
jeff@mixcom.net

MIX Communications
Serving the Internet since 1990



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.32.19970313155841.01043ec0>