home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 36 Tips / 36-Tips.zip / oscwpdes.txt < prev    next >
Text File  |  1996-11-13  |  22KB  |  585 lines

  1. OSCWPDES - OS/2 WARP DESKTOP PROBLEMS AND RECOVERING USER INI FILES
  2. 02/02/96
  3.  
  4. =======================================================================
  5.        OS/2 Warp Desktop Problems and Recovering User INI Files
  6. =======================================================================
  7.  
  8. Please Read Entire Document for Full Explanation of Procedures
  9. --------------------------------------------------------------
  10.  
  11. DESCRIPTION
  12.  
  13. Various OS/2 Warp Desktop Problems and Recovery
  14.  
  15. RESOLUTION
  16.  
  17. Note: Make sure you have a backup of any file you intend to change.
  18.  
  19. Desktop Problems
  20. ----------------
  21. Following are some problems you might have with the Desktop after 
  22. installing OS/2 Warp. Solutions are provided.
  23.  
  24.  
  25. The System Stops and the Keyboard and Mouse Do Not Respond
  26. ----------------------------------------------------------
  27. 1. Press Ctrl+Esc or Alt+Esc and wait a few seconds to see if the
  28.    system responds.
  29.  
  30. 2. Determine if you can move the mouse but cannot select any object
  31.    when you press mouse button 1.
  32.  
  33. 3. Press the Caps Lock and Num Lock keys to see if their status lights
  34.    come on.
  35.  
  36. 4. Record what you were doing when the system stopped. If any messages
  37.    were displayed on the screen, record the message text and number.
  38.    
  39. 5. Refer to the Service and Support brochure in the OS/2 package for
  40.    instructions about calling for additional help.
  41.  
  42.  
  43. Icons Are Missing 
  44. -----------------
  45. After restarting the system, some of the Desktop icons are missing.
  46.  
  47. Check the documentation for the hard disk and controller card to ensure
  48. their settings are both set for the ASYNCH mode or the SYNCH mode.
  49.  
  50.  
  51. Icons Are Stacked
  52. -----------------
  53. If the objects on the Desktop appear to be stacked on each other, you
  54. can refresh the Desktop:
  55.  
  56. 1. Move the mouse pointer to a blank area of the Desktop; then press
  57.    mouse button 2.
  58.  
  59. 2. Select Refresh from the menu.
  60.  
  61. 3. If the screen goes blank, press Alt+Esc to switch between programs
  62.    and force the "repainting" of the screen.
  63.  
  64.  
  65. DOS and Windows Programs Were Not Added to the Desktop
  66. ------------------------------------------------------
  67. During the installation of OS/2, the existing DOS and Windows programs 
  68. are automatically added to the OS/2 Desktop. However, the Installation 
  69. program might not find all programs; for example, programs on remote 
  70. servers. If this happens, restart the system and run the Add Programs 
  71. to Desktop utility program. Add Programs to Desktop is in the System 
  72. Setup folder, which is in the OS/2 System folder.
  73.  
  74.  
  75. OS/2 2.x Programs Were Not Added to the Desktop
  76. -----------------------------------------------
  77. If you installed OS/2 on a system that already had OS/2 2.x installed, 
  78. and the OS/2 2.x programs were not added to the Desktop, do the 
  79. following:
  80.  
  81. 1. Turn on the computer, or press Ctrl+Alt+Del if it is already on.
  82.    
  83. 2. When a small white box appears in the upper-left corner, press
  84.    Alt+F1.
  85.  
  86. 3. When the Recovery Choices screen appears, press C.
  87.  
  88. 4. Delete the DESKTOP directory.
  89.  
  90. 5. Press Ctrl+Alt+Del to restart the system. The Desktop should be
  91.    re-created.
  92.  
  93. 6. If the problem continues, re-create the INI files as described in
  94.    "Rebuilding Your Desktop" in this document.
  95.  
  96. Note: If you moved program groups off the Desktop and into a folder,
  97.       you should move them back to the Desktop before installing OS/2.
  98.       Otherwise, duplicate icons could appear on the screen. If you try
  99.       to delete these icons, the original icons also will be deleted.
  100.  
  101.  
  102. Desktop Is Blank or Objects Are Missing
  103. -------------------------------------------
  104. If the Desktop is blank, objects are missing, you cannot delete an 
  105. object, or you have another program that involves objects, run the 
  106. CHKDSK (check disk) program until the results indicate there are no 
  107. errors. To run CHKDSK:
  108.  
  109. 1. Insert the Installation Diskette in drive A; then press Ctrl+Alt+Del
  110.    to restart the system.
  111.  
  112. 2. When prompted, remove the Installation Diskette and insert
  113.    Diskette 1.
  114.  
  115. 3. When the Welcome screen appears, press F3 to get to the command
  116.    prompt.
  117.  
  118. 4. Insert Diskette 2; then type CHKDSK x:/F:2 and press Enter (x is the
  119.    drive where OS/2 is installed.)
  120.  
  121.  
  122. Object Cannot be Deleted
  123. ------------------------
  124. If you cannot delete an object:
  125.  
  126. 1. Create a folder.
  127.  
  128. 2. Drag the object you want to delete to the new folder and drop it.
  129.  
  130. 3. Drag the new folder to the Shredder and drop it.
  131.  
  132. If you cannot shred the folder:
  133.  
  134. 1. At an OS/2 command prompt, type CD DESKTOP and press Enter.
  135.  
  136. 2. When the DESKTOP directory opens, type RD directory and press Enter
  137.    (directory is the name of the directory (folder) that you want to
  138.    delete).
  139.  
  140.  
  141. Recovery Procedures
  142. -------------------
  143. The following procedures provide information for recovering from
  144. Desktop problems and system failures, including:
  145.  
  146. * A damaged, unusable, or unstartable Desktop
  147. * An invalid CONFIG.SYS file
  148. * A damaged INI file
  149. * Hard-disk errors
  150. * A forgotten lockup password.
  151.  
  152. Note: Backing up the system regularly might help avoid having to
  153.       re-create files if there is a system failure.
  154.  
  155. If your Desktop becomes damaged, unusable, or unstartable, you can
  156. recover in two ways:
  157.  
  158. * Use the Archive/Recover utility program to restore the Desktop to a
  159.   previously saved state.
  160.   
  161. * Rebuild the existing Desktop
  162.  
  163.  
  164. Recovery Choices Screen
  165. -----------------------
  166. The Recovery Choices screen lets you specify how the system is to 
  167. restart while a restart is in progress. Display the Recovery Choices 
  168. screen during the restart by pressing Alt+F1 when the small white box 
  169. appears in the upper-left corner of the screen. If you want the system 
  170. to display the Recovery Choices screen each time it restarts, select 
  171. Display Recovery Choices At Every System Restart on the Archive page of 
  172. the Desktop Settings notebook.
  173.  
  174. On the Recovery Choices screen, you can:
  175.  
  176. 1. Select the set of archived system files that the system is to use to
  177.    restart.
  178.   
  179. 2. Continue using the originally installed system files to restart, and
  180.    go to a command line.
  181.   
  182. 3. Continue using the original installation files to restart, and reset
  183.    the primary display to VGA.
  184.   
  185. 4. Restart the system using a customized CONFIG.SYS file that you have
  186.    created.
  187.  
  188. Each set of archived files appears on the Recovery Choices screen with 
  189. the date and time the files were archived. The choices are numbered 1, 
  190. 2, 3 or, for the original installation files, X. Select the files that 
  191. you want the system to restart with by pressing 1, 2, 3, or X on the 
  192. keyboard. The system continues to restart using the set of archived 
  193. files represented by the number or character you pressed.
  194.  
  195. To go to a command line without changing the system files, press C. To 
  196. reset the primary display to VGA, press V.
  197.  
  198. The character keys are not case-sensitive.
  199.  
  200. To restart the system using a customized version of the CONFIG.SYS 
  201. file, type an alphabetic character that corresponds to the name of a 
  202. CONFIG.SYS file that you created.
  203.  
  204.  
  205. Recovering Archived System Files
  206. --------------------------------
  207. OS/2 can archive key system files as well as the DESKTOP directory each
  208. time you start OS/2. The default setting for this feature is OFF. (The 
  209. Archive function can be turned ON by using the Archive page of the 
  210. Desktop Settings notebook.)
  211.  
  212. When the Archive function is turned ON, the state of the key system 
  213. files and Desktop are saved as they existed the last three time OS/2 
  214. was started. Each time you restart OS/2, the oldest set of archived 
  215. system files is deleted, and the current system files are saved. OS/2 
  216. also keeps a permanent archive of the Desktop and key files as they 
  217. existed when OS/2 was first installed, so you can always restore the 
  218. system to its original state.
  219.  
  220. Symptoms
  221.  
  222. * Folders open and close immediately.
  223. * Desktop objects are missing or empty, or multiple objects appear.
  224.  
  225. Shut down and then restart the computer. If this does not fix the 
  226. problem, see "Rebuilding Your Desktop" in this document.
  227.  
  228.  
  229. Using Archived System Files
  230. ---------------------------
  231. 1. Turn on the computer. If it is already on, perform a shutdown; then
  232.    press Ctrl+Alt+Del to restart it.
  233.  
  234. 2. When the small white box appears in the upper-left corner, press
  235.    Alt+F1. A screen listing the three most-recent archives appears. Do
  236.    one of the following:
  237.             
  238.    a. Type the number of the archive you want to use to restore the
  239.       system.
  240.             
  241.    b. Type X to restore the system to its original state (as it was
  242.       when you first installed OS/2).
  243.             
  244.    c. Type C to get an OS/2 command prompt (for example, if you want to
  245.       edit the CONFIG.SYS file).
  246.             
  247.    d. Type V to reset the primary display to VGA (for example, if you
  248.       think your Desktop is not damaged but cannot be seen because you
  249.       need to reinstall your VGA device drivers).
  250.  
  251.  
  252. Creating CONFIG.SYS Files
  253. -------------------------
  254. In some cases, you might need different CONFIG.SYS files to create 
  255. environments specific to the kinds of work you are doing. For example, 
  256. when you use a laptop computer with a docking station, you might want 
  257. two CONFIG.SYS files--one that supports your laptop computer and one 
  258. that supports your desktop computer.
  259.  
  260. You can create different versions of the CONFIG.SYS file and, during 
  261. restart, specify from the Recovery Choices screen which version the 
  262. system should use. You also can customize the Recovery Choices screen 
  263. to display your customized CONFIG.SYS file choices.
  264.  
  265. The following steps describe how to create and use multiple CONFIG.SYS 
  266. files. In these steps, ? is any unique single alphabetic character 
  267. EXCEPT X, x, C, c, V, or v. These steps use C as the root directory. If 
  268. you installed OS/2 on a drive other than C, replace C in the path name 
  269. with the drive letter of the root directory.
  270.  
  271. 1. Save a copy of the current CONFIG.SYS file.
  272.  
  273.    You can copy the current CONFIG.SYS file to either a diskette or to
  274.    the C:\OS\BOOT subdirectory. If you copy the file to C:\OS\BOOT,
  275.    rename it to CONFIG.?. Be sure to make a note of the new name and
  276.    directory so you can restore it later.
  277.  
  278. 2. Type COPY C:CONFIG.SYS  C:\OS2\BOOT\CONFIG.? and press Enter.
  279.    Customize the new file with the modifications that you need.
  280.  
  281. 3. Copy the customized CONFIG.? file to the current CONFIG.SYS file.
  282.  
  283.    There are two ways to copy the CONFIG.? file. You can enter the Copy
  284.    command at the OS/2 command prompt, or you can create an OS/2 batch
  285.    file that runs during restart AFTER the system processes
  286.    C:\CONFIG.SYS.
  287.  
  288.    Replacing Your CONFIG.SYS File with CONFIG.?
  289.    --------------------------------------------
  290.    If you have only one customized CONFIG.? file, or if you do not plan
  291.    to change between CONFIG.SYS and CONFIG.? often, you might choose to
  292.    copy over CONFIG.SYS with the customized CONFIG.? file. Copying over
  293.    C:\CONFIG.SYS with your customized file replaces the default
  294.    CONFIG.SYS file. The command to copy your customized file to the
  295.    current CONFIG.SYS file is:
  296.  
  297.       COPY C:\OS2\BOOT\CONFIG.? C:\CONFIG.SYS
  298.  
  299.    Using your customized CONFIG.? file as the default file lets you
  300.    restart without selecting a CONFIG.? file at the Recovery Choices
  301.    screen.
  302.  
  303.    You can now restart the system. When you restart, the system
  304.    automatically uses the CONFIG.SYS file in the root directory.
  305.  
  306.    Creating a Batch File to Replace CONFIG.SYS with CONFIG.?
  307.    ---------------------------------------------------------
  308.    If you have several customized CONFIG.SYS files, using a batch file
  309.    allows you to specify the CONFIG.? you want to use without entering
  310.    multiple copy commands. You can simply change the ? character in the
  311.    batch file, and enter that character at the Recovery Choices screen.
  312.  
  313.    a. Create a batch file in the C:\OS2\BOOT subdirectory, and name it
  314.       ALTF1?.CMD (? is the character you used in the name of the
  315.       CONFIG.? file).
  316.  
  317.    b. Put the following command in the batch file:
  318.  
  319.          COPY C:\OS2\BOOT\CONFIG.? C:\CONFIG.SYS
  320.  
  321.    c. Press Ctrl+Alt+Del to restart the system. When the small white
  322.       box appears in the upper-left corner, press Alt+F1 to display
  323.       the Recovery Choices screen.
  324.  
  325.    d. At the Recovery Choices screen, press the key for the ? character
  326.       that is in the name of the CONFIG.? file you want to use.
  327.  
  328.    The system continues the restart using the customized CONFIG.? file.
  329.  
  330.    Note: If you enter a character at the Recovery Choices screen for
  331.          which there is no corresponding CONFIG.? or ALTF1?.CMD batch
  332.          file, the system returns to the Recovery Choices screen.
  333.  
  334.    Example:
  335.  
  336.    The following shows how to create a CONFIG.SYS file named CONFIG.A,
  337.    and a batch file to copy it during restart. The system is installed
  338.    on drive C. Before starting, save a copy of the current CONFIG.SYS
  339.    file.
  340.  
  341.    a. Type the following and press Enter to copy the system version of
  342.       CONFIG.SYS into a new file called CONFIG.A:
  343.  
  344.          COPY CONFIG.SYS C:\OS2\BOOT\CONFIG.A
  345.  
  346.    b. Change to the C:\OS2\BOOT directory.
  347.  
  348.    c. Edit CONFIG.A to customize it; then save your changes.
  349.  
  350.    d. Type the following and press Enter to create the file, ALTF1A.CMD:
  351.  
  352.          E ALTF1A.CMD
  353.  
  354.    e. Add the following commands to ALTF1A.CMD and save the changes:
  355.       
  356.          COPY C:\OS2\BOOT\CONFIG.A
  357.          C:\CONFIG.SYS
  358.  
  359.    f. Press Ctrl+Alt+Del to restart the system. When the small white
  360.       box appears in the upper-left corner, press Alt+F1 to display the
  361.       Recovery Choices screen.
  362.  
  363.    g. At the Recovery Choices screen, type A.
  364.  
  365.  
  366. Displaying Your CONFIG.SYS Choice on the Recovery Choices Screen
  367. ----------------------------------------------------------------
  368. You can customize your Recovery Choices screen to display the list of 
  369. customized CONFIG.? files that you created. To customize the Recovery 
  370. Choices screen:
  371.  
  372. 1. Edit the file, C:\OS2\BOOT\ALTF1BOT.SCR. (If you installed OS/2 on a
  373.    drive other than C, specify THAT drive.)
  374.  
  375. 2. Add a line for each CONFIG.? file that you created. Each line should
  376.    include the alphabetic character that identifies that CONFIG.? file. 
  377.  
  378.    You can add up to 6 lines of text to the bottom of this file. You
  379.    might also want to include a brief, one-line description of when to
  380.    use that version of the CONFIG.? file. For example, to display the
  381.    option for the CONFIG.A file on the Recovery Choices screen, add the
  382.    following to the file:
  383.  
  384.       C:\OS2\BOOT\ALTF1BOT.SCR
  385.  
  386.  
  387. Method 1--Rebuilding the Desktop 
  388. --------------------------------
  389. Use this procedure if you do not want to replace both the CONFIG.SYS 
  390. and Desktop. You do NOT lose your customization.
  391.  
  392.   Symptoms
  393.   --------
  394.   * Missing objects in the OS/2 System Folder.
  395.  
  396.   * Missing, empty, or multiple objects on the Desktop.
  397.         
  398.     Note: This problem might exist after performing Recovering Archived
  399.           System Files.
  400.  
  401.   * At the final restart during installation, the system has a
  402.     blank Desktop with or without a clock on the screen.
  403.  
  404.   Procedure
  405.   ---------
  406.   1. Turn on the computer, or press Ctrl+Alt+Del if it is already on.
  407.  
  408.   2. When the small white box appears in the upper-left corner, press
  409.      Alt+F1 to display the Recovery Choices screen.
  410.  
  411.   3. At the Recovery Choices screen, press C.
  412.   
  413.   4. Change to the OS/2 directory; then type the following commands,
  414.      pressing Enter after each:
  415.  
  416.         CD\OS2
  417.         MAKEINI OS2.INI INI.RC
  418.         MAKEINI OS2SYS.INI INISYS.RC
  419.  
  420.   5. Type the following and press Enter after each to delete the hidden
  421.      file, WP?ROOT.?SF:
  422.  
  423.         ATTRIB -h -s -r \WP?ROOT.?SF
  424.         DEL \WP?ROOT.?SF
  425.  
  426.   6. Press Ctrl+Alt+Del to restart the system.
  427.  
  428.  
  429. Method 2--Using Temporary or Dummy INI Files
  430. --------------------------------------------
  431. If you are having Desktop problems and want to determine if the INI 
  432. files are the cause, create temporary INI files (also referred to as 
  433. Dummy INI files).
  434.  
  435. 1. Open an OS/2 Window.
  436.  
  437. 2. At the command prompt, type the following and press Enter after each:
  438.  
  439.       CD\OS2
  440.       MAKEINI OS21.INI INI.RC
  441.       MAKEINI OS2SYS1.INI INISYS.RC
  442.  
  443.    Note: INI file names end with "1."
  444.  
  445. 3. Type CD\ and press Enter.
  446.  
  447. 4. Type E CONFIG.SYS and press Enter to edit the CONFIG.SYS file.
  448.  
  449. 5. Change the following statements near top of the file:
  450.  
  451.       Change: SET USER_INI=C:\OS2\OS2.INI
  452.       To:     SET USER_INI=C:\OS2\OS21.INI
  453.  
  454.       Change: SET SYSTEM_INI=C:\OS2\OS2SYS.INI
  455.       To:     SET SYSTEM_INI=C:\OS2\OS2SYS1.INI
  456.  
  457. 6. Select File, and then Save; then select Close.
  458.  
  459. 7. Shut down and restart the system.
  460.  
  461. If the problem is solved, the INI files were at fault. Edit the 
  462. CONFIG.SYS file and return the statements changed in step 5 to their 
  463. original values; that is, remove the "1" from the file names. Then 
  464. replace the INI files as described under "Recovering the User INI File" 
  465. in the User's Guide to OS/2 Warp.
  466.  
  467. If the problem is NOT solved, the INI files were not at fault.
  468. Something else is causing the problem.
  469.  
  470. If you have video distortion or corruption, you can reset video to VGA:
  471.  
  472. 1. Shut down and then restart your system. If you are unable to shut
  473.    down, press Ctrl+Alt+Del, or turn the computer off, wait a few
  474.    seconds, and then turn it back on.
  475.  
  476. 2. When the small white box appears in the upper-left corner, press
  477.    Alt+F1 to display the Recovery Choices screen.
  478.  
  479. 3. At the Recovery Choices screen, type V. This resets video to VGA.
  480.  
  481. 4. When the process is complete, restart the system.
  482.  
  483. You can set up the system for SVGA if the video adapter supports higher 
  484. resolutions. Contact the vendor of the video card to ensure you have 
  485. the correct and latest drivers, and that the resolution is compatible 
  486. in OS/2. If you have a utility or setup program for your video, follow 
  487. those instructions first.
  488.  
  489.  
  490. Method 3--Recovering the CONFIG.SYS File
  491. ----------------------------------------
  492. The CONFIG.SYS file contains command statements used to set up the 
  493. system during startup. If the file is changed incorrectly, you might 
  494. not be able to restart the system or edit the file. For example, some 
  495. programs write information to the CONFIG.SYS file when they are 
  496. installed. In some cases, this information can cause the CONFIG.SYS 
  497. file to be unusable. To recover the original version of the CONFIG.SYS 
  498. file (as it was created when OS/2 was installed), do the following:
  499.  
  500. 1. Turn on the computer, or press Ctrl+Alt+Del if it is already on.
  501.  
  502. 2. When the small white box appears in the upper-left corner, press
  503.    Alt+F1 to display the Recovery Choices screen.
  504.  
  505. 3. At the Recovery Choices screen, press C.
  506.  
  507. 4. Rename the damaged CONFIG.SYS file. For example, type the following
  508.    and press Enter:
  509.  
  510.       REN CONFIG.SYS CONFIG.BAD
  511.  
  512. 5. Type the following and press Enter to copy the backup copy of the
  513.    CONFIG.SYS file to the root directory of the drive where OS/2 is
  514.    installed. (The CONFIG.SYS backup file was created during OS/2
  515.    installation.)
  516.  
  517.       COPY C:\OS2\INSTALL\CONFIG.SYS C:\CONFIG.SYS
  518.  
  519. 6. Press Ctrl+Alt+Del to restart the system.
  520.  
  521. Note: If you made any changes to the CONFIG.SYS file after the original
  522.       installation, you must edit the newly copied file and add those
  523.       changes.
  524.  
  525.  
  526. Method 4--Recovering the User INI File
  527. --------------------------------------
  528. The OS2.INI file, also referred to as the user INI file, is an
  529. operating-system startup file that contains such system settings as 
  530. program defaults, display options, and file options. The OS2SYS.INI 
  531. file, also referred to as the system INI file, is an operating-system 
  532. file that contains information about installed fonts and printer 
  533. drivers. If you ever receive a message that the OS2.INI file has been 
  534. corrupted, replace both the OS2.INI file and the OS2SYS.INI file on 
  535. the hard disk.
  536.  
  537. Use the following procedure to replace the two files with files
  538. containing default values:
  539.  
  540.  1. Turn on the computer, or press Ctrl+Alt+Del if it is already on.
  541.  
  542.  2. When the small white box appears in the upper-left corner, press
  543.     Alt+F1 to display the Recovery Choices screen.
  544.  
  545.  3. At the Recovery Choices screen, press C.
  546.  
  547.  4. Type CD \OS2 and press Enter.
  548.  
  549.  5. Type ATTRIB -s -h-r OS2*.INI and press Enter.
  550.  
  551.  6. Type REN OS2.INI OS2.OLD and press Enter.
  552.  
  553.  7. Type MAKEINI OS2.INI INI.RC and press Enter.
  554.  
  555.  8. Type REN OS2SYS.INI OS2SYS.OLD and press Enter.
  556.  
  557.  9. Type MAKEINI OS2SYS.INI INISYS.RC and press Enter.
  558.  
  559. 10. Press Ctrl+Alt+Del to restart the system.
  560.  
  561. You can protect the INI files by having them automatically backed up 
  562. each time you start the system. For example, if you include the 
  563. following statements in the CONFIG.SYS file, a backup copy of the 
  564. current INI files, as well as a backup copy of the INI files as they 
  565. existed at the previous system startup, will be made.
  566.  
  567. Note: This example assumes that OS/2 is installed on drive C. Use the
  568.       letter of the drive on which OS/2 is installed.
  569.  
  570.    CALL=C:\OS2\XCOPY.EXE C:\OS2\*.INX C:\OS2\*.INY
  571.    CALL=C:\OS2\XCOPY.EXE C:\OS2\OS2*.INI C:\OS2\*.INX
  572.  
  573. By copying the INI files, you can always recover a recent version of 
  574. these files if the INI file becomes damaged.
  575.  
  576. ______________________________________________________________________
  577. IBM disclaims all warranties, whether express or implied, including 
  578. without limitation, warranties of fitness and merchantability with 
  579. respect to the information in this document. By furnishing this 
  580. document, IBM grants no licenses to any related patents or copyrights.  
  581. Copyright (c) 1994, 1996 IBM Corporation. Any trademarks and product 
  582. or brand names referenced in this document are the property of their 
  583. respective owners. Consult your product manuals for complete trademark 
  584. information. 
  585.