/etc/.cleanup removes /lost+found at boot time on UNIX PC (3.5)

Lenny Tropiano lenny at icus.UUCP
Sat Feb 6 13:16:57 AEST 1988


On the UNIX PC release 3.5 or earlier the /etc/.cleanup file has a 
small bug.  It accidentally removes the /lost+found directory.  It was
commented out on my UNIX PC release 3.51 (I guess someone found it!)

The old file read...

# Clean the /lost+found directory if one exists

find /lost+found -mtime +7 -type d -exec rm -rf {} \; >/dev/null 2>&1

This says delete any directory "recursively" that is older than 7 days.
Of course usually /lost+found comes up on that list, so it removes
the directory and everything beneath it!

I would suggest removing the line (commenting it out) and periodically
check your /lost+found directory for files because you might find
something that you need that got trashed during a system crash.  

For those who don't know /lost+found is the place where fsck places
files and directories that were found to not be in the filesystem when
the system crashed (or filesystem crashed).  This generally happens
to open files like .kshistory, .phdir files, etc...

						-Lenny
-- 
============================ US MAIL:   Lenny Tropiano, ICUS Computer Group
 IIIII   CCC   U   U   SSSS             PO Box 1
   I    C   C  U   U  S                 Islip Terrace, New York  11752
   I    C      U   U   SSS   PHONE:     (516) 968-8576 [H] (516) 582-5525 [W] 
   I    C   C  U   U      S  AT&T MAIL: ...attmail!icus!lenny  TELEX: 154232428
 IIIII   CCC    UUU   SSSS   UUCP:
============================    ...{uunet!godfre, harvard!talcott}!\
                   ...{ihnp4, boulder, mtune, bc-cis, ptsfa, sbcs}! >icus!lenny 
"Usenet the final frontier"        ...{cmcl2!phri, hoptoad}!dasys1!/



More information about the Unix-pc.general mailing list