#3 Welcome to VAX VMS 4.3 #4 Welcome to VAX VMS 4.3 Username: BILL Password: Last interactive login on Monday, 12-JAN-1987 13:18 Last non-interactive login on Thursday, 8-JAN-1987 14:26 $ all dy _DYA0: allocated $ all dy _DYA1: allocated $ init dy: test1 No privilege for attempted operation $ priv vol $   $ priv vol  $ init dy: test1 $   $ init dy1: test2 $ priv novol $ mount dy+dy1 test1+test2 /bind=test test TEST1 mounted on _DYA0: TEST2 mounted on _DYA1: $ backup /log sia3:[uk_87.restore] test:[restore] Created directory TEST:[RESTORE] Created TEST:[RESTORE]AAAREADME.TXT;1 Created TEST:[RESTORE]BUILD.COM;3 Created TEST:[RESTORE]BUILD.LIS;1 Created TEST:[RESTORE]GETFILE.COM;3 Created TEST:[RESTORE]RESTORE.COR;39 Created TEST:[RESTORE]RESTORE.EXE;22 Created TEST:[RESTORE]RESTORE.MAP;22 Created TEST:[RESTORE]RESTORE.MAR;2 Created TEST:[RESTORE]RESTORE.OBJ;2 Created TEST:[RESTORE]UPDATE.TXT;2 $ dir/size=all test:[*...] Directory TEST:[RESTORE] AAAREADME.TXT;1 3/3 BUILD.COM;3 1/3 BUILD.LIS;1 3/3 GETFILE.COM;3 9/9 RESTORE.COR;39 67/69 RESTORE.EXE;22 31/33 RESTORE.MAP;22 28/30 RESTORE.MAR;2 126/126 RESTORE.OBJ;2 18/18 UPDATE.TXT;2 2/3 Total of 10 files, 288/297 blocks. $   $ dir/size=all test:[*...]  $ backup /log sia3:[uk_87.restore] test:[restore_2] Created directory TEST:[RESTORE_2] Created TEST:[RESTORE_2]AAAREADME.TXT;1 Created TEST:[RESTORE_2]BUILD.COM;3 Created TEST:[RESTORE_2]BUILD.LIS;1 Created TEST:[RESTORE_2]GETFILE.COM;3 Created TEST:[RESTORE_2]RESTORE.COR;39 Created TEST:[RESTORE_2]RESTORE.EXE;22 Created TEST:[RESTORE_2]RESTORE.MAP;22 Created TEST:[RESTORE_2]RESTORE.MAR;2 Created TEST:[RESTORE_2]RESTORE.OBJ;2 Created TEST:[RESTORE_2]UPDATE.TXT;2 $ dump /head /bl=e=0 test:[restore_2]restore.mar Dump of file TEST:[RESTORE_2]RESTORE.MAR;2 on 12-JAN-1987 13:24:24.43 File ID (15,1,1) End of file block 126 / Allocated 126 File Header Header area Identification area offset: 40 Map area offset: 100 Access control area offset: 255 Reserved area offset: 255 Extension segment number: 0 Structure level and version: 2, 1 File identification: (15,1,0) Extension file identification: (0,0,0) VAX-11 RMS attributes Record type: Variable File organization: Sequential Record attributes: Implied carriage control Record size: 86 Highest block: 126 End of file block: 126 End of file byte: 262 Bucket size: 0 Fixed control area size: 0 Maximum record size: 0 Default extension size: 0 Global buffer count: 0 Directory version limit: 0 File characteristics: Map area words in use: 2 Access mode: 0 File owner UIC: [BILL] File protection: S:RWED, O:RWED, G:RE, W: Back link file identification: (17,1,2) Journal control flags: Highest block written: 126 Identification area File name: RESTORE.MAR;2 Revision number: 1 Creation date: 12-JAN-1987 13:11:11.80 Revision date: 12-JAN-1987 13:11:45.57 Expiration date: Backup date: Map area Retrieval pointers Count: 126 LBN: 259 Checksum: 2073 $   $ dump /head /bl=e=0 test:[restore_2]restore.mar Dump of file TEST:[RESTORE_2]RESTORE.MAR;2 on 12-JAN-1987 13:24:58.43 File ID (15,1,1) End of file block 126 / Allocated 126 File Header Header area Identification area offset: 40 Map area offset: 100 Access control area offset: 255 Reserved area offset: 255 Extension segment number: 0 Structure level and version: 2, 1 File identification: (15,1,0) Extension file identification: (0,0,0) VAX-11 RMS attributes Record type: Variable File organization: Sequential Record attributes: Implied carriage control Record size: 86 Highest block: 126 End of file block: 126 End of file byte: 262 Bucket size: 0 Fixed control area size: 0 Maximum record size: 0 Default extension size: 0 Global buffer count: 0 Directory version limit: 0 File characteristics: Map area words in use: 2 Access mode: 0 File owner UIC: [BILL] File protection: S:RWED, O:RWED, G:RE, W: Back link file identification: (17,1,2) Journal control flags: Highest block written: 126 Identification area File name: RESTORE.MAR;2 Revision number: 1 Creation date: 12-JAN-1987 13:11:11.80 Revision date: 12-JAN-1987 13:11:45.57 Expiration date: Backup date: Map area Retrieval pointers Count: 126 LBN: 259 Checksum: 2073 $ sh dev dy Device Device Error Volume Free Trans Mnt Name Status Count Label Blocks Count Cnt DYA0: Mounted alloc 0 TEST1 109 1 1 DYA1: Mounted alloc 0 TEST2 203 1 1 $ rec back $ backup /log sia3:[uk_87.restore] test:[restore_3] Created directory TEST:[RESTORE_3] Created TEST:[RESTORE_3]AAAREADME.TXT;1 Created TEST:[RESTORE_3]BUILD.COM;3 Created TEST:[RESTORE_3]BUILD.LIS;1 Created TEST:[RESTORE_3]GETFILE.COM;3 Created TEST:[RESTORE_3]RESTORE.COR;39 Created TEST:[RESTORE_3]RESTORE.EXE;22 Created TEST:[RESTORE_3]RESTORE.MAP;22 Created TEST:[RESTORE_3]RESTORE.MAR;2 Created TEST:[RESTORE_3]RESTORE.OBJ;2 Created TEST:[RESTORE_3]UPDATE.TXT;2 $   $ backup /log sia3:[uk_87.restore] test:[restore_3]  $ sh dev dy  $ dump /head /bl=e=0 test:[restore_3]restore.mar Dump of file TEST:[RESTORE_3]RESTORE.MAR;2 on 12-JAN-1987 13:27:19.43 File ID (33,1,2) End of file block 126 / Allocated 126 File Header Header area Identification area offset: 40 Map area offset: 100 Access control area offset: 255 Reserved area offset: 255 Extension segment number: 0 Structure level and version: 2, 1 File identification: (33,1,0) Extension file identification: (17,1,1) VAX-11 RMS attributes Record type: Variable File organization: Sequential Record attributes: Implied carriage control Record size: 86 Highest block: 126 End of file block: 126 End of file byte: 262 Bucket size: 0 Fixed control area size: 0 Maximum record size: 0 Default extension size: 0 Global buffer count: 0 Directory version limit: 0 File characteristics: Map area words in use: 4 Access mode: 0 File owner UIC: [BILL] File protection: S:RWED, O:RWED, G:RE, W: Back link file identification: (26,1,0) Journal control flags: Highest block written: 126 Identification area File name: RESTORE.MAR;2 Revision number: 1 Creation date: 12-JAN-1987 13:11:11.80 Revision date: 12-JAN-1987 13:11:45.57 Expiration date: Backup date: Map area Retrieval pointers Count: 17 LBN: 379 Count: 65 LBN: 429 Checksum: 19007 Dump of file TEST:[RESTORE_3]RESTORE.MAR;2 on 12-JAN-1987 13:27:19.43 File ID (33,1,2) End of file block 126 / Allocated 126 File Header Header area Identification area offset: 40 Map area offset: 50 Access control area offset: 255 Reserved area offset: 255 Extension segment number: 1 Structure level and version: 2, 1 File identification: (17,1,0) Extension file identification: (0,0,0) VAX-11 RMS attributes Record type: Variable File organization: Sequential Record attributes: Record size: 0 Highest block: 0 End of file block: 127 End of file byte: 0 Bucket size: 0 Fixed control area size: 0 Maximum record size: 0 Default extension size: 0 Global buffer count: 0 Directory version limit: 0 File characteristics: Map area words in use: 4 Access mode: 0 File owner UIC: [BILL] File protection: S:RWED, O:RWED, G:RE, W: Back link file identification: (33,1,2) Journal control flags: Highest block written: 0 Identification area File name: RESTORE.MAR;2 Map area Retrieval pointers Count: 8 LBN: 415 Count: 36 LBN: 428 Checksum: 51792 $   $ delete/log test:[restore_3]restore.mar Explicit version number or wild card required $   $ delete/log test:[restore_3]restore.mar; TEST:[RESTORE_3]RESTORE.MAR;2 deleted (126 blocks) $ dir test:[restore_3] Directory TEST:[RESTORE_3] AAAREADME.TXT;1 BUILD.COM;3 BUILD.LIS;1 GETFILE.COM;3 RESTORE.COR;39 RESTORE.EXE;22 RESTORE.MAP;22 RESTORE.OBJ;2 UPDATE.TXT;2 Total of 9 files. $ def sia3:[uk_87.restore] $ @getfile dy FILES-11B restoration program. Version : VMS Native mode 12 Author : W. B. Langdon CEGB 0372 374488 File ? restore.mar Starting search for RESTORE.MAR;* Deleted file extension RESTORE.MAR;2 found File id ( 17, 1, 0) Segment num 1 Extension ( 0, 0, 0) Back pointer ( 33, 1, 2) Do you wish to restore it? Y/N y Continue search for file(s)? Y/N y Search finished Has RESTORE processed all the file's headers and do you wish to continue ?: n $ ! Don't continue untill ALL file headers have been processed !!!!!!!!! $ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! $ ! $ ! $   $ n  $ @getfile dy1 FILES-11B restoration program. Version : VMS Native mode 12 Author : W. B. Langdon CEGB 0372 374488 File ? restore Starting search for RESTORE.*;* Deleted file RESTORE.MAR;2 found Creation date 12-JAN-1987 13:11:11.80 Revision date 12-JAN-1987 13:11:45.57 File id ( 33, 1, 0) Segment num 0 Extension ( 17, 1, 1) Back pointer ( 26, 1, 0) Do you wish to restore it? Y/N y Continue search for file(s)? Y/N n Has RESTORE processed all the file's headers and do you wish to continue ?: y RESTORE will mark the file headers in 'INDEXF' as being in use ie. it undeletes the file. But to gain access to the file a pointer in a User File Directory to it needs to be set up. The ANALYSE/DISK_STRUCTURE utility is used to do this. It will put the lost file in the [SYSLOST] directory. Although RESTORE will have secured the file header there is no guarantee that the data blocks composing the files body will not have been reused. Because of this it is wise to check the contents of the file once it has been placed in [SYSLOST] If more than one version of the same file are restored then ANALYSE /DISK may be forced to change the version number. The new version number depends upon the order the files are processed by ANALAYSE /DISK. Check by comparing against the creation dates. Error opening QUOTA.SYS No such file Blocks incorrectly marked free LBN 415 to 422, RVN 1 Blocks incorrectly marked free LBN 428 to 463, RVN 1 Blocks incorrectly marked free LBN 379 to 395, RVN 2 Blocks incorrectly marked free LBN 429 to 493, RVN 2 File (33,1,2) RESTORE.MAR;2 not found in a directory Repair this error (D to delete)? (D, Y or N): y $ rec dir $ dir test:[syslost]/fu Directory TEST:[SYSLOST] RESTORE.MAR;2 File ID: (33,1,2) Size: 126/126 Owner: [BILL] Created: 12-JAN-1987 13:11 Revised: 12-JAN-1987 13:11 (1) Expires: Backup: File organization: Sequential File attributes: Allocation: 126, Extend: 0, Global buffer count: 0 No version limit Record format: Variable length, maximum 86 bytes Record attributes: Carriage return carriage control File protection: System:RWED, Owner:RWED, Group:RE, World: Access Cntrl List: None Total of 1 file, 126/126 blocks. $ rec du $ dump /head /bl=e=0 test:[syslost]restore.mar Dump of file TEST:[SYSLOST]RESTORE.MAR;2 on 12-JAN-1987 13:31:49.67 File ID (33,1,2) End of file block 126 / Allocated 126 File Header Header area Identification area offset: 40 Map area offset: 100 Access control area offset: 255 Reserved area offset: 255 Extension segment number: 0 Structure level and version: 2, 1 File identification: (33,1,0) Extension file identification: (17,1,1) VAX-11 RMS attributes Record type: Variable File organization: Sequential Record attributes: Implied carriage control Record size: 86 Highest block: 126 End of file block: 126 End of file byte: 262 Bucket size: 0 Fixed control area size: 0 Maximum record size: 0 Default extension size: 0 Global buffer count: 0 Directory version limit: 0 File characteristics: Map area words in use: 4 Access mode: 0 File owner UIC: [BILL] File protection: S:RWED, O:RWED, G:RE, W: Back link file identification: (26,1,0) Journal control flags: Highest block written: 126 Identification area File name: RESTORE.MAR;2 Revision number: 1 Creation date: 12-JAN-1987 13:11:11.80 Revision date: 12-JAN-1987 13:11:45.57 Expiration date: Backup date: Map area Retrieval pointers Count: 17 LBN: 379 Count: 65 LBN: 429 Checksum: 19007 Dump of file TEST:[SYSLOST]RESTORE.MAR;2 on 12-JAN-1987 13:31:49.67 File ID (33,1,2) End of file block 126 / Allocated 126 File Header Header area Identification area offset: 40 Map area offset: 50 Access control area offset: 255 Reserved area offset: 255 Extension segment number: 1 Structure level and version: 2, 1 File identification: (17,1,0) Extension file identification: (0,0,0) VAX-11 RMS attributes Record type: Variable File organization: Sequential Record attributes: Record size: 0 Highest block: 0 End of file block: 127 End of file byte: 0 Bucket size: 0 Fixed control area size: 0 Maximum record size: 0 Default extension size: 0 Global buffer count: 0 Directory version limit: 0 File characteristics: Map area words in use: 4 Access mode: 0 File owner UIC: [BILL] File protection: S:RWED, O:RWED, G:RE, W: Back link file identification: (33,1,2) Journal control flags: Highest block written: 0 Identification area File name: RESTORE.MAR;2 Map area Retrieval pointers Count: 8 LBN: 415 Count: 36 LBN: 428 Checksum: 51792 $   $ diff test:[syslost]restore.mar sia3:[uk_87.restore] Number of difference sections found: 0 Number of difference records found: 0 DIFFERENCES /IGNORE=()/MERGED=1- TEST:[SYSLOST]RESTORE.MAR;2- SIA3:[UK_87.RESTORE]RESTORE.MAR;2 $   $ edt test:[syslost]restore.mar Error opening SIA3:[UK_87.RESTORE]RESTORE.JOU; as output ACP file create failed Disk quota exceeded $   $ edt test:[syslost]restore.mar/read \<[?6l)0[?3l =; SD VAX-11 CORAL COMPILER :B/BC/BC-6A.00-049 .TITLE MAIN ;1 'CORAL''PROGRAM' RESTORE FILES 11B ;2 ;3 'DEFINE' VERSION NUMBER " IDENT (\VMS 12\) "; ;4 'COMMENT': ;5 ;6 Sub-System : File Recovery Program ;7 ;8 Computer Type : DEC VAX VMS Version 4.4 FILES-11 Structure level 2 ;9 ;10 Author : W. B. Langdon CEGB ( CERL ) ;11 ;12 Creation Date : 6 Decmeber 1982 ;13 ;14 ; ;15 'COMMENT': ;16 ;17 FUNCTIONAL D ESCRIPTION. ;18 ---------- ----------- ;19 ;20 This program tries to recover deleted files on FILES-11 structure [?8l Working  Working  Working  Working  Working  Working  Working    .EXTERNAL $FNDIN .EXTERNAL $FNDOU .EXTERNAL $CNTE .EXTERNAL $EXTE .EXTERNAL $LSTE .EXTERNAL $OPNST .EXTERNAL $INSTR .EXTERNAL $OUSTR .EXTERNAL $INCH .EXTERNAL $ASKIN .EXTERNAL $ASKOU .EXTERNAL $OUTCH .EXTERNAL $OUTXT .EXTERNAL $CLALL .EXTERNAL $OUTIN .EXTERNAL $OUTBL .EXTERNAL $INBL .EXTERNAL SYS$ASCTIM ; ************* END OF MAIN ************* .END MAIN [EOB][?8h > *quit )B > $ ! ok $ lo BILL logged out at 12-JAN-1987 13:33:45.88