lenny@icus.UUCP (Lenny Tropiano) (02/06/88)
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!/
feb@cblpe.ATT.COM (Franco Barber) (02/08/88)
In article <246@icus.UUCP> lenny@icus.UUCP (Lenny Tropiano) writes: >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 > ... > -Lenny >-- I checked my UNIX PC, with UNIX version 3.5 on it, and that line has also been commented out. I got my 3b1 in June '87. Franco -- Franco Barber AT&T Bell Laboratories, Columbus, Ohio ..!cbosgd!cblpe!feb (614) 860-7803