View Single Post
  #2   (View Single Post)  
Old 15th December 2010
rocket357's Avatar
rocket357 rocket357 is offline
Real Name: Jonathon
Wannabe OpenBSD porter
 
Join Date: Jun 2010
Location: 127.0.0.1
Posts: 429
Default

Quote:
Originally Posted by IronForge View Post
4) "Automatic File System Check failed, Help!", with options to enter a shell directory or pressing <ENTER> for sh:
If the automatic file system check failed, it's asking you to run a manual file system check, i.e. 'fsck /dev/<whatever>'

Quote:
Originally Posted by IronForge View Post
There are other peculiar actions going on. For instance, while I was working late at night and noticed the hard drive get very busy for awhile (I was using a browser), I raised "top" on the terminal. I noticed a "find" function being run by root
Code:
# grep -C "find" /etc/{daily,weekly,monthly}
/etc/daily-if [ -d /tmp -a ! -L /tmp ]; then
/etc/daily-     cd /tmp && {
/etc/daily:     find -x . \
/etc/daily-         \( -path './ssh-*' -o -path ./.X11-unix -o -path ./.ICE-unix \
/etc/daily-             -o -path ./portslocks \) \
/etc/daily-         -prune -o -type f -atime +3 -execdir rm -f -- {} \;
/etc/daily:     find -x . -type d -mtime +1 ! -path ./vi.recover ! -path ./.X11-unix \
/etc/daily-         ! -path ./.ICE-unix ! -path ./portslocks ! -name . \
/etc/daily-         -execdir rmdir -- {} \; >/dev/null 2>&1; }
--
/etc/daily-if [ -d /var/tmp -a ! -L /var/tmp ]; then
/etc/daily-     cd /var/tmp && {
/etc/daily:     find -x . \
/etc/daily-         \( -path './ssh-*' -o -path ./.X11-unix -o -path ./.ICE-unix \
/etc/daily-             -o -path ./portslocks \) \
/etc/daily-         -prune -o ! -type d -atime +7 -execdir rm -f -- {} \;
/etc/daily:     find -x . -type d -mtime +1 ! -path ./vi.recover ! -path ./.X11-unix \
/etc/daily-         ! -path ./.ICE-unix ! -path ./portslocks ! -name . \
/etc/daily-         -execdir rmdir -- {} \; >/dev/null 2>&1; }
--
/etc/daily-if [ -d /var/rwho -a ! -L /var/rwho ] ; then
/etc/daily-     cd /var/rwho && {
/etc/daily:     find . ! -name . -mtime +7 -execdir rm -f -- {} \; ; }
/etc/daily-fi
/etc/daily-
This is cleanup code that gets run each night as root:

Code:
# crontab -l | grep daily
# do daily/weekly/monthly maintenance
30      1       *       *       *       /bin/sh /etc/daily

Last edited by rocket357; 15th December 2010 at 10:55 PM.
Reply With Quote