Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!elroy.jpl.nasa.gov!swrinde!ucsd!hub.ucsb.edu!steve From: steve@tweedledee.ucsb.edu (Steve Trainoff) Newsgroups: comp.sys.next Subject: Re: Help! Power failure Recovery Keywords: power failure, Message-ID: <11698@hub.ucsb.edu> Date: 30 May 91 17:10:31 GMT References: <1991May30.040830.28055@wuphys.wustl.edu> Sender: news@hub.ucsb.edu Lines: 31 In article <1991May30.040830.28055@wuphys.wustl.edu> rdd@wuphys.wustl.edu (Rakhal D. Dave) writes: > O Wizards and Gurus: > > I was using Edit to edit a TeX file containing a section from my thesis when > the lights flickered. Anticipating a power failure I did a command s to save > the file. Within about 5 seconds after that the power failed. When > eventually I rebooted My file was there in the directory but empty. Luckily > I had the corresponding dvi file made just 10 min. before the power failure > but no TeX version. I am going to have to rewrite the TeX version now from > the printout of the dvi file. Could my lost file be recovered somehow? I > know that vi has recovery capability in such situations. Could there be a > temporary file somewhere?. > Look forward for input from the net > > -Rakhal Dave The problem you experienced was due to disk cacheing. When you used CMD-s the file was "saved" in the disk cache. The actual data probably wasn't written to disk before the power went out. The unix command "sync" manually forces the cache to be written out to the disk. There is a daemon called "update" which calls "sync" every 30 seconds to try to prevent just the problem you experienced. You just got unlucky. If the power failure had been a few seconds later things would have been fine. -- ..STeve ------------------------------------ Insert pity maxim here... steve@tweedledee.ucsb.edu (NeXT mail)