home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 14 Text / 14-Text.zip / hpfs2f.txt < prev    next >
Text File  |  1994-11-05  |  12KB  |  246 lines

  1. HPFS to FAT
  2.  
  3. Keywords:  FastBack; FORMAT; Stacker; HPFS; FAT.
  4.  
  5. By:  Keith McLeod.  CompuServe:  73624,3057.
  6.                     INet:  73624.3057@compuserve.com
  7.  
  8.  
  9.  
  10. I needed and bought Stacker for OS/2 and DOS (V1.1).  It only
  11. supports FAT, so I had to first convert my large, primary OS/2 boot
  12. partition from HPFS to FAT.
  13.  
  14. It was an adventure.  Enough tricks and bugs involving utilities
  15. and OS/2 came up I felt I should document the process for others. 
  16. There is plenty of information on converting from FAT to HPFS.  No
  17. one, not even MLTMAINT, has thought of going, or accommodating
  18. going, the other way.
  19.  
  20. Some of the utilities involved:
  21.  
  22. OS/2's FORMAT command (on 2.1):
  23.     FORMAT.COM, copied by itself to a recovery floppy, does not
  24.     recognize the parameter /FS:HPFS.  It always formats to the
  25.     existing file system or to FAT.  I do not know the fix; when I
  26.     had to return to HPFS to recover other things I had to format
  27.     from the install disks, aborting the install process right
  28.     after its FORMAT.
  29.  
  30. MLTMAINT, et al:
  31.     Even its  portable backup  of the INI files and DESKTOP is *not*
  32.     portable between file systems.  (True for 3.1; 3.2 is now on
  33.     CompuServe but Carry Associates said it does not address this
  34.     -- they, too, never thought of HPFS-to-FAT.)  It will not
  35.     restore directories (folders) under DESKTOP having long
  36.     filenames.  [NO utility I have does:  OS/2's BACKUP command
  37.     (the one IBM recommends we use to backup the Desktop), FastBack
  38.     Plus for OS/2 V1.01, etc.  IBM Tech Support suggested looking
  39.     at the several Desktop maintenance utilities on their BBS
  40.     (ROBOSV.ZIP, WPSBK204.ZIP WPSBAK.ZIP, MLPMT30P.ZIP), but did
  41.     not know if any handled long names from HPFS to FAT.  For me,
  42.     it was less time to just restore to HPFS and change the folder
  43.     names to 8 characters.
  44.  
  45.     Only an OS/2 drag-and-drop to floppy resolves long names,
  46.     which, of course, cannot be done on directory Desktop as it is
  47.     in use to be able to use drag-and-drop.  It is not like this
  48.     would be a hard thing to do.
  49.  
  50.     I didn t think of this at the time (doink) but maybe you could
  51.     XCOPY Desktop to under a TEMP directory, then drag-and-drop it. 
  52.     But a previous experience trying something similar and having
  53.     some IBM magic disappear it leaves me leary.  I wouldn t count
  54.     on this alone.
  55.  
  56. FastBack Plus for OS/2 1.01
  57.     Clobbers the FAT boot sector.  At least when you do their Crash
  58.     Recovery of a tape created from HPFS onto a FAT system.  This
  59.     may not be entirely Symantec s fault but is certainly a bug. 
  60.     [Solution:  execute  SYSINSTX C:  off the OS/2 Installation
  61.     Disk.  All other files restored by FastBack are fine.]
  62.  
  63.     [FastBack does, tho, have an excellent Crash Recovery set-up,
  64.     though you d never know it by their documentation.  I had to
  65.     trip over it in their UTILITIES menu.  (Why would they hide
  66.     something so critical and valuable?)  This is a serious
  67.     shortcoming of Stacker which does not directly address
  68.     recovery.  Recovering a compressed drive requires a whole new
  69.     strategy.]
  70.  
  71. Stacker:
  72.     Just the fact it s still stuck in the old FAT world is an
  73.     obvious deficiency.  But I have heard no word whether they
  74.     intend to correct this, much less when it will be available. 
  75.     If you need to Stacker now, and need the versatility of its
  76.     compressing a drive shared between an Boot-Managed DOS and OS/2
  77.     drive, as I do, you will face the same problems herein
  78.     documented.
  79.  
  80. OS/2 Documentation:
  81.     Pg 433 (Appendix C) of the  Using ...  Guide features a
  82.      Rebuilding the Desktop  section, distinct from  Reverting to
  83.     the Original Desktop , which makes it sound like you can re-
  84.     build YOUR (customized) Desktop from the OS2*.INI files.  You
  85.     cannot.  It does not.  The 2 sections are 2 different ways of
  86.     Reverting to the Original.  And if you have spent the days I
  87.     have setting it up the way you like, and loaded applications
  88.     (like WordPerfect 6.0a) which added templates you do not want
  89.     to loose, this is ... disappointing.  [What is really
  90.      disappointing  is the consistant IBM policy -- adopted by
  91.     MicroSoft; or was it the other way round? -- of  only tell  em
  92.     what ya have ta about what we hide where .  God forbid users
  93.     should have an idea of how a system really works.]
  94.  
  95. A couple of notes on Stacker before I get to the step-by-step
  96. process.  This applies to 1.1, at the time of writing their latest
  97. upgrade.
  98.  
  99. 1.  Yes, you install the same stuff from the same diskettes on both
  100.     your DOS and OS/2 (FAT only) partition.
  101.  
  102. 2.  If you are using DBLSPACE on your DOS partition (can t on a
  103.     shared one), an extra disk is included to convert it; then you
  104.     do the normal Stacker install.  Unfortunately, there are bugs. 
  105.     Mine bombed almost completed but just when updating
  106.     AUTOEXEC.BAT; I recovered myself without help (just had to run
  107.     CONFIG and completed the PATH), but left things a bit messy. 
  108.     I recommend the MS de-Doublespace if you have room.
  109.  
  110.     I especially recommend not using Stacker s converter if, like
  111.     me, you have a shared D: drive.  (Shared between DOS and OS/2. 
  112.     Recall I am using Boot Manager.)  Stacker keeps the I: drive
  113.     from DBLSPACE for *its* un-compressed C:, so assignes a
  114.     *different* letter to the un-compressed shared drive (the next
  115.     higher after I:, which is J:) than the letter assigned for it
  116.     from OS/2 (which is F:).  This might be OK but it left me
  117.     uncomfortable, if only for the potential to confuse me.
  118.  
  119. 3.  Both the OS/2 and Windows swap files should be left un-
  120.     compressed.  (They can be on a compressed drive, but it s
  121.     slower.)  The Stacker install process automatically configures
  122.     it this way by default; the Windows file, though, only if it is
  123.     a permanent one and is found.  (It requires contiguous space.) 
  124.     Therefore, if you ever *convert* from Windows temporary to
  125.     permanent swap, and your temporary swap file has been on the
  126.     compressed drive, re-configure the compressed space (easy with
  127.     the CONFIG command) and assign the swap file to the drive for
  128.     the uncompressed region of the partition.
  129.  
  130.     But Stacker s automatic process may not leave enough room for
  131.     the OS/2 dynamic swap file.  Depends on how large you want to
  132.     allow it to get.  You may want to do a custom install where you
  133.     control the amount of non-compressed space.
  134.  
  135. 4.  Other files may need to be left uncompressed, and can be placed
  136.     on the uncompressed region of the original partition (which
  137.     will be a new  drive , as C: will have the compressed files in
  138.     one file-cum-C:-drive).  Although it may not be necessary, for
  139.     safety s sake I did this for my Oracle database files.  (ORACLE
  140.     assumes it is using pre-allocated space which, when not really
  141.     used, compresses all to heck.  If you suddenly INSERT a lot of
  142.     data ... someone could be fooled, and ill-prepared.  So,
  143.     applications expecting pre-allocated and/or contiguous disk
  144.     space may be better off with that space uncompressed.)
  145.  
  146.  
  147.  
  148. Step by Step Conversion from HPFS to FAT, with particular attention
  149. to preparing to Install Stacker:
  150.  
  151. 1.  Rename any files to 8.3 naming format.
  152.     This will only need doing to the Desktop folders and any files
  153.     you created.  OS/2's files are all 8.3 to fit either file
  154.     system.  Drag-and-drop to floppy any you created, if there are
  155.     few and are small enough.
  156.  
  157. 2.  Even if you don t usually do this with new software, relying on
  158.     a systemic backup:  DISKCOPY the 2 Stacker Install disks.
  159.     Consider a recovery:  if you have too much data to fit an
  160.     uncompressed drive, re-installing Stacker may have to come part
  161.     way through a total re-load as a distinct step.
  162.  
  163. 3.  Re-work your backup strategy.  (This is not easy given this
  164.     area is totally ignored by Stacker.  Well, they do charge for
  165.     technical support calls.  They may LIVE for users in trouble. 
  166.     Unfortunatly, it is beyond the scope of this article to try to
  167.     cover this, and I am myself too new to Stacker to offer much
  168.     expertise.  But I can comlain!)  At least have some idea how
  169.     you expect to recover from a worst-case once Stacker is
  170.     installed.
  171.  
  172. 4.  Have 2 copies of the OS/2 boot sets (the first 3 disks in the
  173.     OS/2 install set); make 1  Stacker-aware .
  174.     Again, something you ll always need after the install, and
  175.     possibly during if anything goes wrong.  Drivers must be added
  176.     to the CONFIG.SYS file of any boot drive so what gets booted
  177.     knows the files are compressed.
  178.     To make one set  Stacker-aware  before installing Stacker,
  179.     execute the STACBOOT command off Stacker Install disk 2 against
  180.     disk 1 (the 2nd boot-set disk) of the OS/2 boot set.  It adds
  181.     the necessary drivers to the default CONFIG.SYS file there. 
  182.     Any boot off them will expect the disks to be compressed. 
  183.     (What if they are not?  Will it come up any way?  Can I
  184.      Stacker-aware  all my boot sets?  Don t know.)
  185.  
  186. 5.  Do your normal backup of everything you ll want to restore to
  187.     the FAT system, including the Desktop directory and
  188.     \OS2\OS2*.INI files.  However you do this.
  189.  
  190. 6.  Run CHKDSK, not simply to ensure its integrity, but to be sure
  191.     of the volume s label.  (DIR also gives this.) You may need to
  192.     give this to FORMAT.  (The OS/2 Install FORMAT does not care.)
  193.  
  194. 7.  Make a separate backup of your CONFIG.SYS file.  Edit it: 
  195.     remove (or REM out) the line  IFS=C:\...HPFS , usually the
  196.     first line.  This loads the HPFS manager, which should not
  197.     happen if you are FAT.  After you do your mass reload of files
  198.     but before booting off the new FAT drive, this must be copied
  199.     on.  [If you have a CD ROM, there will be another IFS command
  200.     for it.  It need not be touched.]
  201.  
  202. 8.  FORMAT.
  203.     As noted above, the FORMAT.COM command I copied out of the OS2
  204.     directory to my recovery disks only does FAT.  OK.  All I want. 
  205.  
  206. 9.  Load your files.
  207.     All of them, including Desktop and OS2*.INI.
  208.  
  209. 10.   COPY in that special CONFIG.SYS.
  210.  
  211. 11.   Boot from your new FAT hard drive.
  212.  
  213. 12.  Boot fails because you used FastBack Plus for OS/2.  Or maybe
  214.      other utilities provide this feature.
  215.  
  216. 13.  Boot off the install disks; insert the 1st install disk
  217.      ( Installation Disk , which, thanks to the geniuses at IBM,
  218.      comes before Diskette 1); while on drive A: (or whatever),
  219.      execute the command:  SYSINSTX C: (or whatever drive).  It
  220.      copies the boot files to C: s root directory.
  221.  
  222. 14.  Boot from your new FAT hard drive.  Install Stacker as it
  223.      advertises.
  224.  
  225. 15.  Drag-and-drop any files from diskette which had long names
  226.      under HPFS.  They have new, 8.3 names.
  227.  
  228. 16.  Complete setting up your new recovery procedure.  This will
  229.      include backing up any files YOU moved to the uncompressed
  230.      region (drive) of your partition.  (Any files Stacker puts
  231.      there, it will create as needed on any re-start.  I think. 
  232.      I m almost certain.  I haven t tried it, but they say it
  233.      does.)
  234.  
  235. 17.  Since OS/2 assigns drive letters dynamically (the user has no
  236.      control nor way of fixing them as one does in DOS), and since
  237.      Stacker must take a drive letter for each un-compressed (real,
  238.      physical) drive, if you have a CD ROM or other such letter-
  239.      addressable peripheral, it will come up with a different drive
  240.      letter assignment.  This necessitates changing the drive in
  241.      the PATH of anything which accesses it.  If you had drives C:
  242.      and D: and your CD was E:, it will now be G:.
  243.  
  244.  
  245. Simple!
  246.