[mod.computers.vax] Bad Directory File

poneill@AMSAA.ARPA ("Patrick J. O'Neill") (01/08/86)

	On our VMS system, we have an RP07 which has periodically given us
trouble. Recently, a directory file became corrupted, preventing us from
accessing any of the files in that directory. As this was a very recent
directory, it wasn't backed up yet. Is there any way to patch the directory
file, or any other techniques to recapture the "lost files" ?  I have tried
$ANALYZE/DISK/REPAIR , but to no avail.
	Thank you in advance.
			Patrick O'Neill

OC.GARLAND@CU20B.COLUMBIA.EDU (Richard Garland) (01/10/86)

To recover the files in the corrupt directory, ANAL/DISK will do it,
however, first set the directory file to be a non-directory:

	SET FILE FOO.DIR/NODIRECTORY

Next be sure you can read all the files on the disk so ANAL will find
all the forward and backward links:

	SET PROC/PRIVILEGE=BYPASS

(you've backed up the disk first, right?)

Then do the ANALIZE.  You may need several passes if it gets certain errors.

	ANALIZE/DISK/REPAIR/CONFIRM

(the /CONFIRM lets you decide on a case by case basis.  If its *really*
corrupt, the /CONFIRM will take forever).

Do this over again until you see no more errors.  Then the files that were
in the bad directory should be in SYS$LOST.  This procedure works.  Good
luck.

					Rg
-------