home *** CD-ROM | disk | FTP | other *** search
/ Shareware Supreme Volume 6 #1 / swsii.zip / swsii / 198 / DOS6ALL.ZIP / PD0321.TXT < prev    next >
Text File  |  1993-02-04  |  7KB  |  129 lines

  1. ======================================================================
  2.   Microsoft(R) Product Support Services Application Note (Text File)
  3.             PD0321: REMOVING NON-DOS PARTITIONS WITH DEBUG
  4. ======================================================================
  5.                                                    Revision Date: 4/93
  6.                                                       No Disk Included
  7.  
  8. The following information applies to Microsoft MS-DOS(R) versions 3.2,
  9. 3.21, 3.3, 4.0, 4.01, 5.0, and 6.0.
  10.  
  11. INTRODUCTION
  12. ============
  13.  
  14. There are currently several different versions of MS-DOS in the
  15. personal-computer environment, both in the OEM-licensed versions and
  16. in the Microsoft packaged-product versions. The hard-disk-management
  17. capabilities of MS-DOS vary from one version to another. For example,
  18. MS-DOS versions 3.2 and 3.21 can address a single hard-disk partition
  19. of up to 32 megabytes (MB); MS-DOS version 3.3 can address multiple
  20. hard-disk partitions, with a primary DOS partition of up to 32 MB and
  21. an extended DOS partition containing logical drives of up to 32 MB
  22. each; and MS-DOS versions 4.0, 4.01, 5.0, and 6.0 can address multiple
  23. hard-disk partitions with sizes up to 2 gigabytes (GB).
  24.  
  25. For those using versions of MS-DOS that have lesser levels of hard-
  26. disk support, such as MS-DOS versions 3.2 and 3.21, there are a number
  27. of third-party hard-disk-management software packages that allow
  28. MS-DOS to access multiple partitions and/or partitions in excess of 32
  29. MB. However, these third-party packages may use non-DOS constructs to
  30. assist in managing the hard disk, possibly including non-DOS
  31. partitions. These non-DOS constructs can cause problems when you
  32. upgrade to later versions of MS-DOS because versions of MS-DOS earlier
  33. than 5.0 assume that non-DOS constructs are owned by another operating
  34. system and, therefore, do not use, delete, or change non-DOS
  35. partitions or other non-DOS constructs in any way.
  36.  
  37.   WARNING: Some computers require the use of third-party hard-disk-
  38.   partitioning software because the system ROM BIOS does not fully
  39.   support the drive parameters of the hard disk that is being used or
  40.   because the hard disk has more than 1024 data cylinders. If you are
  41.   unsure if your system supports your hard disk, consult your hardware
  42.   manufacturer or the manufacturer of your partitioning software
  43.   before proceeding.
  44.  
  45. USING DEBUG TO REMOVE A NON-DOS PARTITION
  46. =========================================
  47.  
  48. The Debug script below, used with the MS-DOS Debug program, deletes
  49. non-DOS partitions when you upgrade to a new version of MS-DOS,
  50. enabling the entire hard disk to be used by MS-DOS. It does so,
  51. however, by clearing out the entire partition table on the hard disk,
  52. which results in the DELETION OF ALL PARTITIONS on the hard disk. You
  53. need to use this method if your current version of MS-DOS cannot
  54. delete non-DOS partitions.
  55.  
  56.    WARNING: Because all data on your hard disk will be destroyed by
  57.    this procedure, you must back up your hard disk before using this
  58.    Debug script.
  59.  
  60. There are two ways to use the following Debug script:
  61.  
  62.  - Run Debug and type the Debug commands from the center column of
  63.    Table 1 at the corresponding Debug prompt. (The left column of the
  64.    table shows the prompts that are displayed by Debug. You do not
  65.    need to type the comments in the right column.)
  66.    
  67.    -or-
  68.  
  69.  - Type the command in the center column of Table 1 into a file using
  70.    a text editor such as MS-DOS Editor and then use input redirection
  71.    to feed the resulting file into Debug. For example, if you typed
  72.    the commands into a file called HDPART.SCR, you would clear your
  73.    partition table by typing the following at the MS-DOS command
  74.    prompt and then pressing ENTER:
  75.       
  76.       debug < hdpart.scr
  77.  
  78.        Table 1: Debug Script to Erase Hard-Disk Partition Table
  79.        ------------------------------------------------------------
  80.        
  81.        Debug       Enter Debug      Comments
  82.        Prompts     Commands
  83.        ------------------------------------------------------------
  84.        -           A 100            Assemble from CS:0100
  85.        nnnn:010    INT 13           Call interrupt 13
  86.        0
  87.        nnnn:010    press the        (nnnn in the segment address).
  88.        2           ENTER key
  89.        -           RAX              Replace AX register.
  90.        AX 0000                      
  91.        :           0301             Write on sector.
  92.        -           RBX              Replace BX register.
  93.        BX 0000                      
  94.        :           0200             Start from ES:200
  95.        -           F 200 L 200 0    We want to write zeros.
  96.        -           RCX              Replace CX register.
  97.        CX 0000                      
  98.        :           0001             Cylinder, 0, sector 1.
  99.        -           RDX              Replace DX register.
  100.        DX 0000                      
  101.        :           0080             First physical hard disk, head
  102.                                     0. (Substitute 0081 for this
  103.                                     entry if clearing the table on
  104.                                     the second physical hard disk,
  105.                                     0082 if clearing the third
  106.                                     physical hard disk, and so
  107.                                     forth).
  108.        -           P                Proceed (Debug will display
  109.                                     several lines of information).
  110.        -           Q                Quit Debug.
  111.  
  112. This script completely clears the partition table on your hard disk,
  113. preparing the hard disk for repartitioning using the MS-DOS Fdisk
  114. program. (When you run Fdisk for the first time after using this
  115. procedure and before reinstalling MS-DOS, the message "No partitions
  116. defined" should be displayed if the partition deletion procedure was
  117. successful.) For more information about using Fdisk, see the
  118. "Microsoft MS-DOS User's Guide and Reference" for version 3.2, 3.21,
  119. 3.3, 4.0, 4.01, or 5.0, or the "Microsoft MS-DOS User's Guide" for
  120. version 6.0.
  121.  
  122. Non-DOS partitions on your hard disk are also erased if you perform a
  123. low-level format. Consult your hardware manufacturer for specific
  124. instructions on performing a low-level format on your hard disk.
  125.  
  126.   WARNING: Performing a low-level format will completely erase all
  127.   data on your hard disk, including all defined partitions.
  128.  
  129.