.ps 60,80 .lm 5 .rm 75 .spr 5,,3 .cc .ap .blank 2 .c;Submissions From HATFIELD PACKING COMPANY .blank 2 .c;submitted by: .blank 2 .c;Jim Shelly .c;HATFIELD PACKING COMPANY .c;2700 Funks Rd. P.O. Box 70 Hatfield Pa., 19440 .c;(215)368-2500 ext. 315 (05:30 - 14:30 EST) .blank 2 .ft .fl bold .fl comment .c;^*LBN\* .s 2 ^*GETTING STARTED\* When given a logical block number on a disk, LBN will return the file located there. If a "SHOW ERROR" command displays any disk errors, an "ANALYZE/ERR/INC=DISK/EXC=VOL/OUT=foo.bar SYS$ERRORLOG:ERRLOG.SYS" command will record the disk errors in foo.bar and examining that file will reveal the logical block numbers (LBN's) where those errors occurred or in some cases (RP07 errors for examples) the sector, track, and cylinder where the error occurred. This information will then be used by LBN to locate the file in which the error occured. .s 1 ^*HOW TO USE\* All references to directories and logical names have been deleted from all files and the assumption is that you and the files are all in the same directory. To execute LBN type @LBN. LBN will respond with: .s 1 ^*WHICH DISK:\* .s 1 Enter the name of the disk you want to examine ($255$DUA0 or DRA0 for example). LBN will display some general information about the disk selected and will then prompt with: .s 1 ^*ENTER LOGICAL BLOCK NUMBER:\* .s 1 Enter either a logical block number or "CALC". "CALC" will cause LBN to prompt for: .s 1 ^*ENTER NUMBER OF HEADS.\* (32 for an RP07 for example) .s 1 ^*ENTER NUMBER OF SECTORS.\* (50 for an RP07) .s 1 ^*ENTER SECTOR TO CONVERT.\* (sector reported in foo.bar) .s 1 ^*ENTER TRACK.\* (track reported in foo.bar) .s 1 ^*ENTER CYLINDER.\* (cylinder reported in foo.bar) .s 1 Next a search through INDEXF.SYS takes place to locate the given or calculated logical block number. Depending on the number of files located on the disk being searched, this may take a few minutes. When LBN locates the file extent occupying that space on the disk it displays the filename and all of its extents much like a "DUMP/FILE/FORMAT/HEAD/BLOCK=COUNT=0" command would. There are 2 problems with LBN that I haven't yet taken the time to solve. First, LBN doesn't display the directory for the file located, and secondly the value of "Checksum:" is wrong some of the time.