home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / eject100.zip / rcontrol.txt < prev   
Text File  |  1997-01-06  |  4KB  |  94 lines

  1.  
  2. RCONTROL 1.0  Copyright (C)1997 Cornel Huth
  3. 6-Jan-1997
  4.  
  5. --------
  6. Overview
  7. --------
  8.  
  9. RCONTROL, also known as EJECTnnn.ZIP, is a utility that I wrote
  10. specifically to fix a problem in the stand-alone restore of the
  11. Back Again/2 Personal software.  The problem is that if the
  12. restore spans a cartridge there's no way to switch to the next
  13. cartrdige since the PM interface is not available, and without
  14. it, there's no way to unlock/eject a cartridge to insert the
  15. next in the backup.
  16.  
  17. To do a full stand-alone restore, where the boot drive needs to
  18. be restored, you most likely will have to do a floppy boot.  The
  19. regular OS/2 floppy boot doesn't allow task switches, so even
  20. with RCONTROL you won't be able to do a restore that spans a
  21. single cartridge.  One method is to just backup your boot drive
  22. onto a single cart.  This works fine for Warp 3. where there's
  23. plenty of room on a cart (EZ135 gets 127MB, and to 280MB if
  24. compressed, per cart).  Warp 4 is bigger and it may not be
  25. possible to do a single-cart backup anymore.
  26.  
  27. I use BackAgain/2 3.10a Personal, along with an EZ135 SCSI and an
  28. UltraStor U34F SCSI H/A.  I've heard that the problem still exists
  29. in BackAgain/2 4.x.  In my case, I've already have to patch
  30. drivers to get my U34F to even support removables drives in OS/2
  31. (see U34F_RMB2.ZIP at www.40th.com), and while I can eject a
  32. disk regardless of its lock state (see U34F_RMB2 for details),
  33. once I do this BA/2 aborts when accessing the newly inserted cart
  34. since BA/2 doesn't do any sort of mounting of new carts.  This
  35. is easy for me to work around in WPS (I can open an OS/2 window
  36. and just do a DIR, or I can open the Drives Object and do a Lock),
  37. but impossible to work around from a floppy boot.
  38.  
  39. To use RCONTROL in a floppy boot, you should get the EWS package
  40. called BOOTOS2.ZIP.  With it you can switch/start up another
  41. program, for example, RCONTROL to do an unlock+eject.  Then,
  42. switch carts and lock.  BA/2 works and you don't have to reinstall
  43. OS/2 from scratch, and your backup data located on drives after the
  44. boot drive are no longer worthless (BA/2 is useless for stand-alone
  45. restore if you have to span cartridges, for reasons already stated).
  46.  
  47. --------------
  48. Using RCONTROL
  49. --------------
  50.  
  51. RCONTROL.EXE (or eject.exe) has the following operations:
  52.  
  53.  rcontrol k: S   show status of removable drive, k:
  54.  rcontrol k: U   unlock removable drive, k:
  55.  rcontrol k: L   lock removable drive, k:
  56.  rcontrol k: E   unlock then eject cartridge in removable drive, k:
  57.  
  58. All but S (status) work on CD drives.  E, eject, performs an unlock
  59. before it attempts to eject.  The drive must be the first arg, followed
  60. by S, U, L, or E; the drive can be c: to z:.
  61.  
  62. Option switches:
  63.  
  64.  -f             force all steps to be taken, ignoring errors
  65.  -n             do not retry when device is not yet ready
  66.  
  67. It may be useful to force (-f) a lock or unlock, even if a previous setup
  68. step failed (for whatever reason).  This is especially useful for my
  69. setup (see U34F_RMB2.ZIP for details).  To eject a CD, -f is needed
  70. since CD is a read-only medium.
  71.  
  72. If RCONTROL cannot lock/unlock on its first attempt, it retries the
  73. call two more times, with a 2 second delay between calls.  If the drive
  74. is still not ready, rc=163 is returned.  Use -n to not do these retries.
  75. Possible errors:
  76.  
  77.    15 is an invalid drive (see -f)
  78.    21 is drive not ready
  79.    33 is a lock violation; probable open file on drive
  80.    87 the drive probably just is not a valid RMB (-f was used to no avail)
  81.   108 drive is in use; cannot obtain exclusive access (see -f)
  82.   163 uncertain media, or drive still not yet ready
  83.  
  84. Other return codes are standard OS/2 error codes.  All output in red goes
  85. through stderr, the rest through stdout.  RMB is short for removable.
  86.  
  87. For updates, or for other OS/2 packages, check the sites listed below.
  88.  
  89.  .                                             .
  90.  :    Quality Toolkits and Applications for    : info@40th.com
  91.  :          DOS - Win16 - Win32 - OS/2         : http://www.40th.com/
  92.  :                                             : BBS:1-210-684-8065
  93.  
  94.