home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 36 Tips / 36-Tips.zip / boot.2mb < prev    next >
Text File  |  1992-07-07  |  9KB  |  218 lines

  1. Several messages here on the IBMOS2 forum and in its library (eg, BOOTDI.GA)
  2. have been concerned with emergency booting of OS/2 _from_floppy_ to recover
  3. EAs, CHKDSK, etc.  I have come up with my own scheme which I think meets
  4. the following needs:
  5.  
  6.  1. Allows the most flexible use of multiple versions of DOS & OS/2.
  7.  
  8.  2. Allows emergency recovery booting FROM THE HARD DISK, in order to run
  9.     CHKDSK, MAKEINI, etc.
  10.  
  11. After backing up my entire hard disk, I ran the OS/2 install and ran FDISK,
  12. and  created the following partitions, in the following order on the disk:
  13.  
  14.     1. 1mb, Boot Manager, and mark it startable.
  15.  
  16.     2. 1mb partition (primary), for booting DOS.  Mark this one as
  17.        drive C:, and bootable
  18.  
  19.     3. 1mb partition (primary), for booting another version of DOS
  20.        (DR-DOS?, future MS-DOS?).  Mark it bootable.
  21.  
  22.     4. However many program & data partitions (extended) I wanted.
  23.        Mark the one of these that you want to contain most of the OS/2
  24.        files as INSTALLABLE.
  25.  
  26.     5. Several 2mb partitions (extended), for regular booting of as
  27.        many OS/2 systems as I might want to have on the disk at the
  28.        same time (for me, two).  Mark it bootable.
  29.  
  30.     6. 2mb partition (extended), for what I call "Partition Manager"
  31.        (used for OS/2 emergency recovery).  Mark it bootable.
  32.  
  33. I then continued with a normal OS/2 install into the INSTALLABLE
  34. partition.  Upon bringing up OS/2, I then FORMAT (must use OS/2, not
  35. DOS) all of the other extended partitions.  I specified the FAT file
  36. system for the 2mb partitions.  I then copied the following files into
  37. the "Partition Manager" partition (#6 above):
  38.  
  39.   Directory of I:\
  40.  
  41.   DLL          <DIR>     05-25-92   1:34a
  42.   OS2          <DIR>     05-25-92   1:34a
  43.   OS2BOOT           1099 03-30-92   2:00a
  44.   OS2KRNL         716044 03-30-92   2:00a
  45.   OS2LDR           32256 03-30-92   2:00a
  46.   OS2LDR   MSG      8440 03-30-92   2:00a
  47.   CONFIG   SYS       462 05-25-92   1:31a
  48.   COUNTRY  SYS     24604 03-30-92   2:00a
  49.   KEYBOARD DCP      5177 03-30-92   2:00a          -- from the install floppy
  50.   VTBL850  DCP     10478 03-30-92   2:00a          -- from the install floppy
  51.   CMD      EXE     87552 03-30-92   2:00a
  52.   CHKDSK   COM     68656 03-30-92   2:00a
  53.   FDISK    COM    104759 03-30-92   2:00a
  54.   FORMAT   COM     63744 03-30-92   2:00a
  55.          14 file(s)    1123271 bytes
  56.  
  57.   Directory of I:\DLL
  58.  
  59.   .            <DIR>     05-25-92   1:34a
  60.   ..           <DIR>     05-25-92   1:34a
  61.   BKSCALLS DLL       401 03-30-92   2:00a
  62.   BMSCALLS DLL       398 03-30-92   2:00a
  63.   BVHVGA   DLL     40668 03-30-92   2:00a
  64.   BVSCALLS DLL       454 03-30-92   2:00a
  65.   DOSCALL1 DLL     87884 03-30-92   2:00a
  66.   KBDCALLS DLL       858 03-30-92   2:00a
  67.   MOUCALLS DLL      1010 03-30-92   2:00a
  68.   MSG      DLL       477 03-30-92   2:00a
  69.   NAMPIPES DLL       711 03-30-92   2:00a
  70.   NLS      DLL       465 03-30-92   2:00a
  71.   NPXEMLTR DLL     25280 03-30-92   2:00a
  72.   OS2CHAR  DLL     56320 03-30-92   2:00a
  73.   QUECALLS DLL     14994 03-30-92   2:00a
  74.   SESMGR   DLL     31256 03-30-92   2:00a
  75.   VIOCALLS DLL      1825 03-30-92   2:00a
  76.          17 file(s)     263001 bytes
  77.  
  78.   Directory of I:\OS2
  79.  
  80.   .            <DIR>     05-25-92   1:34a
  81.   ..           <DIR>     05-25-92   1:34a
  82.   FD16-700 ADD     29962 03-30-92   2:00a    -- Future Domain SCSI only
  83.   IBM1FLPY ADD     24026 03-30-92   2:00a     -- non-PS/2 only
  84.   IBM1S506 ADD     12908 03-30-92   2:00a     -- non-PS/2 only
  85.   IBM2ADSK ADD     10724 03-30-92   2:00a     -- PS/2 only
  86.   IBM2FLPY ADD     12997 03-30-92   2:00a     -- PS/2 only
  87.   IBM2SCSI ADD     15780 03-30-92   2:00a     -- PS/2 only
  88.   000000   BIO      2560 03-30-92   2:00a
  89.   W020100  BIO      3072 03-30-92   2:00a
  90.   W020101  BIO      4608 03-30-92   2:00a
  91.   W050000  BIO      1536 03-30-92   2:00a
  92.   W050100  BIO      2560 03-30-92   2:00a
  93.   W050101  BIO      3072 03-30-92   2:00a
  94.   W060100  BIO      6656 03-30-92   2:00a
  95.   W0F0000  BIO      1536 03-30-92   2:00a
  96.   OS2DASD  DMD     31994 03-30-92   2:00a
  97.   OS2SCSI  DMD     10462 03-30-92   2:00a
  98.   IBMINT13 I13      9564 03-30-92   2:00a     -- non-PS/2 SCSI only
  99.   ABIOS    SYS       103 03-30-92   2:00a
  100.   CLOCK01  SYS      3666 03-30-92   2:00a     -- non-PS/2 only
  101.   CLOCK02  SYS      3710 03-30-92   2:00a     -- PS/2 only
  102.   KBD01    SYS     29013 03-30-92   2:00a     -- non-PS/2 only
  103.   KBD02    SYS     25429 03-30-92   2:00a     -- PS/2 only
  104.   PRINT01  SYS      8934 03-30-92   2:00a     -- non-PS/2 only
  105.   PRINT02  SYS      7994 03-30-92   2:00a     -- PS/2 only
  106.   SCREEN01 SYS      1441 03-30-92   2:00a     -- non-PS/2 only
  107.   SCREEN02 SYS      1590 03-30-92   2:00a     -- PS/2 only
  108.          28 file(s)     265897 bytes
  109.  
  110.   Total files listed:
  111.          59 file(s)    1652169 bytes
  112.  
  113. Note that if you need any special disk drivers, you will have to include
  114. them (like I needed to for FD16-700.ADD above).
  115.  
  116. Note also that the above includes only CHKDSK, FDISK, and FORMAT.  If you
  117. want to access any other OS/2 programs (eg, MAKEINI, ATTRIB), you can do
  118. so by switching to the partition that contains them, and run them.  For
  119. obvious reasons, this may not be practical with the above three, which
  120. is why I included them.
  121.  
  122. The above CONFIG.SYS contains:
  123.  
  124.   ProtectOnly    = Yes
  125.   Buffers    = 32
  126.   DiskCache    = 64
  127.   IOPL        = Yes
  128.   MemMan        = NoSwap
  129.  
  130.   BaseDev    =IBM1FLPY.ADD            -- non PS/2 only
  131.   BaseDev    =IBM1S506.ADD            -- non PS/2 only
  132.   BaseDev    =FD16-700.ADD            -- non PS/2 only
  133.   BaseDev    =IBM2FLPY.ADD            -- PS/2 only
  134.   BaseDev    =IBM2ADSK.ADD            -- PS/2 only
  135.   BaseDev    =IBM2SCSI.ADD    /LED        -- PS/2 only
  136.   BaseDev    =OS2DASD.DMD
  137.   BaseDev    =OS2SCSI.DMD
  138.   BaseDev    =IBMINT13.I13            -- non PS/2 only
  139.  
  140.   CodePage= 850
  141.   Country    = 001,        \COUNTRY.SYS
  142.   DevInfo    = Kbd,    US,    \KEYBOARD.DCP
  143.   DevInfo = Scr,    VGA,    \VTBL850.DCP
  144.  
  145.   ProtShell=\CMD.EXE
  146.   LibPath  =.;\DLL
  147.   Set  keys=ON
  148.  
  149. NOTE THE ABSENSE OF DRIVE LETTERS IN THE ABOVE FILE.  This is important,
  150. as running FDISK can change drive assignments.
  151.  
  152. Now the above partition is bootable, and comes up in OS/2 command mode.
  153.  
  154. To install a particular version of OS/2 into one of the 2mb partitions
  155. (say drive G:):
  156.  
  157.  1. If you want to put ANY and/or ALL of your OS/2 files in directories
  158.     with other than the "standard OS/2" directory names, NOW IS THE TIME
  159.     TO MAKE THIS DECISION for THIS particular 2mb OS/2 boot partition.
  160.     For any such directories, edit the INI.RC and INISYS.RC on your
  161.     normally-installed OS2 drive (say drive D:) in D:\OS2, and change
  162.     the pathnames to what you want them to be (do NOT move the files
  163.     at this time).  Of course, save the original .RC files!
  164.  
  165.     This step is not necessary unless you plan to have multiple versions
  166.     of OS/2 on your system at one time.
  167.  
  168.  2. Copy the above H:\OS2*.* (boot) files into G:\.  Also copy your
  169.     OS/2 version of AUTOEXEC.BAT to G:\.
  170.  
  171.  3. Copy the above H:\OS2\*.* (driver) files into a directory named
  172.     G:\OS2.
  173.  
  174.  4. Run:  MAKEINI  G:\OS2.INI     D:\OS2\INI.RC       (your edited file)
  175.           MAKEINI  G:\OS2SYS.INI  D:\OS2\INISYS.RC    (your edited file)
  176.  
  177.  5. Copy the OS/2 version of CONFIG.SYS into G:\, modifying it so
  178.     that USER_INI and SYSTEM_INI point to the above G:\OS2.INI and
  179.     G:\OS2SYS.INI files.  If you decided to move any OS/2 files, make
  180.     the appropriate changes to this copy of CONFIG.SYS.
  181.  
  182.  6. If you decided to move any OS/2 files, boot the "Partition Manager"
  183.     and move them at this time.
  184.  
  185.  7. Now boot partition G:.  OS/2 will reinitialize itself (like it does
  186.     after every install).
  187.  
  188. If OS/2 (on drive G:) ever "permanently" crashes, just:
  189.  
  190.  1. Boot the "Partition Manager".
  191.  
  192.  2. Repeat step #4 above.
  193.  
  194.  3. Remove directories G:\NOWHERE and G:\OS2.DTP, and all directories
  195.     and files in them.
  196.  
  197.  4. Run   CHKDSK G: /F
  198.  
  199.  5. Reboot partition G:
  200.  
  201. Note that steps #3 can be done under DOS (that's what I do);  if you do
  202. so, then also run:
  203.  
  204.           ATTRIB G:\*.* -H -S -R /S
  205.           DEL    G:\EA?DATA.?SF
  206.  
  207. To install DOS, just boot a DOS diskette and "FORMAT C:/S".  By making
  208. appropriate changes to the DOS CONFIG.SYS and AUTOEXEC.BAT, you can put
  209. all other DOS files anywhere you want them.  To install another version
  210. of DOS (or the same version, say with a different CONFIG.SYS/AUTOEXEC.BAT)
  211. in the other partition, just run FDISK from the "Partition Manager" and
  212. change the "C:" partition.
  213.  
  214. If you don't like my idea of the 1mb DOS boot partitions (and changing all
  215. of your references to C: to D:, D: to E:, etc), you can of course omit
  216. them and make the first partition on the drive (after the Boot Manager)
  217. a primary partition containing DOS.
  218.