Subject: Proper way to move /var/mail to /usr/mail?
To: None <netbsd-help@netbsd.org>
From: Paul Hoffman <phoffman@proper.com>
List: netbsd-help
Date: 05/29/2002 20:52:36
Greetings again. I need to move /var/mail to /usr/mail because my /
partition fills up too quickly. At the moment, I can't open a very
large mailbox in POP because there isn't enough space on / to handle
the temporary file. I have a way around that for now, but I want a
long-term solution.
Does the following seem like a safe way to have mail put in /usr
instead of /var?
1) create /usr/mail with the same permissions as /var/mail
2) shut down sendmail to prevent incoming mail from writing locally
3) mv /var/mail/* /usr/mail
4) rmdir /var/mail
5) ln -s /usr/mail /var/mail
I don't want to rely on changing all of the things that write to or
read from /var/mail to look at /usr/mail, which is why I have the
symbolic link.
Does anyone see a problem with the above steps? Can you think of
anything safer?
--Paul Hoffman