home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / mnt_100b.zip / README < prev    next >
Text File  |  1996-12-24  |  4KB  |  108 lines

  1.  
  2.                    UNMOUNT/REMOUNT UTILITIES FOR OS/2 VERSION 1.00
  3.  
  4.                                  *** BETA VERSION ***
  5.  
  6.                         Copyright (C) Matthieu Willm 1996
  7.  
  8.  
  9. WHAT ARE THESE UTILITIES FOR :
  10. ------------------------------
  11.  
  12. I wrote these small utilities mainly to allow ext2-os2 (the Linux ext2 file system for 
  13. OS/2), to cleanly unmount removable media before removing them from their drive. 
  14.  
  15. unmount.exe will cleanly unmount a drive by committing all data and detaching the 
  16. file system currently attached to it. After this operation, the OS/2 drive letter is
  17. still present, but the drive cannot be accessed. This utility issues a true unmount 
  18. of the file system from the drive (eg it's a real unmount, not a hack, by calling the
  19. IFS's FS_MOUNT entry point).
  20.  
  21. remount.exe will force OS/2 to reattach a file system to the specified drive. If a file
  22. system was already attached, it will be detached first. remount.exe can be called to be 
  23. able to gain access to a drive previously unmounted with unmount.exe.
  24.  
  25. Normally these utilities should work for all LOCAL file systems. At the moment they have
  26. been reported to work with the following file systems :
  27.  
  28.  - OS/2 High Performance File System (HPFS) : hpfs.ifs
  29.  - OS/2 File Allocation Table (FAT)
  30.  - OS/2 CDROM File System (CDFS) : cdfs.ifs
  31.  - Linux ext2fs IFS (ext2-os2) : ext2-os2.ifs (version 2.20 or later recommended)
  32.  
  33. If you tested it with other file systems, please let me know so that I can update this list.
  34.  
  35. USAGE INSTRUCTIONS :
  36. --------------------
  37.  
  38. To unmount a drive, type "umount x:" where x: is the drive to be unmounted. If successful,
  39. the drive x: can no longer be accessed. Fo instance typing "dir x:" should give the following
  40. message : "SYS0026: The specified disk or diskette cannot be accessed.". If the media is
  41. removable, it can be safely removed or ejected.
  42.  
  43. To remount a drive, type "remount x:" where x: is the drive to be mounted. If successful,
  44. the drive x: can then be accessed normally.
  45.  
  46. Both utilities require that NO files are open on the drive.
  47.  
  48. NOTE TO EXT2-OS2 USERS :
  49. ------------------------
  50.  
  51. These utilities were designed to allow a safe use of removable media formatted with
  52. the Linux ext2 file system.  When you use ext2-os2 on removable media, please follow
  53. these guidelines :
  54.  - when the media is inserted, it should be automatically mounted by OS/2 when accessed. 
  55.    If not, run remount.exe on it.
  56.  - once mounted, NEVER REMOVE THE MEDIA FROM ITS DRIVE WITHOUT APPLYING THE FOLLOWING 
  57.    PROCEDURE !!!
  58.  - when you want to remove the media, run umount.exe on the drive. If successful, you can
  59.    safely remove the media from its drive.
  60.  
  61. If you follow these guidelines, you can also try to enable strategy 2 I/O on the drive
  62. to TREMENDOUSLY speed up access to the drive (if supported by the underlying driver). To do 
  63. this, use the -force_strat2:<drive> on the ext2-os2.ifs command line (ext2-os2 2.20 needed).
  64. This will be useful on large removable media like ZIP drives, PCMCIA hard disks and so on.
  65. Note : use the -force_strat2 switch on floppies with caution (the floppy must have NO bad
  66. sectors).
  67.  
  68. WARNING WARNING WARNING :
  69. -------------------------
  70.  
  71. *** NEVER *** run any programs that directly access drives on a drive previously unmounted
  72. with unmount.exe. Most of these programs blindly assume the drive is formatted as FAT and
  73. thus can cause massive loss of data. These programs include :
  74. - CHKDSK
  75. - PMCHKDSK
  76. - FORMAT (... unless you want to format the drive !)
  77. - Disk optimizers, defrag utilities
  78. - File system checkers (Norton disk doctor and such)
  79. - File recoverers, undelete utilities
  80. - Disk editors (unless you know what you're doing)
  81. - ...
  82.  
  83. Remember the main purpose of unmount.exe is to remove the media right after !
  84.  
  85. REQUIREMENTS :
  86. --------------
  87.  
  88.  - OS/2 WARP V3 or V4
  89.  - EMX runtime version 0.9c (ftp://ftp-os2.nmsu.edu/os2/unix/emx09c/emxrt.zip)
  90.  
  91. HOW TO RECOMPILE  :
  92. -------------------
  93.  
  94.         gcc -O -Zomf -Zcrtdll -Zlinker "/exepack:2 /align:4 /pmtype:vio" umount.c
  95.         gcc -O -Zomf -Zcrtdll -Zlinker "/exepack:2 /align:4 /pmtype:vio" remount.c
  96.  
  97. COPYRIGHT NOTICE :
  98. ------------------
  99.  
  100. These utilities are licensed under the terms of the GNU general public license.
  101. See the file COPYING for details.
  102.  
  103.  
  104.  
  105. Matthieu Willm
  106. <willm@ibm.net>
  107.  
  108.