[comp.os.cpm] Deleted file ?

TReed.ES@XEROX.COM.UUCP (04/08/87)

To any CPM'r who may know the answer or at least have a theory:

A .MAC file on a 5.25" floppy was inadvertently deleted and needed to be
restored.  No writes to the disk were made after the deletion.  I used
RECOVER.COM to recover the file.  RECOVER.COM stated that the file was
recovered, but when back at the A>, I did a DIR and the file was not
listed.  STAT or PIP could not find it either.

I used DU-V87 to examine the directory entry.  The first byte was in
fact 00 and none of the high bits of the file name or ext were set.

A real puzzel.  Any answers or ideas?

Terry 

kenw@noah.arc.CDN (Ken Wallewein) (04/14/87)

  The only thing I can think of is that if there is a directory entry ahead of 
the one for you file, which contains all E5's, the standard software will think it marks the end of the directory and ignore the rest. You could modify the name field of such an entry (put in 20's or such) to override that. I would strongly suggest making
 an IMAGE copy of the disk before doing much of that stuff (NOT
a PIP copy). Another thing you could try would be the SAP program (PD), which
does a sort-and-pack on the directory. Definitely have a backup before you do
that. Probably the best solution would be to enlist the help of someone who is
experienced with DU. Good luck. Oh, by the way... where was your backup copy?
/kenw

mknox@ngp.utexas.EDU.UUCP (04/19/87)

Sounds like to me you "undeleted" an extension, rather tha the
root file.  Any file over 16k creates extensions, one for every 16k
of file.  They ALL must be "undeleted" for the file to recover.  And
most DIR programs only look at extensions to compute size, not to
list (i.e. if there is no extension 0, then it ignores it).

Go back and look for MORE "deleted" files of the same name.  Undelete
them ALL.  [Note that some may be legitamitely deleted from earlier
work.]  Then DIR your file.  If its there, *immediately* copy it to
another disk.