home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 8 Other
/
08-Other.zip
/
mnt_100b.zip
/
README
< prev
next >
Wrap
Text File
|
1996-12-24
|
4KB
|
108 lines
UNMOUNT/REMOUNT UTILITIES FOR OS/2 VERSION 1.00
*** BETA VERSION ***
Copyright (C) Matthieu Willm 1996
WHAT ARE THESE UTILITIES FOR :
------------------------------
I wrote these small utilities mainly to allow ext2-os2 (the Linux ext2 file system for
OS/2), to cleanly unmount removable media before removing them from their drive.
unmount.exe will cleanly unmount a drive by committing all data and detaching the
file system currently attached to it. After this operation, the OS/2 drive letter is
still present, but the drive cannot be accessed. This utility issues a true unmount
of the file system from the drive (eg it's a real unmount, not a hack, by calling the
IFS's FS_MOUNT entry point).
remount.exe will force OS/2 to reattach a file system to the specified drive. If a file
system was already attached, it will be detached first. remount.exe can be called to be
able to gain access to a drive previously unmounted with unmount.exe.
Normally these utilities should work for all LOCAL file systems. At the moment they have
been reported to work with the following file systems :
- OS/2 High Performance File System (HPFS) : hpfs.ifs
- OS/2 File Allocation Table (FAT)
- OS/2 CDROM File System (CDFS) : cdfs.ifs
- Linux ext2fs IFS (ext2-os2) : ext2-os2.ifs (version 2.20 or later recommended)
If you tested it with other file systems, please let me know so that I can update this list.
USAGE INSTRUCTIONS :
--------------------
To unmount a drive, type "umount x:" where x: is the drive to be unmounted. If successful,
the drive x: can no longer be accessed. Fo instance typing "dir x:" should give the following
message : "SYS0026: The specified disk or diskette cannot be accessed.". If the media is
removable, it can be safely removed or ejected.
To remount a drive, type "remount x:" where x: is the drive to be mounted. If successful,
the drive x: can then be accessed normally.
Both utilities require that NO files are open on the drive.
NOTE TO EXT2-OS2 USERS :
------------------------
These utilities were designed to allow a safe use of removable media formatted with
the Linux ext2 file system. When you use ext2-os2 on removable media, please follow
these guidelines :
- when the media is inserted, it should be automatically mounted by OS/2 when accessed.
If not, run remount.exe on it.
- once mounted, NEVER REMOVE THE MEDIA FROM ITS DRIVE WITHOUT APPLYING THE FOLLOWING
PROCEDURE !!!
- when you want to remove the media, run umount.exe on the drive. If successful, you can
safely remove the media from its drive.
If you follow these guidelines, you can also try to enable strategy 2 I/O on the drive
to TREMENDOUSLY speed up access to the drive (if supported by the underlying driver). To do
this, use the -force_strat2:<drive> on the ext2-os2.ifs command line (ext2-os2 2.20 needed).
This will be useful on large removable media like ZIP drives, PCMCIA hard disks and so on.
Note : use the -force_strat2 switch on floppies with caution (the floppy must have NO bad
sectors).
WARNING WARNING WARNING :
-------------------------
*** NEVER *** run any programs that directly access drives on a drive previously unmounted
with unmount.exe. Most of these programs blindly assume the drive is formatted as FAT and
thus can cause massive loss of data. These programs include :
- CHKDSK
- PMCHKDSK
- FORMAT (... unless you want to format the drive !)
- Disk optimizers, defrag utilities
- File system checkers (Norton disk doctor and such)
- File recoverers, undelete utilities
- Disk editors (unless you know what you're doing)
- ...
Remember the main purpose of unmount.exe is to remove the media right after !
REQUIREMENTS :
--------------
- OS/2 WARP V3 or V4
- EMX runtime version 0.9c (ftp://ftp-os2.nmsu.edu/os2/unix/emx09c/emxrt.zip)
HOW TO RECOMPILE :
-------------------
gcc -O -Zomf -Zcrtdll -Zlinker "/exepack:2 /align:4 /pmtype:vio" umount.c
gcc -O -Zomf -Zcrtdll -Zlinker "/exepack:2 /align:4 /pmtype:vio" remount.c
COPYRIGHT NOTICE :
------------------
These utilities are licensed under the terms of the GNU general public license.
See the file COPYING for details.
Matthieu Willm
<willm@ibm.net>