home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 36 Tips / 36-Tips.zip / alltips.zip / DICNFG.FAX < prev    next >
Text File  |  1994-12-08  |  2KB  |  68 lines

  1. Editing config.sys without an editor     7/19/94
  2.  
  3.        File:OSDICNFG.fax
  4.  
  5.        TITLE:  EDITING THE CONFIG.SYS WITHOUT AN EDITOR
  6.  
  7.        DESCRIPTION OF SYMPTOMS:
  8.  
  9.        Unable to access an editor to change the config.sys when
  10.        booted up from the OS/2 floppies.
  11.  
  12.        DETAILS OF RESOLUTION:
  13.  
  14.        Boot off the OS/2 floppies and edit the config.sys as
  15.        follows:
  16.  
  17.        1. Boot up with the installation disks, etc.  to ESC to an
  18.        OS/2 command prompt.  Press Enter after typing each of the
  19.        following commands:
  20.  
  21.        A. X:  (where X is the letter of your OS/2 partition)
  22.        B. Ren config.sys config.bad (this will back up the
  23.        config.sys)
  24.        C. Echo set restartobjects=startupfoldersonly>>
  25.        config.sys <reboot>
  26.  
  27.        What these commands do is add the needed line to the end of
  28.        the config.sys.  ( >> = append to file )
  29.  
  30.        But this doesn't help if we need to CHANGE a line, all you
  31.        can do with this idea is add a line to the config.sys.
  32.  
  33.        EXAMPLE:  THE c000005 ERROR.
  34.  
  35.        Replace the lines:
  36.  
  37.        set vio_vga=device(bvhvga, bvhsvga)
  38.        device=c:\os2\mdos\vsvga.sys with set
  39.        vio_vga=device(bvhvga) device=c:\os2\mdos\vvga.sys
  40.  
  41.  
  42.        To do this boot up with installation disk and hit ESC when
  43.        the Welcome to OS/2 screen appears after you insert
  44.        diskette #1.  you will then get an A:  prompt.  Type the
  45.        following and press ENTER after each command.
  46.  
  47.        1. X:  (where X is the letter of you OS/2 partition.
  48.        2. Copy config.sys config.bad
  49.        3. \os2\find /i "bvhsvga" config.sys
  50.        4. \os2\find /i "bvhsvga" config.sys
  51.        5. \os2\find /i /v "bvhsvga" config.sys > config.1
  52.        6. \os2\find /i "vsvga" config.1 7. \os2\find /i /v
  53.        "vsvga" config.1 > config.2
  54.  
  55.        At this point, config.2 is the same as the original
  56.        config.sys, minus the offending lines ...  now we add them
  57.        back ...  echo set vio_vga=device(bvhvga) >> config.2 echo
  58.        device=c:\os2\mdos\vvga.sys >> config.2 copy config.2
  59.        config.sys
  60.  
  61.        Your system should be bootable.  The find command will have
  62.        added a '---------- config.sys' and a '----------config.1'
  63.        line to the new config.sys file, and OS/2 should complain
  64.        about them, but they should not stop the system.  Once OS/2
  65.        has booted, you just pull up the 'e' edit and remove them
  66.        ...
  67. 12/31/99
  68.