home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1999 April / PCO0499.ISO / filesbbs / os2 / os2fat85.arj / OS2FAT32.ZIP / partfilt.txt < prev    next >
Encoding:
Text File  |  1998-12-02  |  11.8 KB  |  295 lines

  1.  
  2.                         === DISCLAIMER ===
  3.  
  4.  
  5. I allow you to use all software in this package freely under the condition
  6. that I am in no way responsible for any damage or loss you may suffer.
  7.  
  8.         >> You should be aware of the fact that PARTFILT might <<
  9.         >> damage the data stored on your hard disks.           <<
  10.  
  11. If you cannot agree to these conditions, you should NOT use PARTFILT !
  12.  
  13.  
  14.  
  15. I CANNOT guarantee that PARTFILT will work for you. However I've done
  16. my best to test the program and I can only say that It works for me.
  17.  
  18.  
  19. Henk Kelder
  20. hkelder@inetgate.capgemini.nl 
  21. Certified daddy (by my kids)
  22.  
  23. My homepage for the latest version: 
  24.  
  25.   http://www.os2ss.com/information/kelder/index.html
  26.  
  27.  
  28.  
  29.  
  30. PARTFILT.FLT
  31. ============
  32.  
  33. Before anything else: PARTFILT is based on the excelent work of
  34. Deon van der Westhuysen. I only made minor modification to it. The source
  35. code is available under GPL conditions. Please send me a mail if you want 
  36. the sources. My current homepage lacks space to store the sources.
  37.  
  38. Also, Once PARTFILT is installed FDISK, Partition Magic and other Partition
  39. tools can no longer be trusted. Do not use these tools once PARTFILT is 
  40. installed.
  41.  
  42. PARTFILT.FLT is a BASEDEV FILTER device that as able to presents (fakes) 
  43. partition types that are normally unsupported by OS/2 in such a way to OS/2 
  44. that IFS's can be loaded on these partitions. Such virtualized partition 
  45. will always be mounted after the non-virualized partitions.
  46.  
  47. Currently (as far as I know) the filter can be used for two IFS's: 
  48. This one, FAT32.IFS and the Linux IFS.
  49. Beside that, PARTFILT.FLT can be used for other purposes such as making
  50. not-visible partitions visible or using multiple primary partitions.
  51.  
  52. PARTFILT.FLT supports the following options:
  53.  
  54. /Q      Load quietly
  55. /W      Enables Writing to the faked partitions. Without this option
  56.         the faked partitions are read-only.
  57.  
  58. /A      This option does two things: 
  59.              - Disables OS/2 to access all partitions, but:
  60.              - Virtualizes (or fakes) all known partitions. 
  61.                Known partitions are the normal FAT partitions, 
  62.                IFS (=mainly HPFS) partitions and the partitions specified
  63.                with the /P option. 
  64.                All primary partitions of known types are also virtualized, 
  65.                and will be accessable from OS/2.
  66.  
  67.         This option must be used in conjunction with the /M option.
  68.  
  69.         When this option is specified, the /W option is automatically set,
  70.         because otherwise OS/2 will not boot.
  71.  
  72. /M <mountlist> - Specifies the order in which partitions must be mounted.
  73.         Must be used with the /M option.
  74.  
  75.         WARNING: Incorrect usage of the /A and /M options could make your 
  76.                  system unbootable.
  77.  
  78.         => USING THE /A and /M OPTIONS is not advised! <=
  79.  
  80.         if you need more information on these options please see:
  81.  
  82.         http://ourworld.compuserve.com/homepages/hkelder
  83.         or just read on.
  84.  
  85.  
  86. /P <partition types to fake>
  87.         This is option is used to tell PARTFILT which partition type are to
  88.         be faked. You should NOT use partition types already supported by 
  89.         OS/2 since this would result in a single partition being mounted
  90.         two times. The list should consist of partition type numbers (in 
  91.         hexadecimal), separated by comma's. 
  92.  
  93.  
  94. The partition type number are as follows:
  95.         
  96.      01   FAT12       (supported by OS/2)               
  97.      02   XENIX_1                
  98.      03   XENIX_2                
  99.      04   FAT16       (supported by OS/2)             
  100.      05   EXTENDED               
  101.      06   HUGE        (supported by OS/2)             
  102.      07   IFS         (supported by OS/2)             
  103.      0A   BOOTMANAGER           
  104.      0B   FAT32                  
  105.      0C   FAT32_XINT13 or FAT32X          
  106.      0E   XINT13                 
  107.      0F   XINT13_EXTENDED        
  108.      41   PREP                   
  109.      63   UNIX                   
  110.      83   LINUX    
  111.  
  112.      10   Hidden partition (bits OR'd with partition type)
  113.  
  114. To make PARTFILT.FLT fake a FAT32 partition the /P option should be /P 0B.
  115. To make PARTFILT.FLT fake a FAT32X partition the /P option should be /P 0C.
  116. To make PARTFILT.FLT fake a LINUX partition the /P option should be /P 83.
  117. Or you can use a comination of the types e.g. /P 0B,0C
  118.  
  119. The best location in the config.sys seems to differ depening on your 
  120. configuration. Some state FAT32.IFS will only work is PARTFILT is the 
  121. first basedev, other claim it only works if PARTFILT is the last one.
  122.  
  123. A specific problem was reported when using a SCSI powersave basedev that
  124. only seemed to work if PARTFILT was the last basedev.
  125.  
  126.  
  127. HOW OS/2 SCANS FOR PARTITIONS
  128. =============================
  129.  
  130. During the boot process of OS/2 partitions are scanned twice, each using the 
  131. same algoritm to detect partitions and if OS/2 supports the partition types 
  132. found drive letters are assigned to them.
  133.  
  134. The first scan takes place during initial boot. (PARTFILT has no effect on
  135. this scan!) The main purpose of this scan seems to be to detect the OS/2 boot 
  136. drive and to assign a drive letter to it. For OS/2 to be able to boot this 
  137. drive letter may NOT change later on during the second scan. 
  138.  
  139. The second scan takes place while initializing the file system. Via calls to 
  140. OS2DASD.DMD the partitions are scanned and drive letters are assigned. 
  141. Only this second scan is influenced by PARTFILT.
  142.  
  143. So whatever you do, you must make sure that in both scans the OS/2 boot drive
  144. gets the same drive letters assigned.
  145.  
  146. If your FAT32 partition is not a primary partition and you don't care what 
  147. drive letter the FAT32 partition gets you may stop reading here. Simply do 
  148. not specify the /A or /M options and the FAT32 partition will get a drive 
  149. letter higher then all partition normally recoqnized by OS/2.
  150.  
  151. But if your FAT32 partition is a primary partition, or you want the FAT32 
  152. partition to have a drive letter before the OS/2 boot drive you will need to 
  153. do some extra work.
  154.  
  155. Just for the record the normal assignment order of OS/2 is:
  156. 1. (Current active) Primary partition on first HD
  157. 2. (Current active) Primary partition on second HD
  158. 3. and so on...
  159. 4. All extended partitions on first HD
  160. 5. All extended partitions on second HD
  161. 6. And so on...
  162. 7. Removeable drives
  163.  
  164. Should you need to use the /M parameter with PARTFILT you should know the
  165. the sequence numbers used as arguments are different from the normal order
  166. OS/2 uses. Here's where DISKINFO comes along. DISKINFO shows the seq# as 
  167. used by PARTFILT. See below.
  168.  
  169. Now suppose you have the following scenario:
  170.  
  171. C: is FAT16 (Primary)
  172. D: is HPFS  (Extended)
  173.  
  174. and you consider converting the FAT16 partition to FAT32 (with partition 
  175. magic) the following will happen after the conversion:
  176.  
  177. During the first scan the FAT32 partition is skipped and the OS/2 boot 
  178. drive will get C: assigned. During the 2nd scan FAT32 is recoqnized because
  179. you have loaded PARTFILT and is assigned C:. Your HPFS partition will get D: 
  180. assigned and OS/2 will not boot because OS/2 has already decided to go for C:
  181. but cannot find its stuff there.
  182.  
  183. There are two solutions:
  184. - Reinstall OS/2 on the HPFS partition without PARTFILT installed. OS/2 will
  185.   install everything on C: (HPFS). Later you could add PARTFILT and FAT32.IFS 
  186.   without the /A and /M options and the FAT32 partition will become D:.
  187.  
  188. - Add a fake (preferrably HPFS) partition between the FAT32 and HPFS 
  189.   partition. During the 1st scan, this partition will get C: and your boot 
  190.   partition will get D:. 
  191.   Load PARTFILT with the /A and /M options, where in my example the mountlist
  192.   should be: /M 0,2. 
  193.  
  194. Explanation:
  195. With the Fake partition installed the following partitions exist:
  196. 0 - FAT32
  197. 1 - fake HPFS
  198. 2 - HPFS (boot)
  199.  
  200. By not specifying seq# 1 in the mountlist, PARTFILT will not virtualize this
  201. partition and OS/2 will not assign a drive to it.
  202. By using a HPFS partition, Windows 95 will not recoqnize the fake partition
  203. and will not assign a drive letter to it.
  204.  
  205.  
  206. ABOUT HIDDEN PARTITIONS
  207. =======================
  208. PARTFILT can also be used to make hidden partitions visible to OS/2.
  209. Here the following mechanism is used:
  210.  
  211.   if /A is not used only the types specified after /P are virtualized.
  212.   (The /A switch controls whether or not to virtualize all partitions.)
  213.  
  214.   PARTFILT always unhides the partitions it virtualizes.
  215.  
  216.   For the partition types PARTFILT virtualizes the following rules apply:
  217.  
  218.   Normal partition types (types 1, 4, 6, 7, but also 11, 14, 16 and 17) 
  219.   are reported to OS/2 with their actual -unhidden- partition type. 
  220.  
  221.   Any other partition types specified after /P are reported as un-hidden IFS
  222.   partitions. 
  223.   Any other partition types NOT specified after /P are reported as their 
  224.   actual -unhidden- type. Note that this will only happen if you use the /A
  225.   argument.
  226.   
  227.   Keep in mind that if you specify /A you must also use the /M argument to
  228.   tell PARTFILT which partitions you want to mount.
  229.   
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236. DISKINFO.EXE
  237. ============
  238. When run with no options, diskinfo will scan and show all partitions.
  239. The following options are available:
  240.  
  241. /V - Verbose mode. Show more info on FAT32 partitions.
  242. /B - Show the boot sector of FAT32 partitions. Only if /V is only specified.
  243. /P - Allows you to specify a list of partition types that should also get
  244.      a partition sequence number. See PARTFILT for more information.
  245.  
  246.  
  247. An example of the output of PARTFILT without any options:
  248. -----------------------------------------------------------------------------
  249. There are 2 disks
  250. === Scanning physical disk 1.===
  251. 0:P   06 HUGE           Strt:H:     1 C:   0 S:   1 End:H:   127 C: 258 S:  63
  252. -:PA  0A BOOTMANAGER    Strt:H:     0 C: 524 S:   1 End:H:   127 C: 524 S:  63
  253. 1:LB  06 HUGE           Strt:H:     1 C: 259 S:   1 End:H:   127 C: 387 S:  63
  254. 2:LB  07 IFS            Strt:H:     1 C: 388 S:   1 End:H:   127 C: 523 S:  63
  255. === Scanning physical disk 2.===
  256. -:L   0B FAT32          Strt:H:     1 C:   1 S:   1 End:H:   127 C: 381 S:  63
  257. -:L   0B FAT32          Strt:H:     1 C: 382 S:   1 End:H:   127 C: 524 S:  63
  258. │ │││ │
  259. │ │││ └ Partition type (the number the specify after /P to get this
  260. │ │││                   partition type handled by PARTFILT)
  261. │ ││└── H = Hidden partition
  262. │ │└─── A = Active / B = Bootable via bootmanager
  263. │ └──── P = Primary / L = Logical (extended)
  264. └────── Seq # to be used in the OPTIONAL /M argument for PARTFILT.
  265.  
  266. 2 FAT32 partitions found!
  267. WARNING: /P not specified.
  268.          Only 'normal' partitions are assigned a partition sequence number!
  269. -----------------------------------------------------------------------------
  270.  
  271.  
  272. An example of the output of PARTFILT with /P 0B as argument:
  273. -----------------------------------------------------------------------------
  274. Also including partition types 0B.
  275. There are 2 disks
  276. === Scanning physical disk 1.===
  277. 0:P   06 HUGE           Strt:H:     1 C:   0 S:   1 End:H:   127 C: 258 S:  63
  278. -:PA  0A BOOTMANAGER    Strt:H:     0 C: 524 S:   1 End:H:   127 C: 524 S:  63
  279. 1:LB  06 HUGE           Strt:H:     1 C: 259 S:   1 End:H:   127 C: 387 S:  63
  280. 2:LB  07 IFS            Strt:H:     1 C: 388 S:   1 End:H:   127 C: 523 S:  63
  281. === Scanning physical disk 2.===
  282. 3:L   0B FAT32          Strt:H:     1 C:   1 S:   1 End:H:   127 C: 381 S:  63
  283. 4:L   0B FAT32          Strt:H:     1 C: 382 S:   1 End:H:   127 C: 524 S:  63
  284. │ │││ │
  285. │ │││ └ Partition type (the number the specify after /P to get this
  286. │ │││                   partition type handled by PARTFILT)
  287. │ ││└── H = Hidden partition
  288. │ │└─── A = Active / B = Bootable via bootmanager
  289. │ └──── P = Primary / L = Logical (extended)
  290. └────── Seq # to be used in the OPTIONAL /M argument for PARTFILT.
  291.  
  292. 2 FAT32 partitions found!
  293. -----------------------------------------------------------------------------
  294.  
  295.