OS2MAKIN - MAKEINI TO RESTORE OR BACK UP THE DESKTOP 01/23/96 ======================================================================= MAKEINI to Restore or Back Up the Desktop ======================================================================= Please Read Entire Document for Full Explanation of Procedures -------------------------------------------------------------- DESCRIPTION This document contains the following instructions: Arranging Icons on the Desktop Special Considerations Prior to Using the MAKEINI Program Using the MAKEINI Program Recovering INI Files--Two Ways to Recover Backing Up, Restoring, and Replacing the Desktop Rebuilding the Existing Desktop ------------- Method 1 Temporary or Dummy INI Restoration ---------- Method 2 Reverting to the Original Desktop ----------- Method 3 Re-Creating the INI Files---------------------Method 4 Restoring the INI on an IBM PS ValuePoint-----Method 5 RESOLUTION Arranging Icons on the Desktop ------------------------------ To arrange icons alphabetically on your Desktop: 1. Click the right mouse button once to display the pop-up menu. 2. Select Arrange. 3. Display the pop-up menu again. 4. Select Refresh; then perform a shutdown: a. Close all applications. b. Display the pop-up menu. c. Select Shutdown; when prompted, select Yes to close applications. If you manually move icons on your Desktop and want them to stay where you placed them: 1. Display the pop-up menu. 2. Select Refresh; then perform a shutdown. This ensures the icons remain where you placed them. Special Considerations Prior to Using the MAKEINI Program --------------------------------------------------------- Note: Read this entire document before selecting the correct procedure for your system. Before running the MAKEINI program, consider the following carefully: * It is recommended that you run CHKDSK to try and recover your hard disk from errors. See "To Run CHKDSK." * If you have one of the following video cards or chip sets, it is recommended that you return to VGA mode: - IBM ValuePoint - ATI - S-3 chip set See "Returning to VGA." * If you have an IBM PS ValuePoint, it is highly recommended that you run MAKEINI as described in "Restoring the INI on an IBM PS/ValuePoint." * For ServicePak 2.11, type ATTRIB OS2*.INI -R and press Enter. If the CSD diskettes do not work correctly, start from the CSD Diskette 1. When prompted for the next diskette, insert Diskette 1 from the installation diskettes. This starts OS/2 2.11. To Run CHKDSK ------------- 1. Perform a shutdown. If you are unable to do so, turn the computer off. 2. Insert the Installation Diskette in drive A. 3. Turn the computer on or press Ctrl+Alt+Del if it is already on. 4. When prompted, remove the Installation Diskette and insert Diskette 1; then press Enter. 5. When the Welcome Screen appears, press Esc to display the A: prompt. 6. Remove Diskette 1 and insert Diskette 2. 7. Type the appropriate CHKDSK command: Note: If you installed the operating system from a CD, the command prompt stops at the CD drive in the DISK_1 subdirectory. Change to the DISK_2 subdirectory by typing x:\OS2SE21\DISK_2 and pressing Enter. (x is the CD ROM drive.) * For FAT file systems, type CHKDSK X: /F and press Enter. * For HPFS, type CHKDSK X: /F:2 and press Enter. Note: If you have any errors, run CHKDSK repeatedly until ALL errors are corrected. If you continue to get the same errors repeatedly, remove the diskette; then press Ctrl+Alt+Del to restart the system. Call OS/2 Technical Support. Returning to VGA Mode --------------------- To return to VGA mode, use the procedures described here. DO NOT use the SETVGA command. 1. Insert the Installation Diskette in drive A. 2. Turn the computer on or press Ctrl+Alt+Del if it is already on. 3. When prompted, remove the Installation Diskette and insert Diskette 1; then press Enter. 4. When the Welcome Screen appears, press Esc to display the command prompt. 5. Go to "Case 1" or "Case 2," as appropriate, and continue. Case 1: You installed OS/2 from diskettes ----------------------------------------- If RSPDSPI.EXE is in the \OS\INSTALL\ directory, type the following and press Enter after each: x: CD x:\OS2\INSTALL RSPDSPI /PK:VGA /SK:NONE /S:a:\ /T:x: where: x is the startup drive where OS/2 2.1 is installed. a is the diskette drive you used to install OS/2. If RSPDSPI.EXE is NOT in the \OS2\INSTALL\ directory: 1. Insert Installation Diskette 8 and unpack RSPDSPI.EXE by typing the following command and pressing Enter: x:\OS2\UNPACK a:\INSTAID x: /N:RSPDSPI.EXE where: x is the startup drive where OS/2 2.1 is installed. a is the drive containing Installation Diskette 8. 2. Type the following, pressing Enter after each: x: CD x:\OS2\INSTALL RSPDSPI /PK:VGA /SK:NONE /S:a:\ /T:x: and press Enter. where a is the diskette drive you used to install OS/2. Case 2: You installed OS/2 from CD-ROM or a LAN ----------------------------------------------- If RSPDSPI.EXE is in the \OS\INSTALL\ directory, type the following and press Enter after each: x: CD x:\OS2\INSTALL RSPDSPI /PK:VGA /SK:NONE /S:e:\OS2SE21\ /T:x: where: x is the startup drive where OS/2 2.1 is installed. e is the CD-ROM or LAN drive. If RSPDSPI.EXE is NOT in \OS2\INSTALL\ directory: 1. Unpack RSPDSPI.EXE by typing the following and pressing Enter: x:\OS2\UNPACK e:\DISK_8\INSTAID x:/N:RSPDSPI.EXE where: x is the startup drive where OS/2 2.1 is installed. e is the CD-ROM or LAN drive. 2. Type the following, pressing Enter after each: x: CD x:\OS2\INSTALL RSPDSPI /PK:VGA /SK:NONE /S:e:\OS2SE21\ /T:x: where: x is the startup drive where OS/2 2.1 is installed. e is the CD-ROM or LAN drive. Using the MAKEINI Program ------------------------- After installation, perform a shut down of your system. When you restart the system, you should make backups of the following files: * CONFIG.SYS * AUTOEXEC.BAT * OS2.INI * OS2SYS.INI * STARTUP.CMD * Any other files you feel are necessary. You can protect your INI files by having them automatically backed up each time you start your system. Add the following statements in your CONFIG.SYS file: CALL=x:\OS2\XCOPY.EXE x:\OS2\*.INX x:\OS2\*.INY CALL=x:\OS2\XCOPY.EXE x:\OS2\OS2*.INI x:\OS2\*.INX where x is the drive where OS/2 is installed. Each time you start your system, a backup copy of your current INI files, as well as a copy of them as they existed at the previous system startup will be made. By copying the INI files this way, you can recover a recent version of these files in case the INI file becomes corrupted. The first time the system uses the backup commands, you will receive an error about the INX file, because it assumes the INX file is present. Ignore the error. The OS2.INI file, which is referred to as the user INI file, is an operating-system startup file that contains system settings, such as application defaults, display options, and file options. The OS2SYS.INI file, which is referred to as the system INI file, is an operating-system file that contains information about installed fonts and printer drivers. Note: All procedures and methods start at an A: prompt from diskettes. Follow steps 1 through 5 under "To Run CHKDSK" to get to the A: prompt. Symptoms -------- * Blank or damaged Desktop * Missing or blank folders, missing icons * Error messages referring to INI files; for example: WPS cannot be located, USER INI files may be corrupt. * SYS3175 received after an attempt to print or after changing video to a higher resolution. * System locks up, Window List appears, and you can move the mouse. * Blank Desktop: Check the CONFIG.SYS file to see if you have a duplicate set of INI statements. If there are duplicates, edit the CONFIG.SYS file and change one set as follows: Change To SET USER_INI REM SET USER_INI SET SYSTEM_INI REM SET SYSTEM_INI Go to "Method 1--Rebuilding the Existing Desktop," and perform the steps. If the Desktop does not appear, perform the steps under "Method 2--Temporary or Dummy INI Restoration." * Drives Icon: Problems opening and closing immediately: 1. Go to an A: prompt from diskettes (see steps 1 through 5 in "To Run CHKDSK"). 2. Insert OS/2 Diskette 2. 3. Run CHKDSK. 4. Erase the hidden file, WP?ROOT.?SF, by typing the following and pressing Enter after each: ATTRIB x:\WP?ROOT.?SF -s -r -h DEL x:\WP?ROOT.?SF where x is the drive where OS/2 is installed. 5. Remove the diskette; then press Ctrl+Alt+Del to restart the system. Recovering INI Files -------------------- When recovering user INI files, you can preserve customization by avoiding the ERASE command. If you use ERASE, you will lose all customization. Following are two procedures for recovering user INI files. Use whichever is appropriate. If you get error messages, when using the MAKEINI command, or access is denied, use the ATTRIB command. Type the following and press Enter; then retry MAKEINI: ATTRIB OS2*.INI -R Recovering User INI Files and Preserving Customization ------------------------------------------------------ 1. Go to a command prompt from diskette (follow steps 1 through 5 under "To Run CHKDSK"). 2. Type x: and press Enter (x is the drive where OS/2 is installed). 3. Type CD \OS2 and press Enter. 4. Type MAKEINI OS2.INI INI.RC and press Enter (creates a new version of the user INI file). 5. Type MAKEINI OS2SYS.INI INISYS.RC and press Enter (creates a new version of the system INI file). 6. Remove Diskette 1 from drive A. 7. Press Ctrl+Alt+Del to restart the system. Recovering User INI Files and Losing Customization -------------------------------------------------- 1. Go to a command prompt from diskette (follow steps 1 through 5 under "To Run CHKDSK"). 2. Type x: and press Enter (x is the drive where OS/2 is installed). 3. Type CD \OS2 and press Enter. 4. Type ERASE OS2.INI and press Enter (erases the current user INI file). 5. Type MAKEINI OS2.INI INI.RC and press Enter (creates a new user INI file). 6. Type ERASE OS2SYS.INI and press Enter (erases the current version of the system INI file). 7. Type MAKEINI OS2SYS.INI INISYS.RC and press Enter (creates a new version of the system INI file.) 8. Remove Diskette 1 from drive A. 9. Press Ctrl+Alt+Del to restart the system. Backing Up, Restoring, and Replacing Your Desktop ------------------------------------------------- You should regularly make a backup copy of your Desktop. This is important if you customized it. You then can use the backup copy to restore the Desktop if something should happen. After installation, it is recommended that you perform a proper shutdown. Do not back up the OS2.INI file before starting OS/2 for the first time. For more information about the BACKUP command, see the online Command Reference in the Information folder, or go to an OS/2 window and type HELP BACKUP and press Enter. Backing Up the Desktop ---------------------- Note: This procedure requires a blank, formatted diskette. 1. Go to a command prompt from diskettes (see steps 1 through 5 under "To Run CHKDSK"). 2. Remove OS/2 Diskette 1; insert a blank, formatted diskette in drive A. 3. Type BACKUP x:\DESKTOP A: /S and press Enter (x is the drive where OS/2 is installed). This copies the DESKTOP directory and its subdirectories to the diskette. Note: The name of your DESKTOP directory might be slightly different if you are using HPFS or if you replaced your Desktop previously. 4. Type COPY x:\OS2\OS2*.INI A: and press Enter (x is the drive where OS/2 is installed). This copies the OS2.INI and OS2SYS.INI files from the \OS2 subdirectory, to the diskette. 5. Type COPY x:\CONFIG.SYS A: and press Enter (x is the drive where OS/2 is installed). This copies the CONFIG.SYS file to the diskette. 6. Remove the diskette from drive A. Restoring the Desktop --------------------- Certain actions could damage your Desktop and leave it unusable. For example, rearranging a hard disk while running a specific version of DOS might damage INI files or extended attributes. You can recover by: Rebuilding the Existing Desktop --------------- Method 1 Restoring Temporary or Dummy INI -------------- Method 2 Reverting to the Original Desktop ------------- Method 3 Re-creating the INI Files --------------------- Method 4 Restoring the INI on an IBM PS ValuePoint ----- Method 5 If you decide to return to the original Desktop, modifications that have been made to it and the CONFIG.SYS file are lost and must be re-created. Replacing the Desktop --------------------- You can replace the existing Desktop with a backup copy. Note: This procedure requires a diskette containing the backup copy of the DESKTOP directory. 1. Go to a command prompt from diskettes (see steps 1 through 5 under "To Run CHKDSK"). 2. Remove Diskette 1 and insert the diskette with the backup copy of DESKTOP into drive A. 3. Type COPY A:\OS2*.INI x:\OS2 and press Enter (x is the drive where OS/2 is installed). This copies OS2.INI and OS2SYS.INI to the \OS2 directory. 4. Type COPY A:\CONFIG.SYS C:\ and press Enter. This copies the CONFIG.SYS file to the root directory. 5. Type RESTORE A: x: /S and press Enter. (x is the drive where OS/2 is installed). This copies the DESKTOP directory and subdirectories. 6. Remove the diskette from drive A. 7. Press Ctrl+Alt+Del to restart the system. Methods for Restoring a Damaged Desktop --------------------------------------- Note: USE METHOD 5 FOR IBM PS/VALUEPOINT SYSTEMS. An occasion could arise where your Desktop becomes damaged. For example, you might start DOS and try to rearrange your hard disk and damage either INI files or Extended Attributes. The following procedures will help you recover. There are five methods presented: Three for restoring your Desktop, one "dummy" method, and a method specifically for the IBM PS/ValuePoint. Read ALL methods before proceeding. METHOD 1--Rebuilding the Existing Desktop ----------------------------------------- This method migrates your current Desktop by merging new initialization files with the damaged ones. You can use this procedure if you do not want to replace both the CONFIG.SYS file and the DESKTOP directory. With this method, you do NOT lose your customization. 1. Go to a command prompt from diskettes (see steps 1 through 5 under "To Run CHKDSK"). 2. Insert OS/2 Diskette 2; then type the following, pressing Enter after each (x is the drive where OS/2 is installed): For FAT systems: CHKDSK x: /F For HPFS systems: CHKDSK x: /F:2 Run CHKDSK repeatedly until no errors are reported. 3. Change to the drive containing OS/2. 4. Type x:\OS2 and press Enter to change to the OS2 subdirectory. 5. Type the following and press Enter after each: ATTRIB OS2*.INI -R MAKEINIOS2.INI INI.RC MAKEINI OS2SYS.INI INISYS.RC 6. Type the following and press Enter after each to delete the hidden file, WP ROOT.SF (x is the drive where OS/2 is installed): ATTRIB x:\WP?ROOT.?SF -s -r -h DEL x:\WP?ROOT.?SF 7. Remove the diskette and press Ctrl+Alt+Del to restart the system. This replaces Desktop by using the new .INI files. 8. Shut down the system and then restart it to make sure all programs and files have been associated correctly. METHOD 2--Temporary or Dummy INI Restoration -------------------------------------------- This method is similar to Method 1, except that it initializes the Desktop with temporary INI files, which are also known to as dummy INIs. 1. Open an OS/2 Window. 2. At the command prompt, type the following and press Enter after each: CD\OS2 MAKEINI OS21.INI INI.RC MAKEINI OS2SYS1.INI INISYS.RC Note: INI file names end with "1." 3. Type CD\ and press Enter. 4. Type E CONFIG.SYS and press Enter to edit the CONFIG.SYS file. 5. Change the following statements near top of the file: Change: SET USER_INI=C:\OS2\OS2.INI To: SET USER_INI=C:\OS2\OS21.INI Change: SET SYSTEM_INI=C:\OS2\OS2SYS.INI To: SET SYSTEM_INI=C:\OS2\OS2SYS1.INI 6. Select File, and then Save; then select Close. 7. Shut down and restart the system. If the problem is solved, the INI files were at fault. Edit the CONFIG.SYS file and return the statements changed in step 5 to the original values; that is, remove the "1" from the file names. Continue with Method 4. METHOD 3--Reverting to the Original Desktop ------------------------------------------- This method makes copies of your original Desktop and initialization file and then generates new files from copies stored in the OS2\INSTALL subdirectory. This method does NOT save shadow copies of icons or extended-services icons on your Desktop. This method starts the Tutorial and generates the Desktop as if you just finished the installation process. You lose customization, and the CONFIG.SYS file is replaced with the original file. 1. Shut down the system; then press Ctrl+Alt+Del to restart it. 2. When you hear a single beep, or when you press Enter at the Boot Manager menu or the password prompt, Enter password, press and hold Alt+F1 keys until you hear a rapid beeping sound, which means the keyboard buffer is full. 4. Release the keys. You will see the OS/2 logos and a messages indicating that three files were renamed and re-created from copies in the OS2\INSTALL subdirectory. The original Desktop then returns. This process can take up to 10 minutes. If the Tutorial starts again, you might want to review it while the Desktop is being generated. After installation is complete, you should immediately shut down and restart the system to make sure that all programs and files have been associated correctly. METHOD 4--Re-Creating the INI Files ----------------------------------- If the previous methods do not work, you can do a manual installation without having to use the diskettes; however, you lose customization. 1. Go to a command prompt from diskettes (see steps 1 through 5 under "To Run CHKDSK"). 2. Insert Diskette 2 and type the following, pressing Enter after each (x is the drive where OS/2 is installed): For FAT systems: CHKDSK x: /F For HPFS: CHKDSK x: /F:2 Run CHKDSK repeatedly no errors are reported. 3. Change to the drive containing OS/2; then go to the OS2 subdirectory and type the following, pressing Enter after each (x is the drive where OS/2 is installed): x: x:\OS2 4. At the command prompt, type the following, pressing Enter after each: ATTRIB OS2*.INI -R DEL OS2.INI DEL OS2SYS.INI 5. At the command prompt, type the following, pressing Enter after each: MAKEINI OS2.INI INI.RC MAKEINI OS2SYS.INI INISYS.RC 6. At the command prompt, type the following, pressing Enter after each, to delete the hidden file, WP ROOT.SF in the OS/2 startable partition: ATTRIB C:\WP?ROOT.?SF -s -r -h DEL C:\WP?ROOT.?SF 7. Type CD DESKTOP and press Enter to change to the DESKTOP subdirectory. 8. Remove all DESKTOP subdirectories by typing RD subdir, where subdir is the name of the subdirectory. For example, RD NETWORK. Note: In FAT systems, blanks in folder names are represented by underscores (_). In HPFS, folder names with blanks must be enclosed in double quotes ("). 9. Remove the diskette and press Ctrl+Alt+Del to restart the system. This rebuilds the Desktop by replacing the damaged INI files with the new files created by MAKEINI. After installation is complete, you should immediately shut down and restart the system to make sure that all programs and files have been associated correctly. Notes: * If the procedure did not re-create your Desktop correctly, or your Desktop is incomplete, repeat steps 3 through 5 TWICE; then remove the diskette and restart the system. * If you are unable to delete the Desktop or subdirectories: a. Select WINOS/2 Group on the Desktop. b. Select WINOS/2 Main. c. Select File Manager. d. Select the drive where OS/2 is installed. e. Select DESKTOP. f. Select File; then click on DELETE. g. Select YES to all. METHOD 5--Restoring the INI on an IBM PS/ValuePoint --------------------------------------------------- This method is to be used for recovering INI files on IBM PS/ValuePoint systems. 1. Go to command prompt from diskettes (see steps 1 through 5 under "To Run CHKDSK"). 2. Insert OS/2 Diskette 2 and type the following, pressing Enter after each (x is the drive where OS/2 is installed): For FAT systems: CHKDSK x: /F For HPFS: CHKDSK x: /F:2 3. Change to the drive where OS/2 is installed; then type the following, pressing Enter after each (x is the drive where OS/2 is installed): x: OS2\DLL\DISPLAY dir x: CD\OS2\DLL\DISPLAY 4. Type the following and press Enter to copy the file, DISPLAY.DLL, to the OS/2 subdirectory (DISPLAY.DLL should be 76988 bytes in size): COPY DISPLAY.DLL X:\OS2\DLL and press Enter. 5. Type the following, pressing Enter after each (x is the drive where OS/2 is installed): CD\OS2\INSTALL COPY OS2.INI x:\OS2\OS2.INI COPY OS2SYS.INI x:\OS2\OS2SYS.INI 6. Type the following, pressing Enter after each, to delete the hidden file, WP?ROOT.?SF (x is the drive where OS/2 is installed): ATTRIB x:\WP?ROOT.?SF -S -R -H DEL x:\WP?ROOT.?SF 7. Remove the diskette; then press Ctrl+Alt+Del. If system does not start properly, or you need assistance, call for support. Specifically request video support. Please document the problem and the procedure you followed. ______________________________________________________________________ IBM disclaims all warranties, whether express or implied, including without limitation, warranties of fitness and merchantability with respect to the information in this document. By furnishing this document, IBM grants no licenses to any related patents or copyrights. Copyright (c) 1994, 1995 IBM Corporation. Any trademarks and product or brand names referenced in this document are the property of their respective owners. Consult your product manuals for complete trademark information.