home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 36 Tips / 36-Tips.zip / bakpak.os2 < prev    next >
Text File  |  1994-06-30  |  23KB  |  345 lines

  1.                 Using MicroSolutions Backpack for 
  2.                   Parallel Port Tape B/U on OS/2  
  3.  
  4.                          Tue, 7 Jun 1994                          
  5.  
  6.                           Roleigh Martin
  7.                      United HealthCare Corp.
  8.                        Mail Stop MN06-6130
  9.                        9705 Data Park Drive
  10.                        Minnetonka MN 55343
  11.                        
  12.                         Internet address:
  13.                            rol@uhc.com
  14.                  (if mailing through Compuserve)
  15.                       >INTERNET:rol@uhc.com
  16.  
  17.  CAVEAT:
  18.  =======
  19.  
  20.  The documentation below reflects my own experiences only.  No 
  21.  warranty is given for its use.  United HealthCare Corp. has no 
  22.  connection with this document.
  23.  
  24.  
  25.  BACKGROUND:                                                       
  26.  ===========                                                       
  27.                                                                    
  28.  The only way I know to use any brand parallel port Qic-80 tape
  29.  drive with OS/2 is to use the software that comes with it and the
  30.  OS/2 freeware called EABACKUP which creates two add'l files to
  31.  back up (with the native tape drive DOS software) and EARESTOR 
  32.  (part of EABACKUP) which rebuilds the EA's for OS/2.  The OS2USER 
  33.  forum on Compuserve has this OS/2 freeware for downloading (see 
  34.  below for details).  This is what we have successfully tested out 
  35.  (backup, simulated-crash, and full restore, and tested-ok-
  36.  operations afterwards).  
  37.  
  38.  I called all over trying to see if either Backpack, Conner, or 
  39.  Colorado supported OS/2 natively (they don't; Colorado is working 
  40.  on it). Indelible Blue didn't have any s/w for sale to support 
  41.  either of these 3 vendor's parallel port qic-80 backup tapes on 
  42.  OS/2 nor did they know of any in existence. 
  43.  
  44.  These are the two files in the OS2USER forum library(s) on        
  45.  Compuserve:                                                       
  46.                                                                    
  47.  [71041,736]     Lib: 4                                            
  48.  EABK21.ZIP/Bin  Bytes: 105520, Count: 1394, 29-Oct-92             
  49.                                                                    
  50.    Title   : Extended Attribute Backup Utility Version 2.02        
  51.    Keywords: EA BACKUP EXTENDED ATTRIBUTE FAT HPFS UTILITY FLOPPY  
  52.              RESTORE DELETE                                        
  53.                                                                    
  54.    Version 2.02 of a utility that backs up and restores OS/2       
  55.    extended attributes (EAs). EAs in a directory and its           
  56.    subdirectories can be backed up to a file on a floppy or hard   
  57.    drive. Works with HPFS and FAT, can selectively restore or      
  58.    delete EAs, and can backup "in use" EAs. OS/2 2.0 is required.  
  59.    An optional $5 contribution is requested.                       
  60.                                                                    
  61.    This version fixes a problem that prevents version 2.01 from    
  62.    running under OS/2 after the October IBM Service Pack is        
  63.    applied.                                                        
  64.                                                                    
  65.  [73323,2576]    Lib:17                                            
  66.  BOOT2X.ZIP/Bin  Bytes:  61234, Count:  797, 03-May-94             
  67.                                                                    
  68.    Title   : A utility to build a BOOTable OS/2 V2 system.         
  69.    Keywords: IBM OS2EWS BOOT2X DISK                                
  70.                                                                    
  71.    The BOOTOS2 program is a utility that allows you to build a     
  72.    BOOTable OS/2 V2 system using an existing OS/2 V2 system.       
  73.    The BOOT system can be installed on either Floppy Disks or a    
  74.    Hard Disk Partition. This is an IBM OS/2 Employee Written       
  75.    Software program.                                               
  76.                                                                    
  77.                                                                    
  78.  MY CONFIGURATION:                                                 
  79.  =================                                                 
  80.                                                                    
  81.  I have a 202mb PC with OS/2 2.1 installed on it.  Running OS/2    
  82.  FDISKPM.EXE, the partition information is as follows:             
  83.                                                                    
  84.  name    status      access      filesystem type mbytes            
  85.          startable    :primary   BOOTMANAGER       1               
  86.  DOS     bootable    C:primary   FAT             102               
  87.  OS/2    bootable    D:logical   FAT             100               
  88.                                                                    
  89.  Caveat: as you can see, I don't use HPFS, and I don't know how    
  90.  well, if at all, the backup method/software I've used works with  
  91.  HPFS.                                                             
  92.                                                                    
  93.                                                                    
  94.  MY TRIAL OS/2 BACKUP/DISK-DESTRUCTION/RESTORE:                    
  95.  ==============================================                    
  96.                                                                    
  97.  Today, 6-7-94, I just finished my test Backpack parallel port     
  98.  OS/2 backup/restore and everything works great, although there    
  99.  are a few steps involved.  They are documented below.             
  100.                                                                    
  101.  I did the following steps:                                        
  102.                                                                    
  103.  1. I used BOOTOS2 to create a single boot diskette. There is no   
  104.     spare space left on the diskette.                              
  105.                                                                    
  106.  2.  From my PC, I created a DOS 6.2 boot diskette. I put          
  107.      Backpack's BPBACKUP.EXE on this diskette plus a DOS freeware  
  108.      file utility QDEL (which I've had for years) which lets me    
  109.      deletes files via prompting (even system/read-only/hidden     
  110.      files). I created an OS/2 directory and put OS/2 FORMAT.EXE   
  111.      on the diskette in that directory.                            
  112.                                                                    
  113.  !!  Note: before doing step 3, I installed EABACKUP and           
  114.      EARESTOR on my OS/2 machine, in D:\CIS\UTILS.                 
  115.                                                                    
  116.  3.  Under a normal OS/2 HD boot, I ran "EABACKUP c:\ c:\ /s" and  
  117.      again as "EABACKUP d:\ d:\ /s".                               
  118.                                                                    
  119.  4.  I then booted off DOS diskette.                               
  120.                                                                    
  121.  5.  I ran A:BPBACKUP.  I then backed up C: and D: drives to a     
  122.      Qic-80 (DC 2120 3m) tape.                                     
  123.                                                                    
  124.  !!  Note: steps 6-7 simulate loosing one's hard disk.             
  125.                                                                    
  126.  6.  I booted off an OS/2 diskette; and typed LABEL and ENTER,     
  127.      ENTER. (you need this label name for step 7).                 
  128.                                                                    
  129.  7.  With A: as the current prompt, I typed: OS2\FORMAT D: /FS:FAT 
  130.      (the software asks you for the current, pre-existing label    
  131.      name: I entered OS2 which it was).                            
  132.                                                                    
  133.      (My destruction test only bothered to "crash D:" as my C:     
  134.      was a MS-DOS drive and wasn't needed to be "crashed" to prove 
  135.      whether my OS/2 drive would work if restored.)                
  136.                                                                    
  137.  8.  I booted off the DOS diskette now.                            
  138.                                                                    
  139.  9.  I ran A:BPBACKUP and restored the D: backup made in step 5 to 
  140.      D:.                                                           
  141.                                                                    
  142.  10. I typed D: to position myself to the root of D:.              
  143.                                                                    
  144.  11. I typed A:QDEL EA* and when offered opportunity to delete     
  145.      "EA DATA. SF" file, I deleted it -- you could have used (I'm  
  146.      guessing) ATTRIB or something else.                           
  147.                                                                    
  148.      The EARESTOR facility tells you that you can (a) skip backing 
  149.      up this file to tape, or (b) delete this file after           
  150.      restoring, or (c) let an OS/2 chkdsk /f program run fix       
  151.      things.  I chosed option b.                                   
  152.                                                                    
  153.  12. I booted off the OS/2 diskette.                               
  154.                                                                    
  155.  13. Since EABACKUP and EARESTOR were already on the drive         
  156.      prior to backing up the file, i typed:                        
  157.      D:\CIS\UTILS\EARESTOR d:\ d:\ /s                              
  158.                                                                    
  159.  14. I then booted off my OS/2 hard disk and everything works      
  160.      fine!                                                         
  161.                                                                    
  162.                                                                    
  163.  POSTSCRIPT -- HOW ANOTHER PERSON DOCUMENTS THE ABOVE GENERICALLY: 
  164.  ================================================================= 
  165.  The following is CIS message 236094 which clued me onto the       
  166.  direction to take.                                                
  167.                                                                    
  168.  > #: 236094 S6/New User Questions  [OS2USER]                      
  169.  >     22-May-94  05:25:49                                         
  170.  > Sb: #235826-tape bkup - OS2 file sys                            
  171.  > Fm: Ron Higgin 76516,2115                                       
  172.  > To: Robert L Wears 76357,2322 (X)                               
  173.                                                                    
  174.  Robert,                                                           
  175.                                                                    
  176.  You've already received some good advice re OS/2 backup           
  177.  utilities. Since you mentioned using Central Point's backup with  
  178.  OS/2 I'm going to give you some information you may find          
  179.  enlightening with regard to DOS and Windows based backup          
  180.  utilities.                                                        
  181.                                                                    
  182.  In general DOS based backup/restore (actually it's the RESTORE    
  183.  that does the damage) utilities will in fact DESTROY the links to 
  184.  extended attributes (EAs) stored in the special EA "holding"      
  185.  files on your FAT formatted disk (the "holding" files are those   
  186.  hidden ones with a " SF" file extension).                         
  187.                                                                    
  188.  The EA "link" information is actually stored in the directory     
  189.  entry for each file that has EAs attached to it. The directory    
  190.  entry bytes used to store this information are not used (that is, 
  191.  are marked as "reserved") in DOS systems. Consequently normal DOS 
  192.  based directory update activity will cause the bytes to be set to 
  193.  zero causing the EA link information to be lost. The EA           
  194.  information is still in the EA "holding" file BUT there is no way 
  195.  to reattach it to the owning file once the file's EA link         
  196.  information has been destroyed.                                   
  197.                                                                    
  198.  Most commonly used DOS based backup/restore utilities do NOT save 
  199.  and/or restore the EA link information. Users often believe their 
  200.  backup utility makes an EXACT image copy of the hard hard disk    
  201.  partition when used in "full" backup mode. Some advanced backup   
  202.  utilities for high priced backup hardware devices do BUT most, if 
  203.  not all, commonly used backup utilities (PCTools, etc.) do NOT.   
  204.  They in fact operate at the file rather than disk partition level 
  205.  and hence end up (inadvertently) setting the EA link information  
  206.  to zero. This is NOT a problem for backup programs that produce   
  207.  TRUE IMAGE copies of hard disk partitions.                        
  208.                                                                    
  209.  Note that the same "lost EA link" problem occurs when many DOS    
  210.  based disk defrag utilities are run against a partition           
  211.  containing files and directories ACCESSED while running under     
  212.  OS/2.  At this time the only DOS based defrag utilities I'm aware 
  213.  of that will not corrupt the EA links are:                        
  214.                                                                    
  215.     o Norton's SpeedDisk       (V4.5 or later)                     
  216.     o SoftLogic Disk Optimizer (V4.01 or later)                    
  217.     o FastTrax                 (commercial product)                
  218.     o SafePack                 (shareware)                         
  219.     o Disk Organizer           (shareware)                         
  220.                                                                    
  221.   In general all DOS based file/directory manipulation utilities   
  222.  are suspect when it comes to EA information. For example, running 
  223.  the DOS based "COPY" or "XCOPY" utility (under REAL DOS) against  
  224.  a file or directory with associated EA information will also      
  225.  result in a "lost EA link" condition for each such file written.  
  226.                                                                    
  227.  Most EA information associated with DOS based application         
  228.  directories and files is cosmetic in nature. For example, the     
  229.  OS/2 font and sort options for your directories ("folders" in     
  230.  OS/2 terminology) are saved as EA information. Hence losing the   
  231.  EA link only means you have to recustomize the "folder"           
  232.  properties. No biggie. On the other hand much of the EA           
  233.  information for OS/2 based files (both applications and the       
  234.  operating system itself) is CRITICAL to the operation of the      
  235.  system and/or application. Losing an EA link for a single file    
  236.  could result in you having to completely reinstall OS/2!          
  237.  Definitely a BIGGIE!                                              
  238.                                                                    
  239.  At this point I hope I've given you new/renewed respect for the   
  240.  importance of properly maintaining and preserving EA link         
  241.  information.                                                      
  242.                                                                    
  243.  Clearly the easiest, but not cheapest, way to avoid all problems  
  244.  with EAs is to use only OS/2 based functions to backup/restore,   
  245.  defrag, and generally manipulate files/directories on disk        
  246.  partitions accessed by apps running under OS/2. However I suspect 
  247.  you, like other users, want to protect your current investment in 
  248.  DOS based utilities. In the spirit of this I will offer you a     
  249.  reliable, albeit time consuming, alternative to buying new        
  250.  utility software.                                                 
  251.                                                                    
  252.  First, you MUST obtain a shareware utility package called         
  253.  EABACKUP. This package consists of two utilities: EABACKUP which  
  254.  will back up EA information from the "holding" files to a         
  255.  standard DOS format file and EARESTOR which, using the EABACKUP   
  256.  file, will restore and reattach file/directory EA information     
  257.  AFTER it has been "lost" through a restore/defrag operation. The  
  258.  EABACKUP/EARESTOR utility package can be downloaded from the      
  259.  OS2USER forum; file name is "EABK21.ZIP".                         
  260.                                                                    
  261.  Once you have obtaed the EABACKUP utility you may use the         
  262.  following procedure to safely defrag or backup/restore a disk     
  263.  using ANY DOS based utility:                                      
  264.                                                                    
  265.                                                                    
  266.     PRIOR to defragging or backing up FAT disk partitions          
  267.     =====================================================          
  268.                                                                    
  269.     1. Boot OS/2 from a DISKETTE. You can use your OS/2            
  270.        installtion disks to do this or, preferably, download a     
  271.        utility called "BOOTOS2" (file name "BOOT2X.ZIP" in the     
  272.        OS2USER forum) which will build you an OS/2 boot diskette   
  273.        customized to your system configuration.                    
  274.                                                                    
  275.     2. Run a "CHKDSK /F" against each disk partition to be         
  276.        defragged or backed up.  This insures you don't have any    
  277.        problems before you start messing around.                   
  278.                                                                    
  279.     3. Run the EABACKUP utility against each disk partition to be  
  280.        backed up or defragged.                                     
  281.                                                                    
  282.     4. Boot DOS from a DISKETTE.                                   
  283.                                                                    
  284.     5. Run your DOS based utility against each partition to be     
  285.        backed up or defragged.                                     
  286.                                                                    
  287.                                                                    
  288.     IMMEDIATELY AFTER defragging OR restoring FAT disk partitions  
  289.     =============================================================  
  290.                                                                    
  291.     1. Boot OS/2 from a DISKETTE.                                  
  292.                                                                    
  293.     2. Run a "CHKDSK /F" against each partition you just defragged 
  294.        or restored to.  This will remove the EA information from   
  295.        the "holding" file for any file/directory that had EA links 
  296.        BEFORE you defragged the corresponding partition. This will 
  297.        also prevent you from ending up with duplicate EA           
  298.        information in the "holding" file.                          
  299.                                                                    
  300.     3. Run EARESTOR against each partition you defragged or        
  301.        restored to.                                                
  302.                                                                    
  303.        NOTE                                                        
  304.        ----                                                        
  305.                                                                    
  306.        For RESTORE operations, make certain you ALWAYS restore the 
  307.        appropriate EABACKUP (*.EAB) files from the SAME tape that  
  308.        contains the files you just restored. It is absolutely      
  309.        CRITICAL that you provide EARESTOR with the correct level   
  310.        of the EAB files!                                           
  311.                                                                    
  312.     4. Run a "CHKDSK /F" against each partition you defragged or   
  313.        restored to.  This will verify that all is OK, giving you   
  314.        that nice warm feeling that OS/2 will be able to boot from  
  315.        the hard disk.                                              
  316.                                                                    
  317.     5. Boot OS/2 from the hard disk.                               
  318.                                                                    
  319.  Notice that all this was done WITHOUT ever using "Dual Boot".     
  320.  Follow this procedure religiously and you won't have any          
  321.  problems.                                                         
  322.                                                                    
  323.  One final note. Do NOT back up or EVER restore the EA "holding"   
  324.  (*. SF) files. Restoring a holding file will downlevel the EA     
  325.  information for the ENTIRE system, and will most likely result in 
  326.  a complete system failure!                                        
  327.                                                                    
  328.  Hope this helps.                                                  
  329.                                                                    
  330.                                                                    
  331.  Ron Higgin [OS/2 Advisor]                                         
  332.                                                                    
  333.                                                                    
  334.  ================================================================= 
  335.       The above documentation was written and/or gathered by:      
  336.  ================================================================= 
  337.  | Roleigh Martin, Rt. MN06-6130     Opinions are mine not UHC   | 
  338.  | UHC, Advanced Technology          AT&T/vmail:  (612) 945-6529 | 
  339.  | 9705 Data Park Drive              FAX:         (612) 945-6502 | 
  340.  | Minnetonka, MN 55343              Email: rol@lochness.uhc.com | 
  341.  |           **    B'days are good for health   **               | 
  342.  | Statistics show that people with most b'days live the longest | 
  343.  | When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl | 
  344.  
  345.