home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / g30demo.zip / GAMMA.INF (.txt) next >
OS/2 Help File  |  1996-07-15  |  81KB  |  2,404 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Preface ΓòÉΓòÉΓòÉ
  3.  
  4. Congratulations on your purchase of the GammaTech Utilities.  We feel that you 
  5. will find them an excellent companion to your OS/2 system. 
  6.  
  7. This package of utilities adds enhanced data optimization, manipulation and 
  8. recovery capabilities to your mission critical OS/2 workstation. 
  9.  
  10. It is recommended that you spend a few minutes browsing this documentation to 
  11. become familiar with the various utilities provided.  Please note that this 
  12. documentation can be printed using standard functions of the view command. 
  13.  
  14. Copyright (C) GammaTech, Inc. 1991-1994  All rights reserved. 
  15.  
  16.  
  17. ΓòÉΓòÉΓòÉ 2. Installation ΓòÉΓòÉΓòÉ
  18.  
  19. The following sections explain how to install the GammaTech Utilities base 
  20. product as well as how to install corrective service files for the GammaTech 
  21. Utilites. 
  22.  
  23.  
  24. ΓòÉΓòÉΓòÉ 2.1. Installing the Base Product ΓòÉΓòÉΓòÉ
  25.  
  26. Warning: If you have files to recover now, you should not install the Utilities 
  27. to the same volume where the deleted file(s) reside. You may install to a 
  28. different volume or you may execute the UnDelete function of the GTDisk utility 
  29. directly from the installation disk. To execute the UnDelete function of the 
  30. GTDisk utility from the installation disk, place the disk in drive A: and type 
  31. A:GTDisk from any OS/2 command prompt. Then select the Undelete function. 
  32.  
  33. You must use the GTINST program for installation of the GammaTech Utilities. 
  34. GTINST decompresses files from the installation files and places them on the 
  35. hard disk. A standard copy will not decompress the files and will also copy 
  36. files which you do not need. 
  37.  
  38. If you have installed an earlier version of the GammaTech Utilities, you may 
  39. wish to edit your Config.Sys file and remove any references to the directory 
  40. where the old version resides. By default, version 3.0 will be installed into a 
  41. new directory and the PATH statement in Config.Sys will be updated. However, if 
  42. an older version is also installed, the older versions of the utilities will be 
  43. executed when working from an OS/2 window or full screen unless you remove the 
  44. references to the older version. 
  45.  
  46. Complete and mail the registration card.  Maintenance releases may be sent to 
  47. registered customers from time to time without notice.  Only registered 
  48. customers will be notified of and eligible for upgrade opportunities. You 
  49. should complete and return the registration card even if you purchased this 
  50. software directly from us. 
  51.  
  52. To install the GammaTech Utilities, switch to an OS/2 full screen or an OS/2 
  53. window, place the installation disk in your A: drive, and type: A:GTINST. The 
  54. install program will guide you through the installation process. If required, 
  55. you may use your B: drive as well. Simply specify B:GTINST when you execute the 
  56. program. 
  57.  
  58. Install may have altered your CONFIG.SYS file (it will ask you before doing 
  59. this) or it may ask you to make changes to CONFIG.SYS manually. If so, you must 
  60. reboot your system to activate those changes. 
  61.  
  62. Online documentation is included with the GammaTech Utilities.  To view the 
  63. online documentation, double click on the information icon found in the 
  64. GammaTech folder. 
  65.  
  66.  
  67. ΓòÉΓòÉΓòÉ 2.2. Installing Corrective Service ΓòÉΓòÉΓòÉ
  68.  
  69. Corrective service may be provided from time to time either on floppy diskettes 
  70. or by electronic means such as by download from CompuServe or BBS's. You must 
  71. use the GTINST installation program to install these corrective service 
  72. updates. Use the following procedure to install corrective service. 
  73.  
  74.      Shutdown all GammaTech applications which may be executing. 
  75.  
  76.      Switch to a OS/2 window or full screen. 
  77.  
  78.      Start the install program: GTINST d:\path\csdfile (Specifying the full 
  79.       drive, path and file name of the corrective service file.) 
  80.  
  81.      Review the readme file, which will be displayed for you, for any special 
  82.       instructions. 
  83.  
  84.      Click on Install 
  85.  
  86.      Follow any directions given by the installation program. 
  87.  
  88.      Once installation of the CSD has completed, you may restart any GammaTech 
  89.       applications. 
  90.  
  91.  Note that the corrective service file name ends with ".CSD". This is a 
  92.  requirement. If you should rename the csd file, it must have an extension of 
  93.  ".CSD". 
  94.  
  95.  If while attempting to apply this CSD you encounter the error message pop-up 
  96.  with the title which reads "Base Level Invalid", it means that the version 
  97.  information stored in the INI files could not be found. This information was 
  98.  placed there during the installation of the base product, but is no longer 
  99.  there. You must reinstall the base product and then apply this CSD. 
  100.  
  101.  If installation of corrective service fails due to a lack of disk space, 
  102.  GammaTech applications executing, etc. Correct the problem causing the failure 
  103.  and reapply the corrective service. Reinstallation of the base release is not 
  104.  required in this situation. 
  105.  
  106.  
  107. ΓòÉΓòÉΓòÉ 2.3. Recreating Folder and Icons ΓòÉΓòÉΓòÉ
  108.  
  109. In the event your GammaTech folder or program object icons should become 
  110. damaged or "lost", you may recreate them without having to perform a complete 
  111. reinstall of the product. To do this, follow the instructions below: 
  112.  
  113.      Insert the GammaTech installation disk into drive A:. 
  114.  
  115.      Switch to a OS/2 window or full screen. 
  116.  
  117.      Enter GTINST A: 
  118.  
  119.      Click on Install 
  120.  
  121.      Click on Recreate Product Folder 
  122.  
  123.      Follow any directions given by the installation program. 
  124.  
  125.  
  126. ΓòÉΓòÉΓòÉ 3. What's New in Version 3.00 ΓòÉΓòÉΓòÉ
  127.  
  128. Release 3.0 of the GammaTech Utilities has over 200 enhancements. Many of these 
  129. enhancements are in the form of added functionality and new features. Many 
  130. involve improved overall performance. In the list below you will read about the 
  131. more significant enhancements. 
  132.  
  133. Message numbers have been added to most messages displayed to the customer. 
  134. These messages are fully documented in the printed documentation. 
  135.  
  136. The log files of all utilities now display the utility name and version. The 
  137. format of the logs has been rearranged for better readability. 
  138.  
  139. The I/O routines have been improved to add integrity and improve performance of 
  140. many utility functions. 
  141.  
  142. Support has been added for HPFS version 2.3 and 2.4. This includes support for 
  143. HPFS volumes which exceed 2 gigabytes and the IBM LAN Server 4.0 HPFS386 
  144. enhancements. 
  145.  
  146. Complete revisions have been made to the online documentation, printed 
  147. documentation and help information. 
  148.  
  149. Enhancements to the product structure and installation procedures now allow for 
  150. electronic distribution of corrective service maintenance. This will allow 
  151. customers to have near immediate access to the latest maintenance revisions via 
  152. CompuServe, BBS's and other electronic means. 
  153.  
  154. Analyze 
  155.  
  156. The customer may now view a list of sectors which have been marked bad. 
  157.  
  158. An option to automatically mark bad sectors as bad has been added. This option 
  159. is available if the volume can be locked at execution time. 
  160.  
  161. Automatic updating of the HPFS checksum values, as appropriate, has been added. 
  162.  
  163. Comprehensive analysis of sectors found bad is now performed. The ownership of 
  164. a bad sector is identified and reported including the type of sector and what 
  165. system area or file it belongs to. 
  166.  
  167. DiskMap 
  168.  
  169. This new utility has been provided to graphically display the layout of FAT or 
  170. HPFS volumes making it easy to identify bad areas and determine the amount of 
  171. fragmentation on the volume. 
  172.  
  173. FatOpt 
  174.  
  175. A graphic display of the optimization process is now displayed. 
  176.  
  177. A display only option is now provided as well as trigger parameters which allow 
  178. optimization to proceed if fragmentation exceeds the specified level. 
  179.  
  180. The customer may now specify that the "EA DATA. SF" file be, or not be, 
  181. defragmented. 
  182.  
  183. Additional information about the volume and files is now displayed. 
  184.  
  185. Files 
  186.  
  187. The new Files utility is a replacement for the old Attribute, Delete and Find 
  188. utilities which provides easier file maintenance as well as provides 
  189. significantly improved functionality. 
  190.  
  191. The main dialog provides extensive file selection criteria. You may select 
  192. files in most any imaginable way including comments, text, file size, file age 
  193. and attributes. 
  194.  
  195. From the main dialog you may delete, move, copy, set timestamps, alter 
  196. attributes, or search for the specified files. If the search option is 
  197. selected, a list of the matching files is displayed. 
  198.  
  199. From the file list, you may select and deselect one or more files and then 
  200. execute any of the functions above. From the file list you may also choose to 
  201. view or edit selected files. The editor and browser utilities are customer 
  202. configurable. 
  203.  
  204. The delete function now provides an option to bypass the OS/2 Undelete 
  205. processing so as to not flush the OS/2 Undelete directory and to improve 
  206. performance with mass delete operations. 
  207.  
  208. The Wipe Files function now has additional secure erase processing to better 
  209. ensure nonrecoverability of files. 
  210.  
  211. GtDisk 
  212.  
  213. The general text mode menu has been reworked for easier readability and use. 
  214. Where appropriate, option selections can be toggled and the entry fields are 
  215. easier to use. 
  216.  
  217. Enhancements to the online help make it more informative and easier to use. 
  218.  
  219. When appropriate, the checksums for HPFS volumes are automatically updated. 
  220.  
  221. The BadSectr utility has been merged into the GtDisk utility. This provides 
  222. simplified recovery operations when it is not possible to boot OS/2. In 
  223. addition, sectors may also be unmarked allowing the customer to reverse bad 
  224. sector marking that may have been done in error. 
  225.  
  226. The Backup Boot Sector function now allows for more comprehensive backup and 
  227. restore for HPFS volumes. In addition to the logical boot record, the boot 
  228. block, super block and spare blocks may now be selectively restored in order to 
  229. offer better recovery of corrupted HPFS volumes. 
  230.  
  231. The HPFS Recovery has been extensively reworked to provide easier use and 
  232. additional recovery options. The remaining items in this section deal with the 
  233. enhanced HPFS Recovery function. 
  234.  
  235. The prompt mode can be changed on the fly for faster recovery operations 
  236. requiring more or less manual intervention as desired. 
  237.  
  238. Recovery of repartitioned disks has been greatly improved. Even if the new 
  239. partition does not correctly align with the old partition. In these cases, the 
  240. customer is also informed regarding the difference. 
  241.  
  242. Significant performance improvements have been made during the analysis phase 
  243. of the recovery operation. 
  244.  
  245. The F-Node option now allows specification of file F-Nodes as well as directory 
  246. F-Nodes. A new F-Node option has been provided which allows recovery of file 
  247. data even if the entire directory structure of the disk has become obliterated. 
  248.  
  249. Recovery enhancements have been incorporated for the new HPFS386 driver 
  250. supplied with the IBM LAN Server 4.0 product. 
  251.  
  252. Warnings are issued when residual data resides on the volume from a previous 
  253. format operation. 
  254.  
  255. When possible, recovered files will have timestamps set to the values of the 
  256. original file. 
  257.  
  258. Improved error recovery has been added to prevent utility failure on badly 
  259. corrupted volumes. 
  260.  
  261. HexDump 
  262.  
  263. HexDump is a new utility which allows you to convert binary files to ASCII 
  264. readable text. The text is then viewable and editable using any standard text 
  265. editor. You may examine the binary file in hex and ASCII formats. 
  266.  
  267. The utility allows you to make changes to the hex or ASCII sections of the file 
  268. and convert it back to binary format. 
  269.  
  270. HpfsOpt 
  271.  
  272. The text mode HPFS Optimizer (HpfsOpt) has been made easier to use by 
  273. simplifying the optimization options. 
  274.  
  275. Optimization algorithms have been rewritten to significantly enhance the 
  276. effectiveness of file defragmentation and performance has been greatly 
  277. improved. 
  278.  
  279. This version fully supports the new HPFS 2.3 and 2.4 versions of the HPFS 
  280. drivers including full support for permission (ACL) assignments found on the 
  281. HPFS386 file systems supplied with the IBM LAN Server product. 
  282.  
  283. Optimize 
  284.  
  285. The Presentation Manager version of the HPFS Optimizer now provides features 
  286. which allow the customer to perform an analysis of the volume creating a list 
  287. of files for optimization. The customer may then select or deselect files from 
  288. the list and perform optimization on the desired files. 
  289.  
  290. Optimization options have been simplified for easier use. 
  291.  
  292. The progress of the optimization is now shown by displaying messages in the 
  293. main dialog window. The log file is still available for viewing and printing as 
  294. desired. 
  295.  
  296. Files selected for optimization may now be selected by file size limits. 
  297.  
  298. Optimization algorithms have been rewritten to significantly enhance the 
  299. effectiveness of file defragmentation and performance has been greatly 
  300. improved. 
  301.  
  302. This version fully supports the new HPFS 2.3 and 2.4 versions of the HPFS 
  303. drivers including full support for permission (ACL) assignments found on the 
  304. HPFS386 file systems supplied with the IBM LAN Server product. 
  305.  
  306. The option to perform continuous optimization on one or more drives has been 
  307. provided. The customer may select the volumes, trigger criteria and time 
  308. intervals at which optimization is to be performed. 
  309.  
  310. Reboot 
  311.  
  312. Additional options have been added to shutdown Presentation Manager 
  313. applications and request that they save their settings prior to reboot. 
  314.  
  315. SEdit 
  316.  
  317. The Sector Editor has been completely rewritten and moved from the GtDisk 
  318. utility to a utility of its own standing. 
  319.  
  320. The editor now displays known file system structures, such as the HPFS Super 
  321. Block, in a formatted manner. Many of the HPFS and FAT file structures are 
  322. supported. In addition, a feature is provided to format any disk sector as if 
  323. it were one of the supported file system structures. And of course, you may 
  324. view any sector in its hex/ASCII format. 
  325.  
  326. A partition table edit feature has been implemented. 
  327.  
  328. A FAT table edit feature has been added. 
  329.  
  330. A editor command has been added to compute and update the HPFS checksum values. 
  331.  
  332. Multiple sectors may now be written to or read from external files. 
  333.  
  334. Sentry 
  335.  
  336. Automatic detection of offline repartitioning of drives has been added. 
  337.  
  338. An option to automatically backup Config.Sys has been added. 
  339.  
  340. The Sentry.Ini file has been eliminated. It now uses the standard OS/2 INI 
  341. files to save information. 
  342.  
  343. SysInfo 
  344.  
  345. The GammaTech SysInfo utility now displays serial (COM) and parallel I/O port 
  346. assignments. 
  347.  
  348. SysInfo now displays the hardware IRQ assignments. 
  349.  
  350. Undelete 
  351.  
  352. When available, timestamps for deleted files on FAT volumes are now displayed. 
  353. In addition, when one of these files is undeleted, the undeleted file will have 
  354. the same timestamp as the original. 
  355.  
  356. The OS/2 Undelete feature is now supported. The customer may now mix and match 
  357. the GammaTech Undelete with the OS/2 Undelete. When Undelete is executed 
  358. against a volume where the OS/2 Undelete feature is enabled, the customer is 
  359. given the choice of undeleting from the OS/2 Undelete directory or by using the 
  360. GammaTech undelete procedure. 
  361.  
  362. The list of deleted files now shows the best guess for the path from which the 
  363. deleted file belonged. 
  364.  
  365. Significant performance improvements have been made in the analysis of HPFS 
  366. volumes. 
  367.  
  368. Significant performance improvements have been made undeleting files from FAT 
  369. volumes. 
  370.  
  371. Logic has been added to enhance recovery of erased files allowing recovery of 
  372. files which were not recoverable in previous versions. 
  373.  
  374. WipeFree 
  375.  
  376. WipeFree is a new command line utility to clear freespace on a disk volume. It 
  377. replaces a similar feature in the old Delete utility. This version provides 
  378. complete wiping of all freespace on a FAT or HPFS volume. As an option, a 
  379. secure wipe can be performed which meets Department of Defense specifications. 
  380.  
  381. Besides security issues, the WipeFree utility allows the customer to erase 
  382. freespace on volumes which have been "fast formatted" . Fast formatted volumes 
  383. retain data from previous formats of the volume which complicates recovery 
  384. operations. 
  385.  
  386. Summary 
  387.  
  388. With the release of version 3.0 of the GammaTech Utilities, we believe we are 
  389. providing the most comprehensive, state of the art package of system and file 
  390. system maintenance utilities available today. The extensive enhancements 
  391. provided are an indication to our support of you, our customers, and the OS/2 
  392. market place. We look forward to continuing our relationship with future 
  393. enhancements and OS/2 related products in keeping with our service commitment 
  394. to you. 
  395.  
  396.  
  397. ΓòÉΓòÉΓòÉ 4. Maintenece Mode Boot Disks ΓòÉΓòÉΓòÉ
  398.  
  399. Boot diskettes for maintenence mode may be created by making copies of the OS/2 
  400. Installation diskette and OS/2 diskette 1. You may also create them using the 
  401. "Create Utility Diskettes" feature found in the "System Setup" folder. If you 
  402. choose this option, you must also copy the following files to your working 
  403. diskette from the \OS2\DLL directory on the boot drive: 
  404.  
  405. VIOCALLS.DLL and NLS.DLL 
  406.  
  407. These DLL's are required but not copied by the "Create Utility Diskettes" 
  408. feature. 
  409.  
  410. Boot normally with the Installation diskette and when OS/2 prompts you, press 
  411. ESC to obtain the OS/2 command line prompt. Then remove the OS/2 diskette from 
  412. the floppy drive and insert the GammaTech Utilities installation disk. You will 
  413. then have access to the GTDisk and FileJoin utilities to perform recovery 
  414. operations. 
  415.  
  416. To run other GammaTech text based utilities such as FatOpt, simply copy them to 
  417. a diskette for use in maintenence mode. 
  418.  
  419.  
  420. ΓòÉΓòÉΓòÉ 5. Backup and Recovery Considerations ΓòÉΓòÉΓòÉ
  421.  
  422. Regardless of the file system type you are running, the best recovery procedure 
  423. involves having a sound backup procedure which is consistently followed.  There 
  424. are several backup programs available. 
  425.  
  426. With the increasing capacity of hard disks today, it is becoming impractical to 
  427. back up entire hard disks to floppy disks on a frequent basis.  Tape backup 
  428. units are the best choice available, but they are expensive.  For many, floppy 
  429. disk backup may be the only choice available. 
  430.  
  431. Most backup utilities have the capability to do full, differential, or 
  432. incremental backups.  This allows a user to do full backups at perhaps, monthly 
  433. intervals and backup only the files which have changed since either the last 
  434. full backup (differential) or the last incremental backup.  This clearly saves 
  435. time and floppy disks while maintaining current backup copies of the hard disk. 
  436.  
  437. Nonetheless, those times occur when a file is accidentally deleted and a 
  438. current backup copy is not available.  Up to now, HPFS format volumes were most 
  439. unforgiving when this happened.  The GammaTech Utilities provide a means which 
  440. can, in many cases, recover deleted files provided that you initiate the 
  441. recovery before the space occupied by the file is reused. 
  442.  
  443. It is important that you begin the recovery procedure as soon as you discover 
  444. that the file has been deleted.  It is also important that you do not write new 
  445. data to the volume where the file previously resided until the recovery process 
  446. has been completed. 
  447.  
  448. Hopefully when you find yourself in this situation, the GammaTech Utilities 
  449. have already been installed on your hard disk.  If not, you may execute the 
  450. UnDelete function of the GTDISK utility from the installation floppy disk.  To 
  451. do this, place the installation disk into your A: drive and type A:GTDISK 
  452.  
  453.  
  454. ΓòÉΓòÉΓòÉ 6. HPFS and Optimization ΓòÉΓòÉΓòÉ
  455.  
  456. The High Performance File System (HPFS) is a very efficient file system format 
  457. for OS/2 users.  The improved directory structure and intelligent use of disk 
  458. space makes it the best choice for those seeking the greatest performance from 
  459. their OS/2 system. 
  460.  
  461. One of the biggest performance problems with any file system is fragmentation 
  462. of file data.  This means that data for a file is broken into multiple chunks 
  463. and placed in separate places on the disk volume.  This causes head movement on 
  464. the disk to access the data, which takes time.  The end result is lost 
  465. performance. 
  466.  
  467. OS/2 application software developers have the capability to tell OS/2 how large 
  468. a file will be when the file is created. This can be a dilemma at times because 
  469. the size is not always known.  If the size is under-estimated, it frequently 
  470. will cause the file to be fragmented. 
  471.  
  472. Another problem for developers occurs when a file is to be extended by adding 
  473. data to it (normally referred to as appending data).  The developer can 
  474. over-commit the file size in which case OS/2 will reserve space for the data to 
  475. be appended at a later time.  This results in unused space on your disk volume 
  476. which cannot be used by other files. The alternative option is not to 
  477. over-commit with the likely result being a fragmented file.  The efficient 
  478. nature of HPFS greatly minimizes fragmentation of files.  With the tuning 
  479. options set at their optimum values, the effect of fragmented files also is 
  480. greatly reduced.  Nonetheless, some frequently used files can become fragmented 
  481. to the extent that performance is lost. 
  482.  
  483. Through customer feedback GammaTech has identified certain system 
  484. configurations which have greater fragmentation than others. Those which 
  485. generally need optimization are high use server volumes, systems where many 
  486. small files are frequently created and deleted such as BBS systems, and those 
  487. systems which run DOS and Windows (tm) programs. Some high level language 
  488. development systems also tend to generate fragmented files. 
  489.  
  490. The HPFS Optimizer included with the GammaTech Utilities will analyze your HPFS 
  491. volume and identify files with excessive extents. Normally this is any normal 
  492. file with more than 3 extents. Those files selected are then defragmented until 
  493. they consist of 3 or less extents.  These parameters may be adjusted by the 
  494. user if greater or lesser degrees of optimization are required. 
  495.  
  496. It is recommended that you allow the optimizer to take the default parameters 
  497. specified above unless you have special needs. With a reasonable cache 
  498. installed, it is unlikely that performance will be affected with files up to 3 
  499. extents. Forcing files to be defragmented to one extent may result in 
  500. fragmentation of freespace on the volume which will increase the probability 
  501. that new files will be fragmented when they are created. 
  502.  
  503.  
  504. ΓòÉΓòÉΓòÉ 7. PM/WPS Utilities ΓòÉΓòÉΓòÉ
  505.  
  506. Several utility functions are provided through a Presentation Manager GUI 
  507. interface which was developed for the Workplace Shell environment of OS/2. A 
  508. folder was added to your WPS desktop at installation time. To execute the PM 
  509. based utilities, select the GammaTech folder from your desktop and then select 
  510. the icon for the utility you would like to run.  Each utility has online help 
  511. available. 
  512.  
  513.  
  514. ΓòÉΓòÉΓòÉ 7.1. Analyze Disk Volumes ΓòÉΓòÉΓòÉ
  515.  
  516. The Analyze utility may be used to display information about and test media of 
  517. your disk volumes. 
  518.  
  519. The Info function displays information about your disk volumes. Besides 
  520. physical and logical information, Analyze also provides information regarding 
  521. bad sectors and the Hot Fix area on HPFS volumes. 
  522.  
  523. If sectors have been marked bad, a View button will become visible allowing you 
  524. to examine the list of bad sectors. 
  525.  
  526. The Test function provides media testing for the selected logical volume. Each 
  527. sector on the volume is analyzed for errors. Missing or otherwise bad sectors 
  528. are reported. Analyze will test volumes with "unknown" formats by analyzing the 
  529. sectors sequentially. This option can be forced for HPFS or FAT volumes by 
  530. checking the "Ignore Format" option box. 
  531.  
  532. Detailed information regarding errors is recorded to the log. This log is 
  533. created for you automatically and can be saved or printed from the View Log 
  534. window. 
  535.  
  536. If the Flag Bad Sectors check box is selected, sectors with errors are 
  537. automatically marked as bad and removed from further use, providing that the 
  538. volume being analyzed can be locked. If the volume cannot be locked, the list 
  539. of bad sectors is reported but they are not automatically marked bad. You may 
  540. then use the GtDisk utility to mark the sectors bad "offline" to prevent them 
  541. from being used. 
  542.  
  543. HPFS or FAT volumes are analyzed in accordance with their file system 
  544. structures allowing the ownership or use of a error sector to be determined. 
  545.  
  546. Sectors found in error may be further analyzed using the Sector editor provided 
  547. with the GammaTech Utilities. The Sector Editor may be useful in reconstructing 
  548. corrupted or damaged disk sectors. 
  549.  
  550. The most common errors are "Sector Not Found" and "CRC Error". The "Sector Not 
  551. Found" error generally indicates that the sector was found to be bad when the 
  552. disk was low level formatted and was therefore not formatted. This error can 
  553. usually be ignored as it presents no danger. The "CRC Error" indicates that the 
  554. media at the sector location is bad. If this sector contained useful data the 
  555. data probably is lost. You can attempt to read the sector using the Sector 
  556. Editor and if successful, rewrite it to the same sector or record it to a file. 
  557. Rewriting to the same sector will usually correct the problem, at least for a 
  558. while. 
  559.  
  560. Program priority can be set to either normal or idle class.  Operating at idle 
  561. priority will cause disk test procedures to have a minimum impact on other 
  562. executing programs.  If other programs are consuming all available processor 
  563. time however, using idle class may keep the analyze function from completing. 
  564. Changes to the priority settings take effect immediately. 
  565.  
  566. While the analysis program is executing, status messages are displayed on 
  567. screen and an indicator bar is updated to reflect progress. 
  568.  
  569.  
  570. ΓòÉΓòÉΓòÉ 7.2. DiskMap ΓòÉΓòÉΓòÉ
  571.  
  572. The DiskMap utility will display the logical layout of a FAT or HPFS volume in 
  573. graphical terms. The various area types are color coded to provide an easy 
  574. pictorial view of fragmentation, system areas and bad sectors on the disk 
  575. volume. 
  576.  
  577. The types of space displayed are system areas, file data areas, free space and 
  578. bad sectors. 
  579.  
  580. In addition, general volume information for the drive can be displayed. 
  581.  
  582.  
  583. ΓòÉΓòÉΓòÉ 7.3. Files Utility ΓòÉΓòÉΓòÉ
  584.  
  585. The Files utility provides the ability to perform various maintenance 
  586. operations on groups of files on one or more volumes. The files to be operated 
  587. upon may be selected by a wide range of selection criteria. 
  588.  
  589. Operations which can be performed on located files consists of: 
  590.  
  591.          Deleting Files 
  592.  
  593.          Secure Wiping of Files 
  594.  
  595.          Alteration of Standard Attributes 
  596.  
  597.          Alteration of Time Stamps 
  598.  
  599.          Moving Files 
  600.  
  601.          Copying Files 
  602.  
  603.          Browsing Files 
  604.  
  605.          Editing Files 
  606.  
  607.  Files to be operated on may be selected using any combination of the following 
  608.  criteria: 
  609.  
  610.          Volume(s) on which the Files Reside 
  611.  
  612.          Path 
  613.  
  614.          File Name (including wild card characters) 
  615.  
  616.          Text Within File Comments 
  617.  
  618.          Text Within the File 
  619.  
  620.          File Size 
  621.  
  622.          File Time Stamps 
  623.  
  624.          Standard File Attributes 
  625.  
  626.  Most of the operations may be performed immediately from the main dialog. To 
  627.  operate in this manner, enter the desired selection criteria and then press 
  628.  the desired operation push button. 
  629.  
  630.  The customer may also perform a search for the files before selecting an 
  631.  action on the files. To operate in this manner, enter the desired selection 
  632.  criteria and press the Search push button. The selected volumes are then 
  633.  searched for all files meeting the search criteria and then a list of files 
  634.  meeting the search criteria is displayed. 
  635.  
  636.  The customer may then select and deselect files from the list and then press 
  637.  the desired action push button to execute against only those files which are 
  638.  selected. 
  639.  
  640.  Program priority can be set to either normal or idle class. Operating at idle 
  641.  priority will cause the operation to have a minimum impact on other executing 
  642.  programs.  If other programs are consuming all available processor time 
  643.  however, using idle class may keep the operation from completing. Changes to 
  644.  the priority settings take effect immediately. 
  645.  
  646.  Information about the various operations performed is recorded to a online 
  647.  log. The log is displayed by selecting the "View Log" push button. From the 
  648.  log window, you can save or print the log. 
  649.  
  650.  The Files utility will locate files on one or more volumes. You may specify 
  651.  the volumes, path, and filespec of files to be located. Subdirectory trees may 
  652.  be included or not included. 
  653.  
  654.  The file search may be limited to those files which contain a text pattern 
  655.  within their data or text patterns within their comments. 
  656.  
  657.  Searching for files based on text or comment patterns will require much more 
  658.  time than searches without this criteria. You should limit the search as much 
  659.  as possible using the path and filespec options when specifying comment or 
  660.  text patterns in order to complete the search in minimum time. 
  661.  
  662.  Files may be selected based on file size. Radio buttons provide selection of 
  663.  files greater than, equal to, or less than a certain file size. This option 
  664.  may be used to locate zero length files. That is, only those files which 
  665.  contain no data will be selected. If no file size is entered, searching will 
  666.  not be limited by file size. 
  667.  
  668.  Files may be selected based on the date/time of the file. Radio buttons allow 
  669.  the selection of which date (created, modified, or accessed) and whether to 
  670.  select the file based on the file date being greater than, greater than or 
  671.  equal to, equal to, less than or equal to, or less than the entered date and 
  672.  time. If the time field is left blank it is assumed to be 00:00 AM. You may 
  673.  not enter a time and leave the date blank. 
  674.  
  675.  NOTE:  FAT volumes do not support created or last accessed timestamps. With 
  676.  this in mind, you should be aware that operations performed on FAT volumes 
  677.  using create or last accessed timestamps will be performed as if the last 
  678.  modified timestamp was used. 
  679.  
  680.  The browser and editor may be set to use third party utilities in accordance 
  681.  with the customers desires. They default to the E Editor provided with OS/2. 
  682.  Press the Options push button to configure the editor and browser utilities. 
  683.  
  684.  When setting timestamps, the date/time value for an HPFS file can be set equal 
  685.  to one of the other date/time values for the same file by specification of the 
  686.  source date/time value in the date entry field. To use this option you must 
  687.  enter a character value in the date entry field as follows: A - Source is the 
  688.  Accessed timestamp; M - Source is the Modified timestamp; C - Source is the 
  689.  Created timestamp.  For example, if you wished to set the Modified timestamp 
  690.  equal to the Accessed timestamp you would enter an A in the date field and 
  691.  check the Modified check box. 
  692.  
  693.  The Delete operation provides the capability to mass erase selected files on 
  694.  one or more volumes. In addition, file data may be overwritten to obliterate 
  695.  sensitive data and to make file recovery impossible. An option is provided to 
  696.  obliterate data in compliance with Department of Defense specifications. 
  697.  
  698.  The "wipe files" check box on the Delete dialog provides the capability to 
  699.  overwrite file data prior to erasing the file. This option ensures that the 
  700.  data for the file cannot be recovered and is useful for obliterating security 
  701.  sensitive information. All of the files allocated space is overwritten, not 
  702.  just the space used. The "wipe" option bypasses the OS/2 disk cache therefore 
  703.  ensuring that the data obliteration actually takes place. 
  704.  
  705.  Normally the file is overwritten one time with binary zeroes. If the "U.S. 
  706.  Government" option is selected, the obliteration procedure will meet 
  707.  Department of Defense specifications which require that the file be 
  708.  overwritten with four passes of zeros followed by ones, one pass writing a 
  709.  random value, and verification of the last write. 
  710.  
  711.  The repeat count will repeat the entire procedure as many times as requested. 
  712.  
  713.  
  714. ΓòÉΓòÉΓòÉ 7.4. Optimize HPFS Volumes ΓòÉΓòÉΓòÉ
  715.  
  716. The Optimize HPFS function performs optimization on one or more HPFS volumes by 
  717. defragmenting files. A dialog is presented for selection of optimization 
  718. options. 
  719.  
  720. When the optimizer is started using the Analyze push button, all files on the 
  721. volume(s) are checked for fragmentation. After this analysis operation, the 
  722. user may select the "View Files" push button and de-select any files that are 
  723. not to be optimized, and continue with the optimization of those files by 
  724. pressing the Optimize push button. 
  725.  
  726. If all files are to be optimized you may simply press the Optimize push button 
  727. instead of the Analyze push button. In this case, the analysis operation will 
  728. execute followed by the optimization operation without customer intervention. 
  729.  
  730. A fragmented file contains more than one contiguous block of data. Each of 
  731. these blocks is called an extent. The HPFS Optimizer analyzes the files on your 
  732. HPFS volume to determine the number of extents each file contains. When a file 
  733. is identified which contains excessive extents, it is selected for optimizing. 
  734.  
  735. Normally, the HPFS Optimizer will defragment those files which contain more 
  736. than 3 extents. You may override this threshold at execution time by specifying 
  737. the number of extents you wish to use as a threshold.  For instance if you 
  738. specify 5 the optimizer will optimize files containing more than 5 extents.  It 
  739. is recommended that you allow this option to default to 3. 
  740.  
  741. Forcing files to be defragmented to one extent may result in fragmentation of 
  742. freespace on the volume which will increase the probability that new files will 
  743. be fragmented when they are created. 
  744.  
  745. You may also select files to be optimized by limiting the search to those files 
  746. which meet size criteria. 
  747.  
  748. The HPFS Optimizer may be safely executed while other processes are executing 
  749. on your OS/2 system, even if the other processes update the same HPFS volume. 
  750. Files which are in use, however, will not be defragmented.  Once optimization 
  751. has begun, you may terminate the operation by selecting "Cancel" from the 
  752. "Options" menu item.  Care should be taken not to otherwise terminate the 
  753. optimizer by other means. 
  754.  
  755. The HPFS Optimizer will not attempt to defragment any file which has an 
  756. attribute of READ ONLY, HIDDEN, or SYSTEM. If you wish to have the optimizer 
  757. operate on a file with these attributes you must change the file's attribute 
  758. before executing the optimizer.  You may do this using the GammaTech Files 
  759. Utility. 
  760.  
  761. The ARCHIVED file attribute is often used to tell your backup software which 
  762. files have changed since the last backup. To avoid interfering with the 
  763. efficient use of your backup software, the HPFS Optimizer leaves the ARCHIVED 
  764. attribute set to the same value as that of the original fragmented file. 
  765.  
  766. The Options push button provides the ability to perform continuous optimization 
  767. of one or more HPFS volumes by checking the appropriate option and selecting 
  768. the desired time interval. In addition, you may check the Start Minimized check 
  769. box on the Options dialog to cause the Optimizer to start in the minimized 
  770. state. 
  771.  
  772. If you choose the Continuous Timed Defrag option, you must leave the optimizer 
  773. running. Simply minimize it instead of shutting it down. OS/2 will 
  774. automatically restart the optimizer after each reboot. Alternatively you may 
  775. create a shadow of the Optimize icon and place it in your startup folder. 
  776.  
  777. For the optimizer to run properly there must be free space available on the 
  778. HPFS volume. A full or near full volume will prevent the optimizer from running 
  779. effectively. For maximum performance, there should be at least 512,000 bytes 
  780. plus the length of the largest file selected for optimization. If your volume 
  781. does not meet this criteria, you may wish to offload some of the files to 
  782. another volume before running the optimizer. 
  783.  
  784. Program priority can be set to either normal or idle class.  Operating at idle 
  785. priority will cause the HPFS optimizer to have a minimum impact on other 
  786. executing programs.  If other programs are consuming all available processor 
  787. time however, using idle class may keep the function from completing.  Changes 
  788. to the priority settings take effect immediately. 
  789.  
  790.  
  791. ΓòÉΓòÉΓòÉ 7.5. Sentry ΓòÉΓòÉΓòÉ
  792.  
  793. The Sentry utility provides the ability to monitor your boot sectors for 
  794. inadvertent alteration. It also provides the ability to lock specified files 
  795. for read-only access or to block read and write access. It provides a level of 
  796. protection against virus programs as well as accidental modification or 
  797. deletion of critical files on your workstation.  Sentry also backs up critical 
  798. OS/2 files. 
  799.  
  800. Sentry is presented using the notebook control. The first page allows setup of 
  801. the Boot Sector Monitor. From this page you can select which physical and/or 
  802. logical volumes you wish to monitor. Pressing the default button selects all 
  803. drives for monitoring. You may also set the interval at which the boot sectors 
  804. are checked for alteration. 
  805.  
  806. When a boot sector is altered and the alteration is detected you will be 
  807. notified of the alteration via a pop-up dialog. From this dialog you may select 
  808. to ignore the alteration or restore the boot sector to its original value. 
  809.  
  810. The second page of the notebook presents the File Lock feature. To add a file 
  811. to the list, press the ADD button. This will display another dialog where you 
  812. specify the complete drive, path, and file name of the file(s) to lock. Wild 
  813. cards are permitted in the file name. All files specified will be write 
  814. protected. If you wish these files to be read protected also, check the Read 
  815. Protect check box. To include subdirectories of the path, check the Include 
  816. Subdirectories check box. 
  817.  
  818. To remove files from the list, select one or more files with the mouse. To 
  819. select a single file, click on it. To select a range of files click on the 
  820. first file and drag to the last file. Once the file(s) are selected, press or 
  821. click on the REMOVE button. 
  822.  
  823. The DEFAULT button will automatically add certain OS/2 files which are critical 
  824. to workstation security. It is suggested that you press DEFAULT before 
  825. initially setting up your file list. 
  826.  
  827. In order for Sentry to protect your system, it must remain executing. Once you 
  828. have started Sentry and set the values as desired, you must leave Sentry 
  829. running. To do this, click on the minimize control. OS/2 will restart Sentry 
  830. automatically on subsequent reboots. Alternatively you may create a shadow of 
  831. the Sentry icon and place it in your startup folder. 
  832.  
  833. The startup and shutdown sequence for Sentry may take a few minutes as it 
  834. identifies files to be locked or unlocked. 
  835.  
  836. Sentry can be used to back up critical OS/2 files.  Both the OS2 INI files 
  837. (OS2.INI and OS2SYS.INI) and the CONFIG.SYS file are backed up to a directory 
  838. you specify and at intervals you specify. In the event that these files are 
  839. deleted or become corrupted or damaged, they can be restored from the backup 
  840. copies maintained by sentry. 
  841.  
  842. Sentry can back up files either every interval (in terms of days, hours, and 
  843. minutes, or it can back up after a specified time of day.  When Interval is 
  844. selected, the time of the most recent backup is checked against the current 
  845. time and the selected interval.  If the current time is greater than the last 
  846. backup time plus the interval, the backup is performed.  An alternative method 
  847. of backup is provided with the Time Of Day option.  With this selected, the 
  848. hours and minutes you enter are interpreted as the time of day when you'd like 
  849. the backup performed.  In this case, the time of the most recent backup is 
  850. compared against the current time.  If the backup has not been performed today, 
  851. and it's past the backup time, a backup is performed. 
  852.  
  853. To keep your system files backed up, select a backup directory, select a backup 
  854. interval, and enable the backup feature.  Sentry can maintain from 1 to 99 
  855. generations of backup files but it defaults to three generations. 
  856.  
  857. Sentry can be configured to backup the selected items every time you start the 
  858. program.  With this item selected, any of the options selected (Desktop, INI 
  859. files, CONFIG.SYS) will be immediately backed up each time you start the 
  860. program.  This is in addition to any other options selected. 
  861.  
  862. For the Backup Desktop option to function properly if your OS/2 boot volume is 
  863. HPFS format, the backup directory must also be HPFS. If your boot volume is 
  864. FAT, the backup directory can be FAT or HPFS. Generally, floppy disk drives are 
  865. not suitable for automated backup. 
  866.  
  867. To make it simple to keep the Sentry program in your list of auto-started 
  868. programs, there is an option to have the program start minimized.  To enable 
  869. this feature, simple select the "Start Minimized" check box on the Sentry 
  870. settings page. 
  871.  
  872. Restoring from Sentry's Backup Files: 
  873.  
  874. The copies of the system INI files, the Workplace Shell Desktop tree, and the 
  875. CONFIG.SYS file are essentially just copies of the originals. Since the INI 
  876. files and the Desktop directory tree are in use whenever the Workplace Shell is 
  877. running, they may be restored only after booting from floppy disk.  (The 
  878. CONFIG.SYS file may be restored at any time.) 
  879.  
  880. To boot from floppy, insert the OS/2 Install diskette and start the system. 
  881. When prompted, insert OS/2 diskette 1.  At the next prompt, you are given the 
  882. alternatives of pressing Enter to continue or Escape to go to a command prompt. 
  883. Press Escape here to obtain the prompt. 
  884.  
  885. Sentry maintains several generations (from 1 to 100) of backups of both the INI 
  886. files and the Desktop tree.  The most recent backup is number 00 and the oldest 
  887. is the highest number.  You can tell when the files were backed up by checking 
  888. the Modified date on the file (or directory in the case of the Desktop backup). 
  889.  
  890. After you select which generation to restore from (we'll use 00 in the example 
  891. here) you need to copy the files from your backup directory back to your system 
  892. directories. 
  893.  
  894. The backup INI files created by Sentry are called OS2.nn and OS2SYS.nn, where 
  895. nn is a generation number.  The most recent generation is always number 00. 
  896. The next youngest version is 01, and so on. 
  897.  
  898. For Example If your boot drive is C:, to restore the INI files from the most 
  899. recent backup, you would simply copy the files from your backup directory to 
  900. your system directory (\OS2). Assuming a default installation on drive C: the 
  901. command to do this would be: 
  902.  
  903. COPY C:\GTU30\BACKUP\OS2.00 C:\OS2\OS2.INI
  904.  
  905. COPY C:\GTU30\BACKUP\OS2SYS.00 C:\OS2\OS2SYS.INI
  906.  
  907. If you need to restore from a backup generation other than 00, simply 
  908. substitute the appropriate number. 
  909.  
  910. To restore your Workplace Shell Desktop directory tree, you must boot from 
  911. floppy disk, rename the existing desktop directory tree and copy over the 
  912. backup version of the directory tree. 
  913.  
  914. Under OS/2 2.1, the Workplace Shell Desktop directory is created as 
  915. "C:\Desktop" on both HPFS and FAT volumes.  Under OS/2 2.0, or on a 2.1 system 
  916. which originally had 2.0 installed, the Workplace Shell Directory name is 
  917. "C:\OS!2 2.0 Desktop" on an HPFS volume, or "C:\OS!2_2.0_D" on a FAT volume. 
  918. You can check the name of your directory be typing "DIR" in the root directory 
  919. of your boot volume or by selecting the File settings in the settings folder 
  920. for your Workplace Shell desktop. 
  921.  
  922. The backup Desktop directories created by Sentry are called Backupnn where nn 
  923. is a generation number.  The most recent generation is always number 00.  The 
  924. next youngest version is 01, and so on. 
  925.  
  926. Assuming that your boot volume is C:, that you backed up your desktop directory 
  927. tree to C:\GTU30\BACKUP, and that your Workplace Shell Desktop directory tree 
  928. is stored in C:\DESKTOP, you would restore your desktop directory in this way: 
  929.  
  930. REN C:\DESKTOP DESKOLD
  931.  
  932. XCOPY C:\GTU30\BACKUP\BACKUP00\* C:\DESKTOP\* /S /E /V
  933.  
  934. With this operation, you are renaming the old desktop directory to avoid 
  935. problems with portions of the directory which may be corrupted and you are 
  936. copying back your backup copy of the directory tree. 
  937.  
  938. If your desktop directory is different that the example, substitute it in place 
  939. of "C:\DESKTOP".  Likewise, if your backup copies are stored somewhere other 
  940. than C:\GTU30\BACKUP, substitute the appropriate directory name in its place. 
  941.  
  942.  
  943. ΓòÉΓòÉΓòÉ 7.6. SysInfo ΓòÉΓòÉΓòÉ
  944.  
  945. The SysInfo utility displays a window containing detailed information about 
  946. your workstation and OS/2 configuration. The text is divided into 3 groups as 
  947. follows: 
  948.  
  949. General System Information displays information such as the maximum path 
  950. length, boot drive, performance and priority settings, memory values, etc. 
  951.  
  952. The Hardware Information displays the number of attached printers, serial ports 
  953. and diskette drives; the PC model types and coprocessor presence; I/O port 
  954. assignments for attached COM and LPT devices; and IRQ status, address and 
  955. devices. 
  956.  
  957. Note: To obtain IRQ and Port map information the /rm switch must be specified 
  958. in the Parameters section of the Settings dialog, or on the command line if 
  959. executed in that manner. Not all hardware configurations are compatible with 
  960. the OS/2 Resource Manager. If traps or system lockups occur when using this 
  961. featue, discontinue using it. 
  962.  
  963. The Presentation Manager Information deals with various video graphics values, 
  964. mouse settings, cursor and keyboard values. Most of these values are of 
  965. greatest interest to programmers but are interesting to the non-technical user 
  966. as well. 
  967.  
  968. The System Information text may be saved to a file or printed using the pull 
  969. down menu. 
  970.  
  971.  
  972. ΓòÉΓòÉΓòÉ 7.7. UnDelete ΓòÉΓòÉΓòÉ
  973.  
  974. The UnDelete function performs file recovery for FAT or HPFS volumes. One or 
  975. many files may be selected for recovery at the same time. 
  976.  
  977. The GammaTech UnDelete utility permits the customer to have one or more volumes 
  978. enabled for the OS/2 undelete feature. When it is detected that the OS/2 
  979. undelete feature is enabled for a volume, the customer is given the option to 
  980. undelete from the OS/2 DELETE directory, or use the normal GammaTech undelete 
  981. procedure. Normally when this option is given, the customer should choose to 
  982. undelete from the OS/2 DELETED directory. 
  983.  
  984. The OS/2 undelete facility renames files to ambiguous numeric names. If you 
  985. have the OS/2 Undelete option enabled and choose to use the normal undelete 
  986. procedure instead of the OS/2 undelete option, you will have difficulty 
  987. identifying your files. 
  988.  
  989. UnDelete scans the requested drive for ALL erased files which may be at least 
  990. partially recovered and then allows you to select those files you wish to 
  991. recover. 
  992.  
  993. On HPFS volumes this search can run for some time depending on the number of 
  994. erased files and amount of freespace on the volume. A timeline is provided 
  995. during the analyze processing so that you may gauge the length of time the 
  996. analyze will require. You may continue to work on your OS/2 workstation while 
  997. the analysis is being performed, but you should take care not to write to the 
  998. volume where the erased file(s) reside. 
  999.  
  1000. The timeline is not displayed when analyzing a FAT volume or when the OS/2 
  1001. Undelete feature is used. In these cases, the analysis is quite fast. 
  1002.  
  1003. As deleted files are located on the volume, they are displayed in the dialog. 
  1004. You may cancel the analysis at any time and undelete from the list as displayed 
  1005. at the time of the cancel request. 
  1006.  
  1007. The path displayed for the deleted files will not be reliable if the directory 
  1008. structure of the volume has been altered since the file was deleted. Display of 
  1009. incorrect information in the path field is not an error and in any event will 
  1010. not effect the ability to recover the file. 
  1011.  
  1012. After selecting the file(s) to be recovered, if any of the data for the deleted 
  1013. file can be recovered, it will be written to a new output file. You will be 
  1014. prompted for the name of the new file with a suggested path and file name. Even 
  1015. if the complete file cannot be recovered, UnDelete will recover as much as 
  1016. possible. 
  1017.  
  1018. Since the UnDelete utility reads the deleted data at the same time it writes 
  1019. the recovered file, it is a good idea to direct the new file to a different 
  1020. volume than the one where the deleted file resides. This will prevent UnDelete 
  1021. from accidentally writing over data belonging to the deleted file before it is 
  1022. recovered. You may specify a floppy disk drive for the new file and then copy 
  1023. the file back to the original volume after all deleted files are recovered. If 
  1024. you have multiple hard disk volumes, you may use one of them. UnDelete will 
  1025. tell you if you accidentally specify the same input and output volume. You may 
  1026. override UnDelete at this time to force it to recover to the same volume but 
  1027. the chance of a successful recovery is reduced. Note: This restriction does not 
  1028. apply when using the OS/2 Undelete feature with the GammaTech UnDelete utility. 
  1029.  
  1030. When recovering large files to floppy disk volumes you will be prompted to 
  1031. change floppies when the diskette is full. After changing the diskette, 
  1032. UnDelete will continue writing to the new diskette. In such cases you should 
  1033. number each diskette. Each diskette will contain a fraction of the file data. 
  1034. Once recovery has completed, you can rejoin the file fragments from the 
  1035. multiple floppy diskettes using the GammaTech FileJoin utility. 
  1036.  
  1037. Normally if the file data can be recovered, any extended attributes (EA's) that 
  1038. belong to the file can also be recovered. However, it is not possible for 
  1039. UnDelete to positively identify that the deleted file had EA's at the time it 
  1040. was deleted. It can determine that the file had EA's at some time in its life. 
  1041. UnDelete will always attempt recovery of any EA's as well. If the EA's cannot 
  1042. be recovered for any reason, the file data will still be recovered to the 
  1043. extent possible. 
  1044.  
  1045. When undeleting FAT files or when using the OS/2 Undelete feature to undelete 
  1046. files, the original timestamps of the files are restored also. 
  1047.  
  1048. Unfortunately with HPFS, timestamps cannot be recovered. That information is 
  1049. permanently lost. The timestamps are the time and date a file was created, 
  1050. modified, and accessed. 
  1051.  
  1052. Recovery of erased files on a server are less likely to be successful than on 
  1053. stand alone workstations due to the volume of read/write activity from multiple 
  1054. workstations. 
  1055.  
  1056. LAN Server Users:  The UnDelete utility may be executed by users with ADMIN 
  1057. access authority. Access Control information will be lost for the recovered 
  1058. file. The administrator should reinstate any file permissions for the recovered 
  1059. file after the file is recovered.  The administrator may also use the RESTACC 
  1060. utility to restore file permissions. The RESTACC is supplied with your LAN 
  1061. Server software. 
  1062.  
  1063. Program priority can be set to either normal or idle class. Operating at idle 
  1064. priority will cause the Undelete program to have a minimum impact on other 
  1065. executing programs. If other programs are consuming all available processor 
  1066. time however, using idle class may keep the function from completing.  Changes 
  1067. to the priority settings take effect immediately. 
  1068.  
  1069.  
  1070. ΓòÉΓòÉΓòÉ 8. Command Line Utilities ΓòÉΓòÉΓòÉ
  1071.  
  1072. Several utility functions are provided as "command line" versions. In many 
  1073. instances, it is easier and faster to operate from the OS/2 command line. 
  1074.  
  1075. In addition, there are times when Presentation Manager or even OS/2 itself 
  1076. cannot be initialized due to some error condition.  In such cases, the command 
  1077. line versions can be useful in recovering data or correcting the problem. 
  1078.  
  1079. In these cases you must boot in "maintenance" mode. This is accomplished by 
  1080. booting OS/2 from the OS/2 installation floppy disk(s). When OS/2 prompts you, 
  1081. press ESC to obtain a command line prompt. Then remove the OS/2 diskette from 
  1082. the floppy drive and insert the GammaTech Utilities installation disk. You will 
  1083. then have access to the GTDisk and FileJoin utilities to perform recovery 
  1084. operations. 
  1085.  
  1086. All of the command line utilities will produce a short syntax display when the 
  1087. /? or -? switch is set. 
  1088.  
  1089.  
  1090. ΓòÉΓòÉΓòÉ 8.1. Beep - The Beep Utility ΓòÉΓòÉΓòÉ
  1091.  
  1092. Beep in its simplest form will sound the speaker with a short beep. Options 
  1093. allow you to specify the frequency and duration of one or more beeps. You may 
  1094. also specify a file containing a list of frequency / duration pairs which will 
  1095. play musical tunes. 
  1096.  
  1097. Beep is a command line utility. It may be executed from an OS/2 command line 
  1098. prompt, command files or the alarms productivity aid utility. 
  1099.  
  1100. Command Syntax: 
  1101.  
  1102. BEEP [-?] [freq,dur ...,...] [filename] 
  1103.  
  1104. -? - Display syntax information only. 
  1105.  
  1106. Freq - A frequency value in the range of 32 to 32767. 
  1107.  
  1108. Dur - The duration of the sound in milliseconds (1000 = 1 Second). 
  1109.  
  1110. If not specified, the frequency and duration default to 523,300. 
  1111.  
  1112. If a filename is specified, the frequency and duration pairs are read from the 
  1113. file and played. The music files may contain more than one freq,dur pair on a 
  1114. line separated by spaces. The maximum length of any one line is 510 bytes.  Any 
  1115. line beginning with an * is considered a comment line. You will find several 
  1116. sample music files in the GTU30 directory. The sample music files have a file 
  1117. extension of .MUS. 
  1118.  
  1119. The following table lists musical note frequencies for several octaves: 
  1120.  
  1121. C0    16     C1   33    C2    65    C3    131
  1122. C#0   17     C#1  35    C#2   69    C#3   139
  1123. D0    18     D1   37    D2    73    D3    147
  1124. D#0   19     D#1  39    D#2   78    D#3   156
  1125. E0    21     E1   41    E2    82    E3    165
  1126. F0    22     F1   44    F2    87    F3    175
  1127. F#0   23     F#1  46    F#2   93    F#3   185
  1128. G0    25     G1   49    G2    98    G3    196
  1129. G#0   26     G#1  52    G#2  104    G#3   208
  1130. A0    28     A1   55    A2   110    A3    220
  1131. A#0   29     A#1  58    A#2  117    A#3   233
  1132. B0    31     B1   62    B2   123    B3    247
  1133.  
  1134. C4   262     C5  523    C6  1046    C7   2093
  1135. C#4  277     C#5 554    C#6 1109    C#7  2217
  1136. D4   294     D5  587    D6  1175    D7   2349
  1137. D#4  311     D#5 622    D#6 1245    D#7  2489
  1138. E4   330     E5  659    E6  1329    E7   2637
  1139. F4   349     F5  698    F6  1397    F7   2794
  1140. F#4  370     F#5 740    F#6 1480    F#7  2960
  1141. G4   392     G5  784    G6  1568    G7   3136
  1142. G#4  415     G#5 831    G#6 1662    G#7  3322
  1143. A4   440     A5  880    A6  1760    A7   3520
  1144. A#4  466     A#5 932    A#6 1865    A#7  3729
  1145. B4   494     B5  988    B6  1976    B7   3951
  1146.                                     C8   4186
  1147.  
  1148.  
  1149. ΓòÉΓòÉΓòÉ 8.2. DelTree - Delete Tree ΓòÉΓòÉΓòÉ
  1150.  
  1151. DelTree will remove an entire directory tree and all files in that tree. This 
  1152. command should be used with great caution. 
  1153.  
  1154. Command Syntax: 
  1155.  
  1156. DELTREE [-?] [-n] [drive:]directory 
  1157.  
  1158. The -? option displays syntax information. 
  1159.  
  1160. The -n option causes the "Are you sure?" prompt which is normally performed to 
  1161. be bypassed. 
  1162.  
  1163. DelTree will remove files and directories which have attributes of SYSTEM, 
  1164. READ-ONLY and HIDDEN. It will not remove files and directories which are 
  1165. opened, in use by another process, or in the case of a directory, the default 
  1166. directory of any process. 
  1167.  
  1168. In cases where not all files and directories can be erased, as many files and 
  1169. directories which can be erased will be erased. 
  1170.  
  1171.  
  1172. ΓòÉΓòÉΓòÉ 8.3. FATOpt - Optimize FAT Volumes ΓòÉΓòÉΓòÉ
  1173.  
  1174. The GammaTech FAT Optimizer analyzes a FAT volume and reorganizes the files to 
  1175. eliminate file fragmentation. 
  1176.  
  1177. A fragmented file contains more than one contiguous block of data. On a FAT 
  1178. (File Allocation Table) volume, the smallest unit of disk space is a cluster. 
  1179. A cluster consists of one or more sectors and each sector is typically 512 
  1180. bytes.  Clusters on hard disks typically contain from 4 to 16 sectors, making 
  1181. them 2048 to 8192 bytes in length. 
  1182.  
  1183. Command Syntax: 
  1184.  
  1185. FATOPT [-?] [drive:] [-u] [-m] 
  1186.  
  1187.      -c <xx> Optimize only if <xx>% fragmented 
  1188.  
  1189.      -d    Prompt Before Optimizing 
  1190.  
  1191.      -e    Don't optimize "EA DATA. SF" 
  1192.  
  1193.      -m    Use Monochrome Mode 
  1194.  
  1195.      -n <xx> Optimize only if <xx> files fragmented 
  1196.  
  1197.      -p filename  Specify report file name 
  1198.  
  1199.      -r    Skip read verify operation 
  1200.  
  1201.      -u    Unattended mode 
  1202.  
  1203.  -?        Display syntax. 
  1204.  
  1205.  drive:    The drive letter followed by a colon of the FAT volume to be 
  1206.            optimized (i.e.  C:).  If drive: is not specified FATOPT will prompt 
  1207.            for it. 
  1208.  
  1209.  -c <xx>   Use this option to optimize the disk only if the total number of 
  1210.            fragmented files exceeds <xx> percent.  This is an especially useful 
  1211.            function if used in unattended mode (see the -u switch) as a part of 
  1212.            a daily maintenance procedure.  Also see the -n <xx> switch. 
  1213.  
  1214.  -d        With this option set, FATOPT will pause after displaying the disk 
  1215.            layout and before optimizing the drive.  You will be prompted to 
  1216.            continue. 
  1217.  
  1218.  -e        With this option set, FATOPT will NOT optimize the extended 
  1219.            attribute file EA DATA. SF.  The default behavior includes 
  1220.            optimizing the EA DATA. SF file along with all the other files on 
  1221.            the disk. 
  1222.  
  1223.  -m        Selects monochrome mode for customers with monochrome monitors. 
  1224.  
  1225.  -n <xx>   Use this option to optimize the disk only if the total number of 
  1226.            fragmented files exceeds <xx>.  This is an especially useful 
  1227.            function if used in unattended mode (see the -u switch) as a part of 
  1228.            a daily maintenance procedure.  Also see the -c <xx> switch. 
  1229.  
  1230.  -p filespec FATOPT will write a report to a standard text file with 
  1231.            information about the optimization operation.  You may examine this 
  1232.            file after optimizing to see the status of the optimization. 
  1233.  
  1234.  -r        Setting this option tells the optimizer to skip the "read back after 
  1235.            write verify" function.  This will greatly improve the speed of the 
  1236.            program while sacrificing an important data integrity feature.  You 
  1237.            should use this feature only if you are certain that your hard drive 
  1238.            has no data integrity problems and execution speed is important to 
  1239.            you. 
  1240.  
  1241.  -u        Run in unattended mode.  Normally FATOPT waits for a keystroke 
  1242.            before terminating to give you time to examine the program output. 
  1243.            This switch will cause termination immediately without user input. 
  1244.            This option is useful when running off hours or as a background 
  1245.            task. 
  1246.  
  1247.  Warning: It is strongly recommended that you make a current backup of the 
  1248.  volume and  run CHKDSK before executing this utility to ensure that you have a 
  1249.  "clean" volume to begin with and adequate recovery is available. 
  1250.  
  1251.  If no options are supplied when starting the FAT optimizer, you will be 
  1252.  prompted for the applicable values. 
  1253.  
  1254.  The FAT Optimizer must be able to obtain exclusive access to the drive being 
  1255.  optimized.  No other programs may be running with open files on the drive, 
  1256.  including executable files.  This excludes the possibility of optimizing the 
  1257.  OS/2 boot volume since files are always open.  To optimize an OS/2 boot 
  1258.  volume, you must boot your workstation from a floppy. 
  1259.  
  1260.  If the FatOpt executable file (FATOPT.EXE) resides on the drive to be 
  1261.  optimized, you must copy it to another volume or to a floppy diskette and 
  1262.  execute it from there. 
  1263.  
  1264.  Once optimization has begun, you may terminate the operation by pressing ESC. 
  1265.  Care should be taken not to otherwise terminate the optimizer such as via 
  1266.  Ctrl-C, Ctrl-Break, or the Workplace Shell. 
  1267.  
  1268.  The FAT Optimizer will not attempt to defragment any file which has an 
  1269.  attribute of READ ONLY, HIDDEN, or SYSTEM (with the exception of the "EA DATA. 
  1270.  SF" file). If you wish the optimizer to operate on a file with these 
  1271.  attributes you must change the file's attribute before executing the 
  1272.  optimizer. You may do this using the GammaTech Files utility. 
  1273.  
  1274.  Example: FATOPT d: -p report.dat 
  1275.  
  1276.  This example will optimize the FAT D: volume. A report is written to the file 
  1277.  "report.dat". 
  1278.  
  1279.  For the optimizer to run properly there must be free space available on the 
  1280.  volume. A full or near full volume will prevent the optimizer from running 
  1281.  effectively. For maximum performance, there should be at least 512,000 bytes 
  1282.  free. 
  1283.  
  1284.  
  1285. ΓòÉΓòÉΓòÉ 8.4. FATSort - Sort FAT Directories ΓòÉΓòÉΓòÉ
  1286.  
  1287. The FAT Sort utility will permanently sort one or more subdirectories on a FAT 
  1288. volume. 
  1289.  
  1290. Usage:   FATSORT drive:directory [-n] [-s] [-x] [-d] [-b] 
  1291.  
  1292.  drive:directory The drive letter followed by a colon of the FAT volume to be 
  1293.            optimized (i.e.  C:).  drive: is required.  If a relative directory 
  1294.            name is provided, sorting will start with that directory. 
  1295.  
  1296.  -s Sort Subdirectories. If the -s option is provided, FATOPT will sort 
  1297.            subdirectories. 
  1298.  
  1299.  -n Sort by File Name. If the -n option is provided, FATOPT will sort the files 
  1300.            by file name (DEFAULT). 
  1301.  
  1302.  -x Sort by File Extension. If the -x option is provided, FATOPT will sort the 
  1303.            files by file extension. 
  1304.  
  1305.  -d Sort by File Date/Time. If the -d option is provided, FATOPT will sort the 
  1306.            files by the date/time stamp. 
  1307.  
  1308.  -b Sort by File Size. If the -b option is provided, FATOPT will sort the files 
  1309.            by file size. 
  1310.  
  1311.            Note: Appending "-" to -n, -x, -d, or -b sorts in descending order 
  1312.            (i.e. "-n-"). 
  1313.  
  1314.  The FAT Optimizer always places directory entries ahead of file entries. i.e. 
  1315.  FATSORT D: -b- would sort the largest file first. 
  1316.  
  1317.  Warning: It is strongly recommended that you make a current backup of the 
  1318.  volume and  run CHKDSK before executing this utility to ensure that you have a 
  1319.  "clean" volume to begin with and adequate recovery is available. 
  1320.  
  1321.  The FatSort utility must be able to obtain exclusive access to the drive being 
  1322.  sorted. No other programs may be running with open files on the drive 
  1323.  including executable files. If the drive to be sorted is the OS/2 boot drive 
  1324.  you must boot OS/2 from floppy disk to sort the directories on it. 
  1325.  
  1326.  If the FatSort executable file (FATSORT.EXE) resides on the drive to be 
  1327.  sorted, you must copy it to another volume or to a floppy diskette and execute 
  1328.  it from there. 
  1329.  
  1330.  
  1331. ΓòÉΓòÉΓòÉ 8.5. FileJoin - Join Multi-Floppy Files ΓòÉΓòÉΓòÉ
  1332.  
  1333. Some of the GammaTech Utilities allow a large file to be recovered to 
  1334. multi-volume floppy disks. In other words, a large file may span more than one 
  1335. floppy diskette volume. The FileJoin utility provides a method of rejoining 
  1336. those diskette volumes into one contiguous file on a hard disk volume. 
  1337.  
  1338. Command Syntax: 
  1339.  
  1340. FILEJOIN [-?] infile outfile 
  1341.  
  1342. -? - Display syntax information. 
  1343.  
  1344. infile - The input drive and file name. The drive specified must be a floppy 
  1345. disk drive (A: or B:). 
  1346.  
  1347. outfile - The output drive, path and file name. This volume must not be a 
  1348. floppy disk drive and must specify drive C: or higher. 
  1349.  
  1350. Example: FILEJOIN A:\MYFILE.DAT C:\FILES\MYFILE.DAT 
  1351.  
  1352. The FileJoin utility will ask for each diskette in order and create a new 
  1353. single volume file on the target drive. When the last diskette has been read, 
  1354. the user presses the F3 key to complete the file join procedure. 
  1355.  
  1356.  
  1357. ΓòÉΓòÉΓòÉ 8.6. FileRec - Recover Damaged File ΓòÉΓòÉΓòÉ
  1358.  
  1359. In the event an existing file is discovered to contain a bad sector most 
  1360. applications and utilities will abort when reading the file and the bad sector 
  1361. is encountered. FileRec is a recovery utility which will copy the file 
  1362. replacing bad sectors with a value specified by the user. The data in the bad 
  1363. sector is lost, but the space is reserved and the user may be able to 
  1364. reconstruct those sectors manually. 
  1365.  
  1366. Command Syntax: 
  1367.  
  1368. FILEREC [/?] [/hh] infile outfile 
  1369.  
  1370. /? - Display syntax information. 
  1371.  
  1372. /hh - Specifies the hexadecimal value to be used to replace bad sectors. If no 
  1373. value is specified a value of /20 is used which is equivalent to a space. 
  1374.  
  1375. infile - The input file which contains bad sectors. 
  1376.  
  1377. outfile - The output file name of the reconstructed file. 
  1378.  
  1379.  
  1380. ΓòÉΓòÉΓòÉ 8.7. GTDisk - Disk Utility ΓòÉΓòÉΓòÉ
  1381.  
  1382. The GTDisk utility provides several utility functions in a text mode shell to 
  1383. allow you to perform recovery operations when Presentation Manager is not 
  1384. available for use. 
  1385.  
  1386. To start GTDisk from Presentation Manager, simply double click on the icon in 
  1387. the GammaTech folder. To execute it from a command prompt, type GTDisk at the 
  1388. prompt. If you have booted from floppy disk, place the GammaTech Installation 
  1389. disk into drive A: and enter A:GTDisk at the command prompt. 
  1390.  
  1391. GTDisk will present a display of the utilities available for use. Several of 
  1392. these utilities write to the disk to perform the recovery operation. In order 
  1393. to do this safely under OS/2 the disk volume must be locked to prevent other 
  1394. processes from updating it at the same time. In order to lock the volume, no 
  1395. other process can be using it at the time. This requires that all applications 
  1396. and windows using the volume be closed. In the case of the boot volume, there 
  1397. will always be open files on the volume. In order to update those volumes you 
  1398. must boot from the OS/2 floppy disks. 
  1399.  
  1400.  
  1401. ΓòÉΓòÉΓòÉ 8.7.1. Mark / Unmark Bad Sectors ΓòÉΓòÉΓòÉ
  1402.  
  1403. Use the Mark Bad Sectors feature to mark sectors on your FAT or HPFS volume 
  1404. unusable by OS/2. You may also reverse the operation with the Unmark feature. 
  1405.  
  1406. Supply the drive letter of the volume to be operated on, then fill in the 
  1407. starting and ending sectors to be marked or unmarked. Press F2 to mark sectors 
  1408. as bad or press F3 to unmark the sectors and return them to a usable status. 
  1409.  
  1410. The first sector in the range must be a free (unused) sector if you are marking 
  1411. sectors bad. Subsequent sectors in the range will be skipped if they are not 
  1412. eligible to be marked bad. 
  1413.  
  1414. If you are unmarking a range of sectors, the 1st sector must be marked bad. 
  1415. Subsequent sectors will be skipped if they are not already marked bad. 
  1416.  
  1417.  
  1418. ΓòÉΓòÉΓòÉ 8.7.2. Undelete Files ΓòÉΓòÉΓòÉ
  1419.  
  1420. The Undelete function allows you to recover files which have been accidentally 
  1421. deleted from a HPFS or FAT volume. Files are written to a different disk than 
  1422. that where the deleted file resides. 
  1423.  
  1424. When initially activated you are prompted for the drive letter of the volume 
  1425. where the deleted file(s) reside. Once entered, the volume is searched for 
  1426. erased files. If the volume is HPFS this analysis may take several minutes 
  1427. depending on the amount of freespace on the volume. 
  1428.  
  1429. Once the analysis has completed you will be presented with each erased file, 
  1430. one at a time, for recovery. This is a compact version of Undelete. The PM 
  1431. version has several additional features which simplifies and speeds the 
  1432. recovery process. 
  1433.  
  1434. Later versions of the HPFS (version 2.3 and up) support a fast format feature 
  1435. by default. This feature of the Format command does not overwrite the entire 
  1436. volume as did previous versions (although you may choose to do this as an 
  1437. option). The fast format feature only writes the required format information to 
  1438. the volume which significantly speeds up the format procedure. What this means 
  1439. in a recovery situation is that some data structures on the volume may be left 
  1440. over from a previous format. In other words, it contains old data. When a fast 
  1441. formatted volume is detected, a warning message is provided to notify you that 
  1442. the volume has been fast formatted. Recovery will proceed but you should be 
  1443. aware that some of the recovered data may be from the previous format. 
  1444.  
  1445. If you wish to alleviate the problems of a fast formatted volume in a recovery 
  1446. situation you may either choose not to perform a fast format when you format 
  1447. the volume, or you may use the WipeFree utility to overwrite the freespace on 
  1448. the volume which will in effect erase any data remaining from a previous 
  1449. format. This of course must be done in advance of the failure. 
  1450.  
  1451.  
  1452. ΓòÉΓòÉΓòÉ 8.7.3. Dirty - Set dirty flag ΓòÉΓòÉΓòÉ
  1453.  
  1454. The dirty flag tells OS/2 that the volume may need clean up action taken in 
  1455. order to ensure data integrity. OS/2 will prevent use of the volume until clean 
  1456. up has occurred. This is normally accomplished by either the AUTOCHECK feature 
  1457. or by manually running CHKDSK on the volume. 
  1458.  
  1459. The Dirty utility will set the "dirty" flag for HPFS or FAT volumes. This would 
  1460. be used as a LAST DITCH effort to recover files from a corrupted volume. You 
  1461. should be prepared to lose all data on the volume when you set the dirty flag 
  1462. off for that volume in the event that the file system is damaged beyond repair. 
  1463.  
  1464. This command should be used with great caution. 
  1465.  
  1466. When initialized you will be asked for the drive letter for the drive you wish 
  1467. to alter. Once entered, the current dirty flag setting is displayed and options 
  1468. are given to allow you to alter the dirty flag setting. Once the dirty flag is 
  1469. set off, you should reboot the system to gain access to the drive. 
  1470.  
  1471. The HPFS386 drivers also check a checksum value to determine if a chkdsk should 
  1472. be run against the drive. When setting the dirty flag off for HPFS volumes, the 
  1473. checksum is set to a stable state so that autocheck will not be required. 
  1474.  
  1475.  
  1476. ΓòÉΓòÉΓòÉ 8.7.4. Recover HPFS Files ΓòÉΓòÉΓòÉ
  1477.  
  1478. The HPFS Recovery function is used to recover files from a damaged HPFS volume. 
  1479. Normally, low sector corruption of an HPFS volume will result in total data 
  1480. loss for the volume. This function locates files on the HPFS volume without the 
  1481. need to access the low sector structures allowing recovery of most files on the 
  1482. volume. 
  1483.  
  1484. The HPFS Recovery menu asks for the volume to be recovered and the target 
  1485. volume and path for recovered files. A value of * placed in the Target Path 
  1486. field indicates that you wish to recreate the entire directory structure of the 
  1487. damaged volume on the target volume. Directories which do not already exist on 
  1488. the target volume will be created. 
  1489.  
  1490. On the menu you may also specify the Prompt Mode for the recovery operation. A 
  1491. value of FILES indicates that you wish to be asked about every file as to 
  1492. whether to recover it or not. A value of DIR indicates you wish to be asked 
  1493. about entire directories and their subdirectories only. A value of AUTO will 
  1494. attempt to recover all files and directories without prompting you. You may 
  1495. alter the Prompt Mode selection by typing the first letter of the choice 
  1496. (f,d,a) or by pressing the Space Bar to cycle through the choices. 
  1497.  
  1498. The Prompt Mode may also be altered during the recovery operation by selecting 
  1499. the desired choice when being prompted for action. 
  1500.  
  1501. The Specific F-Node field indicates that you wish to bypass the initial 
  1502. analysis of the volume and provide the hexadecimal sector number of the root 
  1503. directory F-Node or the F-Node address of some other directory or file for 
  1504. recovery. Normally you should not specify a Specific F-Node and allow the 
  1505. analysis of the volume to take place. Analysis can take a few minutes and 
  1506. generally will allow recovery of most, if not all, data on the volume. 
  1507.  
  1508. Each file and directory on an HPFS volume has a F-Node. You can search your 
  1509. disk for F-Nodes using a sector editor and searching for the hex string 
  1510. AE0AE4F7 in the 1st 4 bytes of each sector. 
  1511.  
  1512. When a file F-Node is specified in the Specific F-Node field, only that file 
  1513. will be recovered. In addition, no attempt will be made to access the directory 
  1514. information for the file. This allows recovery of files with damaged directory 
  1515. information but the time stamps for the file will not be recovered. The 
  1516. recovered file will have timestamps reflecting the current date and time. 
  1517.  
  1518. When a directory F-Node is specified in the Specific F-Node field, only the 
  1519. files of that directory and its subdirectories are recovered. You may think of 
  1520. this option as using the specified directory as if it were the root directory 
  1521. for the volume. 
  1522.  
  1523. Once the above information has been supplied, you may start the recovery 
  1524. operation by choosing one of two recovery choices. 
  1525.  
  1526. The Start File Recovery option begins the analysis of the volume provided a 
  1527. Specific F-Node was not specified. This analysis may take a few minutes 
  1528. depending on the size of the volume. A progress indicator is displayed to 
  1529. indicate the maximum duration of the analysis. Often times the analysis will 
  1530. complete sooner than indicated if certain disk structures can be located 
  1531. relatively quickly. 
  1532.  
  1533. When the Analysis has completed, if required, file recovery will begin. You 
  1534. will be prompted for the recovery of each file and/or directory if you have so 
  1535. chosen using the Prompt Mode setting. Note that at each prompt, you may alter 
  1536. the Prompt Mode setting to better accommodate the recovery process and your 
  1537. personal choice. 
  1538.  
  1539. The Start F-Node Recovery option is a lower level type of recovery choice which 
  1540. does not depend on the directory structures being intact. Instead, the volume 
  1541. is searched front to back looking for file F-Nodes to recover. You will be 
  1542. prompted for recovery of each file located. The Prompt Mode is ignored for this 
  1543. option. Note that since this option ignores the directory information, the 
  1544. timestamps for the files will not be recovered and the timestamp for the 
  1545. recovered files will be set to the current date and time. 
  1546.  
  1547. If a Specific F-Node is specified or if the Start F-Node Recovery option is 
  1548. selected, the volume to be recovered must be partitioned to its original 
  1549. starting point and size on the volume because no volume analysis is performed 
  1550. and calibration of sector 0 has not been performed. 
  1551.  
  1552. If the analysis detects that the volume has been repartitioned to a starting 
  1553. point other than the original volume. It will tell you how far off it believes 
  1554. the start of the partition is from where it should be. This offset is given in 
  1555. sectors. Based on this information, if you believe that you have repartitioned 
  1556. the volume in error, repartitioning it properly may aid in recovering more data 
  1557. from the volume. 
  1558.  
  1559. Later versions of the HPFS (version 2.3 and up) support a fast format feature 
  1560. by default. This feature of the Format command does not overwrite the entire 
  1561. volume as did previous versions (although you may choose to do this as an 
  1562. option). The fast format feature only writes the required format information to 
  1563. the volume which significantly speeds up the format procedure. What this means 
  1564. in a recovery situation is that some data structures on the volume may be left 
  1565. over from a previous format. In other words, it contains old data. When a fast 
  1566. formatted volume is detected, a warning message is provided to notify you that 
  1567. the volume has been fast formatted. Recovery will proceed but you should be 
  1568. aware that some of the recovered data may be from the previous format. 
  1569.  
  1570. If you wish to alleviate the problems of a fast formatted volume in a recovery 
  1571. situation you may either choose not to perform a fast format when you format 
  1572. the volume, or you may use the WipeFree utility to overwrite the freespace on 
  1573. the volume which will in effect erase any data remaining from a previous 
  1574. format. This of course must be done in advance of the failure. 
  1575.  
  1576. If recovery is directed to a floppy disk and a file is to be recovered which is 
  1577. too large to fit on the floppy disk, you will be prompted to skip the file or 
  1578. to utilize multi-volume floppy output for the file. Multi-volume floppy output 
  1579. requires that you have a supply of formatted blank diskettes. The multi-volume 
  1580. floppy file can be restored to a hard disk at a later time using the FileJoin 
  1581. utility provided in this package. 
  1582.  
  1583.  
  1584. ΓòÉΓòÉΓòÉ 8.7.5. Partition Fixup ΓòÉΓòÉΓòÉ
  1585.  
  1586. When a partition is deleted and redefined using FDISK, the logical boot record 
  1587. for that partition is destroyed. This leaves the volume in an "unformatted" 
  1588. state although the format is still good and the data on the volume is intact. 
  1589.  
  1590. The Partition Fixup function will recreate a usable logical boot sector on 
  1591. partitions which have been deleted and redefined with FDISK. The partition must 
  1592. be redefined to its original dimensions prior to the fixup operation. 
  1593.  
  1594. The Boot Sector Restore function is a safer choice for recovery of boot sectors 
  1595. provided that you have previously backed up your boot sectors with the Backup 
  1596. Boot Sector function. 
  1597.  
  1598. Warning: Do not format the volume after redefining the partition. Formatting a 
  1599. volume will result in complete and unrecoverable loss of all data on the 
  1600. volume. 
  1601.  
  1602.  
  1603. ΓòÉΓòÉΓòÉ 8.7.6. Boot Sector Backup / Restore ΓòÉΓòÉΓòÉ
  1604.  
  1605. The Boot Sector Backup function provides the ability to backup the boot sectors 
  1606. of all physical and logical disks. The Boot Sector Restore feature provides the 
  1607. ability to restore selected boot sectors if they should become corrupted by 
  1608. some means. 
  1609.  
  1610. Besides backing up the logical boot sectors, additional information is save for 
  1611. HPFS volumes such as the Boot Block, The Super Block and the Spare Block. 
  1612.  
  1613. The backup function will ask for a target volume and path to write the backup 
  1614. file (gtdisk.sec). It is suggested that the target volume be a floppy diskette. 
  1615. The backup file may not be accessible if you choose a hard disk volume and that 
  1616. volume itself becomes corrupted. 
  1617.  
  1618. The restore operation allows you to restore the boot sector of the selected 
  1619. volume provided it has been previously backed up. I the volume to be restored 
  1620. was a HPFS volume you may selectively restore the Logical Boot sector, the Boot 
  1621. Block, the Super Block, the Spare Block, or all of the above. 
  1622.  
  1623. Logical drives on which you wish to restore a previously saved boot sector must 
  1624. be defined according to their original location and size on the disk prior to 
  1625. restoring the boot sector. 
  1626.  
  1627. Warning:  Restoring boot sectors to volumes from which they did not come, or 
  1628. which have been repartitioned to different sizes or locations can result in 
  1629. loss of data. After making changes to your partitions, run the backup option to 
  1630. create a current backup copy and destroy any old copies of the backup. 
  1631.  
  1632.  
  1633. ΓòÉΓòÉΓòÉ 8.8. HexDump - Hex Dump Utility ΓòÉΓòÉΓòÉ
  1634.  
  1635. The HexDump utility is used to create an ASCII file from a binary file enabling 
  1636. the user to view the contents of a binary file in hex and ASCII values. The 
  1637. ASCII file created by HexDump may be edited using a standard text editor and 
  1638. then converted back to binary using the HexDump utility. This utility is for 
  1639. use when it is not practical to use a sector editor to view or modify binary 
  1640. files. 
  1641.  
  1642. Command Syntax: 
  1643.  
  1644. HEXDUMP [-h|a] infile outfile 
  1645.  
  1646.  -h        Indicates that infile is a ASCII file previously created using the 
  1647.            HexDump utility and that the hex section of the file is to be used 
  1648.            to create a new binary file specified by outfile. 
  1649.  
  1650.  -a        Indicates that infile is a ASCII file previously created using the 
  1651.            HexDump utility and that the ASCII section of the file is to be used 
  1652.            to create a new binary file specified by outfile. 
  1653.  
  1654.  none      No option indicates that infile is an existing binary file to be 
  1655.            converted to Hex/ASCII text form and written to the file specified 
  1656.            as outfile. 
  1657.  
  1658.  The customer should make adequate backup of the original binary file prior to 
  1659.  modification of the original using this utility in the event that the outcome 
  1660.  of the alteration is not as anticipated. 
  1661.  
  1662.  
  1663. ΓòÉΓòÉΓòÉ 8.9. HPFSOpt - HPFS Optimizer Utility ΓòÉΓòÉΓòÉ
  1664.  
  1665. A fragmented file contains more than one contiguous block of data. Each of 
  1666. these blocks is called an extent.  The HPFS Optimizer analyzes the files on 
  1667. your HPFS volume to determine the number of extents each file contains.  When a 
  1668. file is identified which contains excessive extents, it is defragmented. 
  1669.  
  1670. Command Syntax: 
  1671.  
  1672. HPFSOPT [-?] [drive:] [-o3] [-d] [-px] [-xn] [-yn] [-l filespec] [-m] [-u] 
  1673.  
  1674.  -?        Display syntax. 
  1675.  
  1676.  drive:    The drive letter followed by a colon of the HPFS volume to be 
  1677.            optimized (i.e.  C:).  If drive: is not specified you will be 
  1678.            prompted for it on the initial optimizer screen. 
  1679.  
  1680.  -o3       This is the optimization level.  Normally, the HPFS Optimizer will 
  1681.            defragment those files which contain more than 3 extents. And, will 
  1682.            consider a file as optimized when its fragmentation is decreased to 
  1683.            3 or less extents.  You may override the default optimization level 
  1684.            using the -o option and specifying the number of extents you wish to 
  1685.            use. For instance, -o5 will optimize files containing more than 5 
  1686.            extents.  It is recommended that you allow the -o option to default 
  1687.            to 3. 
  1688.  
  1689.  -px       Set the maximum number of optimization passes to "x". If this 
  1690.            parameter is not specified the maximum number of passes is 
  1691.            determined dynamically at run time based on various volume 
  1692.            statistics.  Example: -p5  The maximum number of optimization passes 
  1693.            is limited to 5. 
  1694.  
  1695.  -xn       Only those files which have file sizes greater than "n" will be 
  1696.            selected for optimization. The default is to select files greater 
  1697.            than 0 length for optimization. Example -x50000 
  1698.  
  1699.  -yn       Only those files which have file sizes less than or equal to "n" 
  1700.            will be selected for optimization. The default is to select files 
  1701.            with no upper file size limit. Example -y2000000 
  1702.  
  1703.  -d        Display only. HPFSOpt will display those files whose number of 
  1704.            extents exceed the optimization level but will not attempt to 
  1705.            optimize those files. 
  1706.  
  1707.  -l filespec HPFSOpt will write a log file to a standard text file with 
  1708.            information about the optimization operation.  You may examine this 
  1709.            file after optimizing to see which files were effected by the 
  1710.            optimization. There should be a space between the -l and the actual 
  1711.            file name. 
  1712.  
  1713.  -m        Selects monochrome mode for users with monochrome monitors. 
  1714.            Normally, monochrome mode is automatically selected. However, if you 
  1715.            receive a blank screen on a monochrome monitor, press ESC to exit 
  1716.            and restart using this option. 
  1717.  
  1718.  -u        Run in unattended mode. Normally HpfsOpt waits for a keystroke 
  1719.            before terminating to give you time to examine the files which were 
  1720.            optimized. This switch will cause termination immediately without 
  1721.            user input. This option is useful when running off hours or as a 
  1722.            background task. 
  1723.  
  1724.  The HPFS Optimizer may be safely executed while other processes are executing 
  1725.  on your OS/2 system, even if the other processes update the same HPFS volume. 
  1726.  Files which are in use, however, will not be defragmented. Once optimization 
  1727.  has began, you may terminate the operation by pressing ESC. Care should be 
  1728.  taken not to otherwise terminate the optimizer such as via Ctrl-C, Ctrl-Break, 
  1729.  or the Workplace Shell. 
  1730.  
  1731.  The HPFS Optimizer will not attempt to defragment any file which has an 
  1732.  attribute of READ ONLY, HIDDEN, or SYSTEM. If you wish the optimizer to 
  1733.  operate on a file with these attributes you must change the file's attribute 
  1734.  before executing the optimizer. You may do this using the GammaTech Files 
  1735.  utility or the OS/2 Attrib command. 
  1736.  
  1737.  The ARCHIVED file attribute is often used to tell your backup software which 
  1738.  files have changed since the last backup. So as not to interfere with the 
  1739.  efficient use of your backup software, the HPFS Optimizer leaves the ARCHIVED 
  1740.  attribute set to the same value as that of the original fragmented file. 
  1741.  
  1742.  Example: HPFSOPT -o3 -l report.dat 
  1743.  
  1744.  This example will optimize the HPFS volume on the default drive by 
  1745.  defragmenting all files which contain more than 3 extents. A log is written to 
  1746.  the file "report.dat". 
  1747.  
  1748.  For the optimizer to run properly there must be free space available on the 
  1749.  HPFS volume. A full or near full volume will prevent the optimizer from 
  1750.  running effectively. For maximum performance, there should be at least 512,000 
  1751.  bytes plus the length of the largest file selected for optimization. If your 
  1752.  volume does not meet this criteria, you may wish to offload some of the files 
  1753.  to another volume before running the optimizer. 
  1754.  
  1755.  
  1756. ΓòÉΓòÉΓòÉ 8.10. LD - List Directory Utility ΓòÉΓòÉΓòÉ
  1757.  
  1758. The List Directory Utility is an enhanced DIR command.  The display output from 
  1759. LD may be customized to meet your needs.  In addition, you may add comments to 
  1760. your files and they will be displayed when you list them with LD. 
  1761.  
  1762. LD supports international date and time formats. The format to be used is 
  1763. extracted from the OS/2 configuration. 
  1764.  
  1765. Command Syntax: 
  1766.  
  1767. LD [filespec] [options] [COM comments] 
  1768.  
  1769. The "filespec" operand specifies the file or files to be processed. It may 
  1770. contain a drive letter followed by a colon and a directory path.  The file name 
  1771. may contain the * and ? wild card characters. 
  1772.  
  1773. The "options" values are shown in the table below.  You may type the option 
  1774. letters in either upper or lower case.  The option should be preceded by a "+" 
  1775. to set the option on or a "-" to set the option off. Alternatively you may use 
  1776. "/" in place of "+" to activate an option. If an option is not specified or 
  1777. overridden it will be set according to the default setting shown in the table. 
  1778.  
  1779. Option 
  1780.  
  1781.   - AU     Deactivate autopage feature. (Allows type ahead.) 
  1782.   + DA     Display standard attribute settings. 
  1783.   + DB     Display directories first, then files. 
  1784.   + DC     Display comments. 
  1785.   - DD     Display directories only. 
  1786.   - DE     Display extended attributes size. 
  1787.   - DF     Display files only. 
  1788.   + DH     Display hidden files. 
  1789.   - DL     Display value of .LONGNAME extended attributes if present. 
  1790.   - DS     Include subdirectories. Ignored with /D2 or /D4. 
  1791.   - DT     Display all file timestamps. 
  1792.   - DU     Use no delimiters in dates and times. 
  1793.   + DV     Display volume information. 
  1794.   - DW     Force comments to be displayed on a new line. 
  1795.   - DX     Display file extents (fragmentation). This option is ignored for FAT 
  1796.            volumes. See notes for LAN Server also. 
  1797.   - DZ     Display file count and total bytes on each directory line. Counts 
  1798.            include all files (*.*) in the directory.  Counts do not include any 
  1799.            lower subdirectory files. 
  1800.   - D2     Display in 2 column mode. See notes below. 
  1801.   - D4     Display in 4 column mode. See notes below. 
  1802.   - EX     If FAT, separate extension from file name. 
  1803.   + GA     Display GammaTech Copyright lines at first of display. 
  1804.   - H      Display help screen and exit. 
  1805.   - LD     Force directory names lower case. 
  1806.   + LF     Force file names lower case. 
  1807.   - P      Page mode. Pauses after each full screen. 
  1808.   - SA     Sort in accessed timestamp order. 
  1809.   - SC     Sort in create timestamp order. 
  1810.   - SE     Sort in file name extension order. 
  1811.   - SM     Sort in modified timestamp order. 
  1812.   + SN     Sort in file name order.  This option is ignored for non-FAT 
  1813.            volumes. 
  1814.   - SS     Sort in file size order. 
  1815.   + UD     Force directory names upper case. 
  1816.   - UF     Force file names upper case. 
  1817.   - ?      Display help screen and exit. Same as /h. 
  1818.  
  1819.  In the list of options above, a - indicates that the option is off by default 
  1820.  and a + indicates that the option is on by default. 
  1821.  
  1822.  The display from LD can be terminated at any time by pressing ESC. 
  1823.  
  1824.  FAT volumes do not support created or last accessed timestamps. When using the 
  1825.  /DT option to display all timestamps of files on FAT volumes, the created and 
  1826.  last accessed timestamps will be equal to the last modified timestamp. 
  1827.  
  1828.  The "COM" operand is used to add or remove comments to the file.  If comments 
  1829.  have been added to a file they will be listed automatically when you display 
  1830.  the file provided the +DC option is selected.  To add or change a comment, 
  1831.  type "com" at the end of the command line followed by your comment.  The 
  1832.  comment may be up to 78 characters long.  To delete a comment, type "com" as 
  1833.  the last thing on the command line. 
  1834.  
  1835.  Comments may also be added to directories using the COM parameter. LD ABC will 
  1836.  list the contents of directory ABC but LD ABC COM ... will add/delete comments 
  1837.  for directory ABC. Comments may be added to directories only if the exact path 
  1838.  name is specified, i.e. no wild card characters. 
  1839.  
  1840.  The D2 and D4 column mode force page mode on. If file names are too long they 
  1841.  will be truncated on the display. 4 column mode displays only the file name. 2 
  1842.  column mode displays the file name, file size, and modified date and time 
  1843.  values. 
  1844.  
  1845.  LD may be configured by using an environment variable. You may set this 
  1846.  variable temporarily for each screen group by using the OS/2 SET command. You 
  1847.  may set it permanently for all screen groups by adding it to your config.sys 
  1848.  file. If you change config.sys you will need to reboot to activate the 
  1849.  changes. The format to set the environment variable is shown below: 
  1850.  
  1851.  SET LDEFAULT=+opts-opts 
  1852.  
  1853.  Example:  SET LDEFAULT=+pdf-dv 
  1854.  
  1855.      This example will tell LD to run with page mode active, to display only 
  1856.      file entries, and omit volume statistics. 
  1857.  
  1858.  When LD examines an option to see if it is set, it looks first at the command 
  1859.  line.  If the option was not specified there, it examines the environment 
  1860.  variable.  If the option is not there it selects the default setting as 
  1861.  indicated in the table above. 
  1862.  
  1863.  LD supports an autopage feature.  Regardless of the -P option setting, if you 
  1864.  press a key while the display is scrolling, the display will freeze.  To 
  1865.  continue the display, press a key again. Autopage can be disabled, allowing 
  1866.  you to type ahead, via the -AU option. 
  1867.  
  1868.  File comments added or changed with LD are stored in the file's directory as a 
  1869.  .COMMENTS extended attribute.  This is a standard extended attribute supported 
  1870.  by OS/2.  In most cases, adding comments to your file will not cause it to 
  1871.  occupy more space on your HPFS volume.  A small amount of space is reserved 
  1872.  for all files for extended attributes, whether they have extended attributes 
  1873.  or not. Most files do not have extended attributes unless you choose to add 
  1874.  them. 
  1875.  
  1876.  Comments remain with the file even if the file is moved or renamed. The 
  1877.  comments are automatically removed when the file is deleted. 
  1878.  
  1879.  The space a file uses is reported in two ways by LD.  The space allocated for 
  1880.  the files is reported in the volume statistics at the end of the display. 
  1881.  With HPFS, files are always allocated in 512 byte blocks.  Therefore, this 
  1882.  value should always be a multiple of 512. The actual space the file is using, 
  1883.  of the allocated space, is reported next to the file name in the main body of 
  1884.  the display.  This is the reason you cannot add the file sizes to get a total 
  1885.  which matches the allocated total in the volume information section of the 
  1886.  display. 
  1887.  
  1888.  Example: 
  1889.  
  1890.  LD myfile.dat com this file belongs to me 
  1891.  
  1892.      This example adds, or changes an existing comment for the file 
  1893.      "myfile.dat".  The new comment "this file belongs to me" can be displayed 
  1894.      in future LD displays. 
  1895.  
  1896.  Example:  LD myfile.dat com 
  1897.  
  1898.      This example deletes the comment added in the previous example. 
  1899.  
  1900.  Example:  LD *.dat  +pdedf -dv 
  1901.  
  1902.      This example will display all files in the current directory with an 
  1903.      extension of "dat".  The display will pause when the screen is full. Only 
  1904.      files will be listed.  The size of any extended attributes will be shown 
  1905.      in the display.  Volume information will not be displayed. 
  1906.  
  1907.  Example:  LD A:*.* 
  1908.  
  1909.      This example shows you that LD will work with FAT volumes. 
  1910.  
  1911.  If the volume is FAT based, the directory is automatically sorted by file name 
  1912.  unless the -DN option is entered. 
  1913.  
  1914.  LAN Server Users:  The List Directory Utility will display and manipulate 
  1915.  comments on only those files for which the user has access privileges. The /DX 
  1916.  option is ignored without administrative privileges. 
  1917.  
  1918.  
  1919. ΓòÉΓòÉΓòÉ 8.11. MkPath - Make Directory Path ΓòÉΓòÉΓòÉ
  1920.  
  1921. The MkPath Utility will create a multi-level path in one command execution. 
  1922.  
  1923. Syntax: 
  1924.  
  1925. MKPATH [-?] [drive:]path 
  1926.  
  1927. The -? switch displays command syntax. 
  1928.  
  1929. If some of the directories in the path exist, MkPath will create those which do 
  1930. not exist. 
  1931.  
  1932. Example:  MKPATH D:\WILSON\ACCOUNTS\DATA 
  1933.  
  1934.  
  1935. ΓòÉΓòÉΓòÉ 8.12. ReBoot - Reboot the system ΓòÉΓòÉΓòÉ
  1936.  
  1937. In its simplest form, the ReBoot Utility is functionally equivalent to 
  1938. performing a Ctrl-Alt-Delete key sequence. Options are provided to notify 
  1939. Presentation Manager applications to save their settings and to close them. 
  1940. ReBoot may be executed from an OS/2 command line prompt, command files or the 
  1941. alarms productivity aid utility. 
  1942.  
  1943. Syntax:  REBOOT [-?] [-y] [-s] [-q] 
  1944.  
  1945. The -? switch displays command syntax. 
  1946.  
  1947. The -y switch performs a file system shutdown and reboot. It is functionally 
  1948. equivalent to performing a Ctrl-Alt-Delete sequence. 
  1949.  
  1950. The -s switch notifies all active Presentation Manager applications to save 
  1951. their settings and then performs a file system shutdown and reboot. 
  1952.  
  1953. The -q switch notifies all active Presentation Manager applications to save 
  1954. their settings. It then notifies all active Presentation Manager applications 
  1955. to shut down and then performs a file system shutdown and reboot. 
  1956.  
  1957. One and only one of the above options are required. Otherwise the command 
  1958. syntax is displayed and no reboot takes place. 
  1959.  
  1960. When ReBoot is used, the file systems are shut down normally. Some executing 
  1961. programs may not be terminated normally. Some application programs may lose 
  1962. data if they are not shut down properly. You should therefore use caution when 
  1963. using this utility.  Some desktop settings may be lost if changes were made 
  1964. since the last boot. These same statements apply if you manually execute the 
  1965. Ctrl-Alt-Delete key sequence. 
  1966.  
  1967.  
  1968. ΓòÉΓòÉΓòÉ 8.13. SEdit - Sector Editor ΓòÉΓòÉΓòÉ
  1969.  
  1970. The Sector Editor is an extremely powerful sector level editor. It allows 
  1971. access to physical and logical volumes at the sector level. It can operate 
  1972. independent of the file system format and will allow access to floppy disk as 
  1973. well as hard disk drives. 
  1974.  
  1975. Warning: Editing physical and logical disk sectors can result in complete loss 
  1976. of data on your disk drive. The edit capabilities should be exercised by those 
  1977. who have adequate technical knowledge of the associated file system format to 
  1978. understand the consequences of the changes they are making to the file system. 
  1979.  
  1980. You may start the Sector Editor from the icon or from an OS/2 command line 
  1981. prompt. When using the command line option you may select certain options from 
  1982. the list below. You may set any of these options for the icon object by placing 
  1983. them in the Parameters field of the Setting notebook page for the program 
  1984. object icon. 
  1985.  
  1986. Command Syntax: SEDIT d: [-?] [-m] [-z] 
  1987.  
  1988.   d:       The drive to be operated on. It may be a logical drive (C:, D:, 
  1989.            etc.) or it may be a physical drive (1:, 2:, etc.) 
  1990.  
  1991.   -?       Displays the command syntax at the command line. 
  1992.  
  1993.   -m       Selects monochrome monitor mode. Monochrome monitors should be 
  1994.            automatically detected. If for some reason detection of your 
  1995.            monochrome monitor is not detected and you get a  blank screen, 
  1996.            select this option. 
  1997.  
  1998.   -z       Initially disables the Auto Sector format feature. See below for a 
  1999.            description of this feature. Auto Format may be activated or 
  2000.            deactivated manually once the editor has started regardless of this 
  2001.            option on the command line. By default, Auto Sector Formatting is 
  2002.            enabled at startup. 
  2003.  
  2004.  A complete list of keys and commands are presented later in this section. 
  2005.  There are several special features supported by the editor worth pointing out: 
  2006.  
  2007.  Most editor commands may be executed one of two ways. By pressing the ESC key 
  2008.  a menu of commands is displayed. The customer may then select the operation 
  2009.  they desire from the menu. All commands have a hotkey combination and can be 
  2010.  executed using the hotkey. The hot keys are displayed on the selection menu, 
  2011.  the online help (F1) and in this document below. 
  2012.  
  2013.  The Sector Editor has a feature called Auto Sector Formatting. This feature 
  2014.  attempts to identify the type of file system structure for the sector being 
  2015.  displayed. If it is able to identify the sector, it will display it in a 
  2016.  format specific to the type of structure. For example, the HPFS Super Block 
  2017.  will be displayed in a formatted and more readable form. If the sector cannot 
  2018.  be identified, it will be displayed in a raw sector format. The Auto Sector 
  2019.  Format feature can be toggled on or off at any time using the ALT-Z command. 
  2020.  
  2021.  A command is provided (ALT-D) which allows the customer to format any sector 
  2022.  "as if it were" a specific type of file system structure. For example, one 
  2023.  might request a sector to be formatted as if it were an HPFS Super Block. 
  2024.  
  2025.  There are several ways to select a desired sector or cluster to be displayed. 
  2026.  Using the ALT-S or ALT-C commands the customer can enter the actual sector or 
  2027.  cluster number to be displayed. Note that all sector and cluster numbers are 
  2028.  in hexadecimal. In addition all sector numbers are logical sectors numbers. 
  2029.  Sector number 0 is the first sector on the disk, 1 is the second, etc.  The 
  2030.  sector can be adjusted forward or backward one sector at a time using the PGUP 
  2031.  and PGDN keys. Also a sector or cluster number which is displayed on the 
  2032.  screen as part of a sector display can be jumped to directly by positioning 
  2033.  the cursor under the value and pressing the ENTER key. 
  2034.  
  2035.  Features are present to locate a file (ALT-F) or to locate data in ASCII or 
  2036.  hexadecimal (ALT-L). 
  2037.  
  2038.  One or more sectors may be printed (ALT-P), written to an external file 
  2039.  (ALT-W) and replaced from an external file (ALT-R). 
  2040.  
  2041.  The BIOS Parameter Block for the drive can be displayed (ALT-B). 
  2042.  
  2043.  As you are working with a disk, you may wish to save the sector number of one 
  2044.  or more sectors so that you may return to those sectors later. The provision 
  2045.  is provided to save up to 7 sector numbers in slots by using the ALT-Fx 
  2046.  command where Fx is one of the function keys F2 through F8. The sector numbers 
  2047.  thus saved can be recalled and immediately displayed by pressing the related 
  2048.  Fx key. For example, to save the current sector number you might press ALT-F4 
  2049.  and to display that sector again at a later time you would press F4. Note that 
  2050.  the Find File feature may store sector numbers for you automatically in the F2 
  2051.  and F3 entries. See the Find Files command (ALT-F) below for additional 
  2052.  information. 
  2053.  
  2054.  For HPFS volumes, the checksum values for the Super and Spare blocks can be 
  2055.  automatically updated using the ALT-X command. 
  2056.  
  2057.  Note that when raw sectors are displayed on a standard 25x80 window or full 
  2058.  screen, only half of a 512 byte sector will be displayed. You may scroll 
  2059.  between the two halves using the HOME and END keys. If you have a high 
  2060.  resolution monitor, you may configure the screen so that the entire sector 
  2061.  will be displayed. To do this, enter the following OS/2 command prior to 
  2062.  starting the Sector Editor: MODE CO80,41 
  2063.  
  2064.  When editing data within sectors, keep in mind that all data is altered by 
  2065.  overtyping. Since sectors are fixed in length, data cannot be "inserted" or 
  2066.  "deleted". 
  2067.  
  2068.  The Sector Editor contains a partition table edit feature. To use this feature 
  2069.  select the physical drive (i.e. 1:) with autoformat enabled. The partition 
  2070.  table will be displayed in a formatted manner. Press ALT-E to enter edit mode. 
  2071.  You may now edit the formatted partition table information. 
  2072.  
  2073.  The complete list of key functions and commands is shown below: 
  2074.  
  2075.   ESC      Call up Menu: - Pressing ESC will present the command option menu. 
  2076.            From it you may terminate the editor or select one of several 
  2077.            commands to perform. The commands listed in the menu have hot key 
  2078.            definitions beside them. You may execute the command using the hot 
  2079.            key without accessing the command menu. There are a few commands not 
  2080.            found on the menu. However, all commands are listed in the following 
  2081.            list. 
  2082.  
  2083.   TAB      Toggle between Hex/Ascii in unformatted mode: - When displaying 
  2084.            sectors in the unformatted mode, you may edit the data in hex or 
  2085.            ASCII. After entering edit mode (ALT-E) you may toggle between the 
  2086.            Hex display area and the ASCII display area using the TAB key. At 
  2087.            other times, the TAB key operates as the same as a Right Arrow key. 
  2088.  
  2089.   UP       Cursor Positioning: - These keys are used for cursor positioning and 
  2090.            edit operations among the various fields on the display. These keys 
  2091.            do not generally scroll the text displayed except on the Help 
  2092.            display. 
  2093.  
  2094.   DOWN     See UP. 
  2095.  
  2096.   LEFT     See UP. 
  2097.  
  2098.   RIGHT    See UP. 
  2099.  
  2100.   HOME     Scroll Text: - These keys are used to scroll text when more data in 
  2101.            a sector is present than will fit on the screen. For instance, with 
  2102.            the window in 25x80 mode only 256 of the 512 bytes of a unformatted 
  2103.            sector will fit on the screen. To view the last 256 bytes, press 
  2104.            END. To move back to the first 256 bytes press HOME. 
  2105.  
  2106.   END      See HOME. 
  2107.  
  2108.   PGUP     Read Preceding Sector: - The Page Up key decrements the current 
  2109.            sector by 1. Pressing this key while in edit mode will cause any 
  2110.            changes to the current sector to be written to the disk before 
  2111.            moving to the new sector. The sector number cannot be decremented to 
  2112.            a value less than 0. 
  2113.  
  2114.   PGDN     Read Next Sector: - The Page Down key increments the current sector 
  2115.            by 1. Pressing this key while in edit mode will cause any changes to 
  2116.            the current sector to be written to the disk before moving to the 
  2117.            new sector. 
  2118.  
  2119.   Enter    Jump to Sector / Cluster: - Pressing Enter will take the value at 
  2120.            the cursor location and use it to jump to a new sector if such 
  2121.            action seems reasonable. In unformatted mode, the value at the 
  2122.            cursor location is treated as a 32 bit logical sector number unless 
  2123.            the volume format has been identified as FAT, in which case it is 
  2124.            treated as a 16 bit cluster number. In formatted mode, 32 bit values 
  2125.            are treated as logical sector numbers and if the volume is 
  2126.            identified as FAT, 16 bit values are treated as cluster numbers.  If 
  2127.            a new sector is determined and you are in edit mode, any changes to 
  2128.            the current sector will be written to disk before moving to the new 
  2129.            sector. 
  2130.  
  2131.   ALT-B    Display BPB: - This command displays the BIOS Parameter Block for 
  2132.            the volume as determined when the volume was opened by the editor. 
  2133.  
  2134.   ALT-C    Go to cluster: - This command is only valid if the volume has been 
  2135.            identified as a FAT volume. When the command is entered, the cursor 
  2136.            will jump to the status area where you may enter a cluster number. 
  2137.            The cluster is then converted to a sector value and the new sector 
  2138.            is read. If you are in edit mode at the time you enter this command, 
  2139.            any changes to the current sector will be written to disk before 
  2140.            moving to the new sector. 
  2141.  
  2142.   ALT-D    Format sector as ...: - With auto formatting active, known 
  2143.            structures are displayed in a formatted fashion. When auto 
  2144.            formatting is turned off sectors are displayed in a raw format (see 
  2145.            the ALT-Z command.) In either case if you wish to view a sector as 
  2146.            if it were a specific structure you may use this command to display 
  2147.            a menu of supported structures. Selecting one of the choices 
  2148.            displayed will format the sector as if it were the desired structure 
  2149.            type. Obviously if the sector data does not match the desired 
  2150.            format, the fields will not make sense. 
  2151.  
  2152.   ALT-E    Toggle edit mode: - This command toggles Edit Mode on or off. 
  2153.            WARNING: Edit mode allows you to alter sectors of your disk. 
  2154.            Altering the disk structures can result in SUBSTANTIAL DATA LOSS. 
  2155.            When activating edit mode, the EDIT status bar will appear in the 
  2156.            status area. Overtyping data will be buffered for the current 
  2157.            sector. Any command which causes a different sector to be displayed 
  2158.            will cause the changes to the current sector to be written to disk. 
  2159.            Exiting edit mode also causes the changes to be written as well as 
  2160.            exiting the editor with changes pending. Once the alteration has 
  2161.            been written you must reedit it to change it back. However, if you 
  2162.            wish to reverse changes to the current sector and it has not yet 
  2163.            been written, you may use the undo command (ALT-U) to undo the 
  2164.            changes. 
  2165.  
  2166.   ALT-F    Find a file: - If the volume has been identified as FAT or HPFS 
  2167.            format, you may use this command to locate a file on the volume via 
  2168.            the directory tree.  If the file is located, the directory block 
  2169.            containing the file directory entry will be stowed in the F2 stack 
  2170.            (you may call it up by pressing F2, see the Fx and ALT-Fx commands 
  2171.            below) and the first data sector will be displayed. If the volume is 
  2172.            HPFS, the F-Node sector will be stowed in the F3 stack entry.  Note 
  2173.            that pending edit changes will be written to disk when this command 
  2174.            is used. 
  2175.  
  2176.   ALT-L    Find data (Hex or Ascii) - Use this command to search for data on 
  2177.            the volume.  The search begins at the current sector plus one and 
  2178.            continues until the data is located, the end of the volume is 
  2179.            reached, or you terminate the search with the ESC key. Either ASCII 
  2180.            or hex data can be used in the search. If hex data is to be used, 
  2181.            prefix the value with 0x. i.e. 0xabcd to search for hex abcd. This 
  2182.            command always writes pending changes to disk if in edit mode. 
  2183.  
  2184.   ALT-P    Print sector(s): - This command will print one or more sectors 
  2185.            starting with the current sector displayed in the status area. You 
  2186.            will be presented with a dialog to enter the number of sectors to 
  2187.            print (default is 1) and the port to use for printing (default is 
  2188.            LPT1). Sectors are always printed in the unformatted (hex and Ascii) 
  2189.            format, one sector per page. The port name can be replaced with a 
  2190.            short file name also provided it is 10 or less characters. If you 
  2191.            are in edit mode when issuing this command, any pending changes to 
  2192.            the sector are written to disk before the sector(s) are printed. 
  2193.  
  2194.   ALT-R    Replace sectors from a file: - You must be in edit mode for this 
  2195.            command to function.  A dialog will be presented for a input file 
  2196.            name and the number of sectors to read. You may select all sectors 
  2197.            from the file. The sectors will be read from the file REPLACING 
  2198.            sectors on your disk beginning with the current sector displayed in 
  2199.            the status area.  EXTREME caution should be exercised when using 
  2200.            this command.  It can cause SIGNIFICANT DATA LOSS. 
  2201.  
  2202.   ALT-S    Go to sector: - When this command is entered, the cursor will jump 
  2203.            to the status area where you may enter a sector number and this new 
  2204.            sector is read. If you are in edit mode at the time you enter this 
  2205.            command, any changes to the current sector will be written to disk 
  2206.            before moving to the new sector. 
  2207.  
  2208.   ALT-U    Undo edit changes to current sector: - Providing you are still in 
  2209.            edit mode, any changes to the current sector may be undone by 
  2210.            entering this command. 
  2211.  
  2212.   ALT-W    Write sector(s) to a file: - This command presents a dialog where a 
  2213.            output file may be specified and a count of sectors to write. The 
  2214.            number of sectors specified (default 1) starting with the current 
  2215.            sector displayed in the status area, will be written to the file. If 
  2216.            the output file exists, it will be appended to. There is no limit to 
  2217.            the number of sectors that can be written except the operation will 
  2218.            stop when the number of sectors specified is reached, the end of the 
  2219.            volume is reached, or the output file exhausts the space on it's 
  2220.            volume. If you are in edit mode when issuing this command, any 
  2221.            pending changes to the current sector are written to disk before the 
  2222.            sector(s) are written to the file. 
  2223.  
  2224.   ALT-X    This command will update the HPFS checksum values in the HPFS Spare 
  2225.            Block providing that 1) you are in edit mode, 2) the current sector 
  2226.            is a valid Spare block, and 3) the immediately preceding sector is a 
  2227.            valid HPFS Super Block. This command is useful to adjust the 
  2228.            checksums for a HPFS volume to a stable state after making changes 
  2229.            to the Super or Spare blocks. This same function can be performed by 
  2230.            running chkdsk on the volume after editing. Note:  this command also 
  2231.            sets the dirty flag to zero. 
  2232.  
  2233.   ALT-Z    Toggle auto sector formatting: - When auto sector formatting is 
  2234.            enabled (the default) and a sector is read which can be identified, 
  2235.            the sector will be displayed in a formatted fashion. If the sector 
  2236.            cannot be identified, it will be displayed in a raw format. You may 
  2237.            enable or disable this feature at any time using the ALT-Z command. 
  2238.  
  2239.   ALT-Fx   Save sector number: - The current sector number may be saved in a 
  2240.            recall stack making it easier to return to that sector at a later 
  2241.            time. To save the current sector number press ALT-Fx where x is 2-8. 
  2242.            You may return to that sector by pressing Fx where x is the same 
  2243.            value you used in the ALT-Fx command. i.e. to save the current 
  2244.            sector you might press ALT-F5. To later recall that same sector 
  2245.            press F5. Note that F2 and F3 are used by the ALT-F (Find File) 
  2246.            command. 
  2247.  
  2248.   Fx       Recall sector: - Recall a saved sector number. See the ALT-Fx 
  2249.            command. 
  2250.  
  2251.  
  2252. ΓòÉΓòÉΓòÉ 8.14. Where - Where Utility ΓòÉΓòÉΓòÉ
  2253.  
  2254. The Where utility will locate "lost" or duplicate files on your hard drive.  It 
  2255. will function on HPFS or FAT volumes and supports long file names. Hidden and 
  2256. System files are included in the search. 
  2257.  
  2258. Command Syntax:  WHERE [-?] [drive:][path]filespec [A/M/C GT/GE/LT/LE/EQ 
  2259. mm/dd/yy [hh:mm]] [COM pattern] [TXT pattern] 
  2260.  
  2261. The -? operand displays command syntax. 
  2262.  
  2263. The "drive:" operand specifies the drive to be searched. If not specified, the 
  2264. default drive is assumed. 
  2265.  
  2266. The "path" operand specifies the directory where the search is to begin. If not 
  2267. specified, the default directory is assumed. To start the search from the root 
  2268. directory when the root directory is not the default directory, specify a path 
  2269. of "\". 
  2270.  
  2271. The "filespec" operand specifies the file or files to be processed.  The file 
  2272. name may contain the * and ? wild card characters. 
  2273.  
  2274. The search for files can be limited by comparing any one of the date/time 
  2275. values to a value you supply. A/M/C indicates which date you wish to compare 
  2276. with: A-Accessed M-Modified C-Create. The next operand after A/M/C should be GT 
  2277. for Greater Than; GE for Greater or Equal to; LT for Less Than; LE for Less 
  2278. Than or Equal to; or EQ for Equal to. Then follows the date and optionally the 
  2279. time. The format of the date and time is determined by the country 
  2280. configuration as defined in OS/2. For U.S. customers it is mm-dd-yy hh:mm. The 
  2281. actual delimeters are ignored. For other countries the order of the date fields 
  2282. may be different, but consistent with your OS/2 configuration. 
  2283.  
  2284. The search for files can be limited by comparing any file comments added with 
  2285. LD or the Drives icon to a specified pattern. This is indicated by specifying 
  2286. the COM option. If the comment pattern contains spaces the pattern must be 
  2287. enclosed in double quotes.  The comparison is not case sensitive. Searching for 
  2288. comments takes considerably more time and it is recommended that you limit the 
  2289. search with the filespec when possible. 
  2290.  
  2291. The search for files can be limited by comparing the file data with a text 
  2292. pattern. If the specific pattern appears in the file, it will be displayed. 
  2293. This is indicated by specifying the TXT option.  If the pattern contains spaces 
  2294. it must be enclosed in double quotes.  The comparison is not case sensitive. 
  2295. The TXT option takes considerably more time and it is recommended that you 
  2296. limit the search with the filespec when possible. 
  2297.  
  2298. The display consists of the file size, attributes, last modified date and time, 
  2299. the file path and file name. 
  2300.  
  2301. Example:  WHERE \*.txt 
  2302.  
  2303. This example will locate all files on the volume with a "txt" extension and 
  2304. display their location. 
  2305.  
  2306. Example:  WHERE *.exe m ge 05/15/91 
  2307.  
  2308. This example will locate all exe files in the current directory and its 
  2309. subdirectories and which have been modified on or after May 15, 1991. 
  2310.  
  2311. Example:  WHERE \util\*.* com special data 
  2312.  
  2313. This example will locate all files which have the text "special data" in their 
  2314. comment field and which reside in the "util" directory or one of its 
  2315. subdirectories. 
  2316.  
  2317. Example:  WHERE *.* c lt 02/12/91 com february 
  2318.  
  2319. This example will locate all files which have the text "february" in their 
  2320. comment field and were created on or before February 12, 1991. The search 
  2321. begins in the current directory and includes its subdirectories. 
  2322.  
  2323. LAN Server Users:  The Where Utility will display only those files for which 
  2324. the user has access privileges. 
  2325.  
  2326.  
  2327. ΓòÉΓòÉΓòÉ 8.15. WipeFree - Wipe Freespace ΓòÉΓòÉΓòÉ
  2328.  
  2329. The WipeFree utility may be used to overwrite all freespace on a disk volume. 
  2330. The normal wipe operation writes binary zeroes to all free sectors. An option 
  2331. is provided to overwrite the free space in accordance with Department of 
  2332. Defense specifications. 
  2333.  
  2334. Command Syntax:  WipeFree [-?] drive: [-g] 
  2335.  
  2336. The -? operand displays command syntax. 
  2337.  
  2338. The "drive:" operand specifies the drive to be wiped. 
  2339.  
  2340. The -g option indicates that the obliteration of freespace should be done in 
  2341. accordance with Department of Defense specifications which require that the 
  2342. file be overwritten with four passes of zeros followed by ones, one pass 
  2343. writing a random value, and verification of the last write. 
  2344.  
  2345.  
  2346. ΓòÉΓòÉΓòÉ 9. Special Considerations ΓòÉΓòÉΓòÉ
  2347.  
  2348. In secured LAN environments, and when executing utilities on remote LAN drives, 
  2349. the customer must have the appropriate access permissions to the LAN drive 
  2350. prior to executing the utility. For example, if you are deleting files from a 
  2351. LAN drive, you must have delete access privileges for that LAN drive or the 
  2352. operation will fail. 
  2353.  
  2354. Some features and functions of the GammaTech Utilities operate using low level 
  2355. I/O functions on disk volumes. Generally, these low level functions are not 
  2356. supported on remote LAN drives. For example, the WipeFree utility which is used 
  2357. to clear freespace on a volume will not run against a remote LAN drive. Volume 
  2358. I/O functions may be executed only on drives which are local to the system on 
  2359. which they are executed. 
  2360.  
  2361. Several of the GammaTech Utility programs access disks at the volume level (as 
  2362. opposed to the file level). Depending on the type of disk and its size, these 
  2363. utilities use different I/O routines to read from and write to the volume. 
  2364. Special attention is given to large HPFS volumes (greater than 2 gigabytes) and 
  2365. the drivers in use. 
  2366.  
  2367. If you are experiencing I/O related problems using the utilities shown below, 
  2368. you may force these utilities to use an alternate set of I/O routines. The 
  2369. alternate I/O routines are somewhat slower from a performance perspective but 
  2370. may work in those environments where the normal I/O routines are failing. The 
  2371. alternate I/O routines are forced into use by specifying the -i option when 
  2372. executing the utility. 
  2373.  
  2374. The following utilities support the Alternate I/O option (-i) as command line 
  2375. switches or in the case of Presentation Manager applications, in the Parameters 
  2376. entry field of the Settings notebook page. 
  2377.  
  2378.        Analyze 
  2379.        DiskMap 
  2380.        FatOpt 
  2381.        FatSort 
  2382.        GtDisk 
  2383.        HpfsOpt 
  2384.        Optimize 
  2385.        SEdit 
  2386.        Sentry 
  2387.        UnDelete 
  2388.        WipeFree 
  2389.  
  2390.  
  2391. ΓòÉΓòÉΓòÉ 10. Trademark Acknowledgments ΓòÉΓòÉΓòÉ
  2392.  
  2393. The following terms are registered trademarks of International Business 
  2394. Machines Corporation and/or MicroSoft Corporation: 
  2395.  
  2396.        HPFS386 
  2397.        IBM 
  2398.        LAN Server 
  2399.        LAN Manager 
  2400.        OS/2 
  2401.        Presentation Manager 
  2402.        Windows 
  2403.  
  2404.  GammaTech is a trademark of GammaTech, Inc.