home *** CD-ROM | disk | FTP | other *** search
/ BUG 2 / BUGCD1997_01.iso / utils / ntfsdos / ntfsdriv.exe / README.TXT < prev   
Text File  |  1996-11-04  |  14KB  |  327 lines

  1. ======================================================================
  2.  
  3. NTFS File System Driver for DOS/Windows V1.21 (read-only)
  4. Copyright (C) 1996 Mark Russinovich and Bryce Cogswell
  5.  
  6. Last modified November 2, 1996
  7.  
  8. ======================================================================
  9.  
  10. NTFSDOS.EXE is a network file system redirector for DOS/Windows 
  11. that is able to recognize and mount NTFS drives for transparent
  12. access.  It makes NTFS drives appear indistinguishable from standard 
  13. FAT drives, providing the ability to navigate, view and execute programs 
  14. on them from DOS or from Windows, including from the Windows 3.1 File 
  15. Manager and Windows 95 Explorer.
  16.  
  17.  
  18. Please read this entire file before contacting us for help.  
  19.  
  20.  
  21. Availability
  22. ============
  23.  
  24. The latest version of NTFSDOS can be found at 
  25.     http://www.ntinternals.com
  26.  
  27.  
  28. Sample Output
  29. =============
  30.  
  31. Here is sample output from an NTFSDOS session under DOS 7.0 (Windows 95):
  32.  
  33. C:\ntfsdos>ntfsdos
  34.  
  35. NTFS File System Redirector for DOS/Windows V1.21 (read-only)
  36. Copyright (C) 1996 Mark Russinovich and Bryce Cogswell
  37.  
  38. Initialized 500KB of XMS cache.
  39.  
  40. Mounting NTFS partition(0x80:3) as drive: H
  41.  
  42. C:\ntfsdos>h:
  43.  
  44. H:\>dir
  45.  
  46.  Volume in drive H is ntfs
  47.  Directory of H:\
  48.  
  49. EMACS          <DIR>        03-16-96  8:31a emacs
  50. FILEMON        <DIR>        04-18-96  3:30p filemon
  51.                <DIR>        05-01-96  1:20p newlongfilename
  52. NTICE          <DIR>        03-30-96  8:18a NTICE
  53. PAGEFILE SYS    28,311,552  04-07-96 12:16p pagefile.sys
  54. PROGRA~1       <DIR>        03-30-96  5:20a Program Files
  55. RECYCLER       <DIR>        03-30-96  5:36a RECYCLER
  56. TEMP           <DIR>        05-15-96 12:58a temp
  57. USERS          <DIR>        03-16-96  3:27a users
  58. WIN32APP       <DIR>        03-16-96  3:27a win32app
  59. WINNT          <DIR>        03-30-96  8:41a WINNT
  60. WINNT35        <DIR>        05-15-96 12:58a WINNT35
  61.          1 file(s)     28,311,552 bytes
  62.         11 dir(s)     388,284,416 bytes free
  63.  
  64. H:\>
  65.  
  66. ----------------------------------------------------------------------
  67.  
  68.  
  69. Enhancements over V1.1
  70. ======================
  71.  
  72. NTFSDOS V1.21 has the following improvements over V1.1:
  73.  
  74.     - Support for NT 4.0 formatted drives
  75.     - Command line options for cache sizing and drive mapping
  76.     - Support for large drives (>2GB). If extended INT13 services
  77.           are present in the BIOS, NTFSDOS will use them to access drives.
  78.         - Conflicts with MSCDEX fixed. NTFSDOS can now co-exist with
  79.           Microsoft's real-mode CD-ROM driver.
  80.     - Drive detection fixed. NTFSDOS no longer confuses HPFS drives 
  81.       for NTFS (finally!).
  82.     - Several minor bug fixes.
  83.  
  84. Enhancement over V1.2
  85. =====================
  86.  
  87. Some BIOS falsely report support for extended interrupt 13 disk 
  88. services, which caused NTFSDOS V1.2 some grief. NTFSDOS V1.21 
  89. has been made tolerant of these BIOS, and as an additional measure
  90. a new command-line switch has been added that can force NTFSDOS
  91. to use standard int 13 services to access disks.
  92.  
  93.  
  94. Contents of Package
  95. ===================
  96.  
  97. README.TXT  - this readme
  98. NTFSDOS.EXE - DOS/Windows NTFS file-system driver
  99. NTFSHLP.VXD - helper VxD needed only for long filename support in
  100.               Windows 95
  101.  
  102.  
  103. Installation and Use
  104. ====================
  105.  
  106. To use NTFSDOS, simply execute it from the DOS command line (DOS
  107. 5.0 or greater is required), or from your AUTOEXEC.BAT. Executing 
  108. NTFSDOS before Windows is started will create NTFS drives that 
  109. are visible globally once inside Windows. Executing NTFSDOS in a DOS box 
  110. means that the NTFS drives only exist within the DOS box where NTFSDOS 
  111. was executed.
  112.  
  113. When NTFSDOS starts, it will scan all hard-disk partitions on
  114. your system to look for NTFS drives. It will mount all NTFS drives
  115. it finds as unique DOS logical drive letters, and will inform you
  116. as it does so. 
  117.  
  118. If you run NTFSDOS under DOS 7.0, NTFS drives will support long filename 
  119. calls *even before Windows starts*.  To propagate this support into 
  120. Windows 95, NTFSDOS automatically has Windows run the NTFSHLP.VXD VxD 
  121. device driver. No changes to SYSTEM.INI or the registry are necessary 
  122. for this to occur - NTFSDOS will detect when Windows 95 starts and 
  123. load the driver without user-intervention. You need NTFSHLP.VXD only
  124. if you will be running NTFSDOS with Windows 95.
  125.  
  126. NTFSDOS implements its own caching, and uses one of two types of
  127. memory, depending on how your system is configured. Its first
  128. choice is to use XMS memory for caching, as this minimizes demands
  129. placed on conventional memory. If you start NTFSDOS before Windows,
  130. then HIMEM.SYS, which can be found in the WINDOWS directory under 
  131. Windows 95 or the DOS directory under Windows 3.1, or its equivalent, 
  132. must be started before NTFSDOS. If NTFSDOS does not detect an XMS
  133. server, it will resort to allocating 64KB of conventional memory for
  134. its cache. In either case, it will inform you of its action.
  135.  
  136. NTFSDOS takes five command line parameters. The /D parameter lets you 
  137. specify which driver letter NTFSDOS should start at when it determines
  138. where to mount an NTFS drive. The /C option lets you override the
  139. default XMS cache size. The /N parameter disables NTFSDOS support for
  140. compressed files, and should be used to minimize memory usage when
  141. the drives you access do not contain compressed files. The /X switch
  142. forces NTFSDOS to use standard int 13 services, ignoring extended int 13
  143. services if they are present. This should be used if NTFSDOS has trouble
  144. accessing your disk with extended int 13. Finally, the /V option 
  145. directs NTFSDOS to print some messages detailing the drives it looks at 
  146. the memory it allocates. The syntax for these parameters is:
  147.  
  148.     /D:<letter>    Specifies drive to start mounting at
  149.     /C:<size>    Specifies size of XMS cache in KB
  150.     /V        Verbose 
  151.  
  152. Example:
  153.     NTFSDOS /D:e /C:1024
  154.  
  155. This command has NTFSDOS start scanning for available drive letters at
  156. drive letter 'e' and indicates that it should create a 1MB XMS cache.
  157.  
  158. There is no way to unload NTFSDOS from memory once it has started.
  159.  
  160.  
  161. If You Have Problems Running NTFSDOS
  162. ====================================
  163.  
  164. * NTFSDOS does not recognize my NTFS drive
  165.  
  166. NTFSDOS does not handle cluster sizes > 4K on NT 4.0 formatted drives. This
  167. is rare, since NTFS compression does not handle these cluster sizes either.
  168.  
  169. NTFSDOS requires that disks be accessible via BIOS, using the INT 13 or
  170. extended INT 13 services. In some cases, SCSI drives may not be fully 
  171. accessible without a DOS device driver (see your SCSI adapter documentation).
  172.  
  173. * NTFSDOS uses too much conventional memory
  174.  
  175. Some people have complained that NTFSDOS is a memory hog.  Unfortunately,
  176. this fact is largely imposed on us by the architecture of NTFS itself 
  177. (sorry, but its a *little* more complicated than FAT, and much more memory
  178. intensive), coupled with our desire to provide reasonable performance
  179. across a wide variety of NTFS installations.  In general, the footprint
  180. of NTFSDOS increases largely with the clustersize of the largest NTFS 
  181. partition, and slightly with the number of NTFS volumes mounted.
  182.  
  183. * Accessing an NTFSDOS drive causes a hang or crash
  184.  
  185. NTFSDOS does not support disk striping. Further, it cannot handle drives 
  186. that are on partitions extending beyond the 2GB boundary, or that 
  187. are larger than 2GB in size, UNLESS the computer's BIOS has extended
  188. INT 13 support for the drives in question. The latter restrictions are due to 
  189. limitations in standard disk BIOS code that prevent it from addressing 
  190. sectors 2GB or more from the start of a disk.
  191.  
  192. NTFSDOS has not been thoroughly bullet-proofed against corrupt NTFS
  193. drive data structures, so it may cause Windows to crash or hang
  194. when it runs into problems. To insure that a crash or hang is due
  195. to a problem with NTFSDOS rather than your NTFS drive, be sure to
  196. chkdsk the drive from Windows NT and try NTFSDOS again.
  197.  
  198. * Starting programs or loading files seems very slow
  199.  
  200. Access of large compressed files may be noticeably slower than of
  201. their non-compressed versions.
  202.  
  203. * File times are not correct when running under DOS 7.0 without Windows 95
  204.  
  205. This problem is due to the fact that NTFS and LFN FAT time stamps are 
  206. stored in Coordinated Universal Time (UTC), which is based on Greenwich Mean
  207. Time, and Windows 95 automatically converts times stamps returned by LFN 
  208. calls to local time.  Since local time zone information is not accessible 
  209. outside of Windows 95, running NTFSDOS under DOS 7.0 without Windows 95 
  210. results in the display of unadjusted times. 
  211.  
  212. * Programs complain about not being able to find files when they are 
  213.   there
  214.  
  215. A directory listing of files that have no short filename will result
  216. in the short filename field of the listing being blank (see the file,
  217. "newlongfilename," in the sample listing above). Changing the current
  218. directory to a path where any component of the pathname does not
  219. have a short filename will result in all short filename calls failing
  220. while in the directory. This makes most Windows 3.1 and DOS programs and 
  221. many DOS commands (e.g. MORE) inoperative in these directories. However, 
  222. LFN calls are supported in these directories.
  223.  
  224. * Data read from a file appears to be corrupt
  225.  
  226. Since this work is based on reverse-engineering rather than official
  227. Microsoft specifications (which are reportedly available under special
  228. circumstances for large amounts of money), we do not guarantee data
  229. integrity of NTFSDOS drives. This is especially important if you are
  230. considering using NTFSDOS as a file backup utility.
  231.  
  232. * Files or directories seem to be missing
  233.  
  234. Remember that files and directories that were created with no DOS 8.3
  235. short filenames will not be visible if you are running DOS versions earlier
  236. than 7.0.
  237.  
  238. * You get the message "No drive letter to mount NTFS partition..."
  239.  
  240. If NTFSDOS complains that it cannot mount a drive because there
  241. are no available drive letters, you must find the line in your CONFIG.SYS
  242. that begins with "LASTDRIVE=". If you do not find one, then add one. Set
  243. the LASTDRIVE variable to a letter that is greater, by the number
  244. of NTFS drives on your system, than the largest drive letter you normally
  245. have under DOS/Windows. For example, if the highest drive letter normally
  246. in use is E: and you have two NTFS drives, set LASTDRIVE to G: with a 
  247. statement in CONFIG.SYS like: 
  248. LASTDRIVE=G: 
  249. If you still get the message then increment the letter and try again. 
  250. Remember to reboot after every change to CONFIG.SYS.
  251.  
  252. * You get the message "Could not allocate XMS or conventional cache"
  253.  
  254. Memory usage on your machine is so high that NTFSDOS could not allocate
  255. 64KB for a conventional cache. Try removing unnecessary TSRs and drivers
  256. and/or running a DOS memory optimizer or manager.
  257.  
  258. * XCOPY does not work in a DOS box
  259.  
  260. XCOPY will not work on NTFS drives that are mounted in DOS boxes under 
  261. Windows 95 (e.g. running NTFSDOS in a DOS box). This is because you 
  262. cannot run Windows programs off of non-global drives, and under Windows 95, 
  263. XCOPY starts the Windows console program XCOPY32.EXE.
  264.  
  265.  
  266. Reporting Bugs
  267. ==============
  268.  
  269. When you report a bug (see Reaching Us, below), please provide the following
  270. information about your system:
  271.  
  272.     - disk types (IDE, etc.)
  273.     - disk and partition sizes
  274.     - BIOS version
  275.     - drive sizes and formats
  276.     - version of NT that was used to format NTFS drives
  277.     - version of NTFSDOS you are using
  278.     - an output dump of NTFSDOS run with the /V (verbose) option.
  279.     - version of DOS and/or Windows you are running NTFSDOS on
  280.  
  281.  
  282. Implementation
  283. ==============
  284.  
  285. NTFSDOS scans the system's partition tables looking for partitions
  286. that have the NTFS attribute byte. When it finds one, it looks for an
  287. unused DOS driver letter and registers a network drive on it. After
  288. it completes the drive search it hooks the network redirector
  289. interrupt and goes resident. Requests come into NTFSDOS as full path
  290. names, or continuations of a previous directory traversal (as with
  291. findnext), so it proceeds to determine where, based on NTFS internal
  292. data structures, the target file is located. When it retrieves the
  293. header for the target file it can determine where the file's data is
  294. located, and read it when it receives requests to do so.
  295.  
  296. To provide long filename support (LFN), NTFSDOS hooks INT 21/AH=0x71
  297. calls and implements LFN functionality when it sees an LFN call. 
  298. Under Windows 95, NTFSHLP.VXD is required to send LFN calls down to 
  299. the NTFSDOS for it to process; otherwise NTFSDOS would not see LFN calls 
  300. since Windows assumes DOS redirected drives do not provide LFN support.
  301.  
  302. NTFSDOS also uses the INT 2F/11 and INT 13 APIs. Otherwise the magic is 
  303. just memory and cache management plus interpretation of the NTFS on-disk 
  304. structures.
  305.  
  306.  
  307. Reaching Us
  308. ===========
  309.  
  310. We would appreciate any feedback you have concerning this utility
  311. including suggestions and bug reports. Mark can be reached at
  312. mark@osr.com, and Bryce can be reached at cogswell@cs.uoregon.edu.
  313.  
  314.  
  315. Acknowledgments
  316. ===============
  317.  
  318. We thank everybody that e-mailed us with bug reports and other feedback. 
  319.  
  320. Significant understanding of the NTFS file system layout was derived by 
  321. studying the Linux-based NTFS driver code maintained by Martin von Loewis. 
  322. We acknowledge his indirect contribution to this endeavor.
  323.  
  324. Andrew Schulman, et. al.'s, book, Undocumented DOS 2nd Edition 
  325. (Addison-Wesley), was invaluable in providing network redirector 
  326. information necessary for implementing NTFSDOS.
  327.