Problem
cron queued the following error message several times in /usr/spool/mmdf/lock/home/addr, /usr/spool/mmdf/lock/home/msg and /usr/spool/mmdf/lock/home/q.local to be delivered to /usr/sys:
To:sys Date: Tue , 24 sep 91 5:00:09 PDT Message-ID: <9109240500.ad28250@hhsregix.UUCP>
cron: can't change directory to your home directory. Your commands will not be executed.
Other symptoms of this problem are:- Out of inodes on dev (1/40)
- no more processes
- no file Cause
cron could not execute /usr/sys specific commands because the sys home directory was removed accidentally.
Solution
To resolve this problem take the following steps:
(1) Recreate /usr/sys directory# mkdir /usr/sys
# chmod 755 /usr/sys
# chown sys /usr/sys
# chgrp sys /usr/sys(2) Recover disk space.Change directory:# cd /usr/spool/mmdf/lock/homeNext, remove the messages in the addr, msg and q.local
directories. A quick way to do this is to remove the
files in all the subdirectories of /usr/spool/mmdf/lock/home:# find . -type f -print | xargs rmClean log files:# > /usr/spool/mail/sys
# > /usr/spool/mail/adm
# > /usr/spool/mail/root
# > /usr/mmdf/log/msg.log
# > /usr/mmdf/log/chan.log
# > /usr/adm/messages
# > /etc/wtmp
# > /etc/utmp(3) Boot the system. When you see the following promptType <ctrl>-d to proceed with normal startup, (or give root password for System Maintenance)
enter the root password to bring up the system in single user mode.
At the prompt, enter:# /etc/fsck -s /dev/rootFile system check with an s option updates the free list of available inodes and blocks in the superblock.
NOTE: Also see another article titled How to Configure MMDF to Send Warnings of Undelivered Mail.