home *** CD-ROM | disk | FTP | other *** search
/ PC World 1999 October / PCWorld_1999-10_cd1.bin / Hardware / Drivers / MastBoot / Ctimne1.txt < prev    next >
Text File  |  1999-08-30  |  9KB  |  140 lines

  1. AEFDISK
  2.  
  3.  
  4. Introduction
  5.  
  6. AEFDISK is a disk partitioning program. It supports all partition types. The original FDISK program doesn't allow you to create more than one primary partition. AEFDISK does, therefore it's a powerful tool for creating any combinations of partitions. This can be extremely useful for system administrators, schools and computer store employees.
  7.  
  8. Put it in the autoexec.bat of a system floppy, and you're ready to partition hundreds of harddisks quickly!
  9.  
  10. AEFDISK can handle as many harddisks as your hardware and BIOS can, and also tested with SCSI controllers which support standard BIOS calls. 
  11.  
  12.  
  13.  
  14. Features 
  15.  
  16.  
  17.  
  18. Creating all types of partitions, with absolute or relative size 
  19. Deleting partitions based on their type or place in the partition table 
  20. Hiding and unhiding primary FAT and NTFS/HPFS partitions 
  21. Formatting primary FAT16 and FAT32 partitions immediately and quickly 
  22. Activating a partition 
  23. Installing loader code in the Master Boot Record 
  24. Displaying partition information 
  25. Displaying harddisk information 
  26. Completely command line driven for speed and flexibility 
  27. Automatic calculation of free space and available partition entry 
  28. Handling as many harddisks as your hardware and BIOS support 
  29. Handling harddisks up to 2 terabytes with EBIOS support 
  30. ANSI C library version is also available 
  31.  
  32.  
  33. Usage 
  34.  
  35. The syntax is: aefdisk [harddisk number] <command1> [command2] ...
  36.  
  37. Valid commands are:
  38.  
  39. /pri:<size>:<type>[:n] - create primary partition 
  40. /ext:<size>[:n] - create extended partition 
  41. /log:<size> - create logical drive 
  42. /delete:<n> - delete an entry 
  43. /deltype:<type>[:n] - delete partition(s) of specified type (registered version only)
  44. /delall- delete all partitions on a disk 
  45. /notdel:<type> - delete all except specified type 
  46. /activate:<n> - activate a partition 
  47. /hidefat[:n] - hide primary FAT partition(s) 
  48. /hident[:n] - hide primary NTFS/HPFS partition(s) 
  49. /unhidefat[:n] - unhide primary FAT partition(s) 
  50. /unhident[:n] - unhide primary NTFS/HPFS partitions 
  51. /formatfat[:n][:label] - format FAT partitions, it can be a switch
  52. /putsize - put the HD size in HDSIZE environment variable 
  53. /mbr - install the standard DOS MBR loader 
  54. /show - show partition table 
  55. /info - show logical characteristics
  56. /? - this help message 
  57.  
  58. Valid switches are: 
  59.  
  60. /rel - use percentages at size definition
  61. /reboot - reboot when ready
  62. /noebios - disables EBIOS access
  63. /nolimit - disables FAT limit check 
  64.  
  65. Options between <> are compulsory, between [] are not 
  66. n is a valid partition number from 1 to 4 if defined, except the formatfat command 
  67. Harddisk number is a number starting from 1. The default is 1. If you specify '*' here, then all commands will be executed on all installed harddisks 
  68. The /rel command is effective for the commands after it 
  69. The type is hexadecimal. Don't append the 'h' at the end 
  70. If there was an error, then the return value is 1, else 0. On error, the modified partition table will not be written. This means that you can safely use the program in a batch file. 
  71.  
  72. Creating partitions
  73.  
  74. You can create partitions with the /pri, /ext or /log commands.
  75. The /pri command can be used to create primary partitions. The size and type must be specified, the partition number is optional. If the specified size is 0, then all available space will be allocated.
  76. The /ext command can be used to create an extended partition, which can contain many logical drives. Only one extended partition is allowed per harddisk. If the specified size is 0, then all available space will be allocated.
  77. The /log command can be used to create logical drives in an extended partition. The extended partition must exist before using this command. 
  78.  
  79. Deleting partitions
  80.  
  81. You can delete partitions with the /delete, /deltype, delall and /notdel commands. Don't put deleting commands after the  /rel switch!
  82. The /delete command deletes the specified partition entry.
  83. The /deltype command deletes a partition or partitions of the specified type. If the entry number is not specified, then all partitions of the specified type will be deleted. If the entry number is also specified, then the partition will be deleted only if the specified type matches with the partition type.
  84. The /delall command deletes all partitions on a harddisk.
  85. The /notdel command deletes all partitions except the specified types separated with commas. You can specify up to 20 types to be excluded. 
  86.  
  87. Relative sizes (registered version only)
  88.  
  89. The /rel command can be used to avoid specifying absolute MB sizes. If the /rel command is used then all size definitions will be treated as percent values from 1 to 100.
  90. This command can be used with the /pri, /ext and /log commands. This command calculates the unpartitioned space and divides it as specified, see the examples below.
  91. If a specified type doesn't allow the size that is calculated, then that partition will be automatically sized to the maximum size the type allows, and the remaining space will be added to the next partition which follows it on the command line. For example, you have a 5Gig harddisk, and do the following:
  92. aefdisk /rel /pri:50:6 /ext:50 /log:100
  93. Then aefdisk will create a 2Gig BIGDOS partition (not 2.5, because BIGDOS allows only 2Gig), gives a warning message, and append the remaining 0.5Gig to the extended partition. 
  94.  
  95. Hiding FAT and NTFS/HPFS partitions
  96.  
  97. The /hidefat command hides primary FAT partitions on a harddisk. If the partition entry is specified, then this command tries to hide only that partition. The /unhidefat command is similar.
  98. The /hident and /unhident commands are the same but for NTFS/HPFS partitions. 
  99.  
  100. Formatting FAT partitions:
  101.  
  102. The /formatfat command allows formatting FAT16 and FAT32 partitions. It can be a command or a switch: 
  103.  
  104. 1)If the partition number is not specified, then this command acts as a switch, and must appear before any partition creation command on the command line. In this case all partitions which are created will be immediately formatted. 
  105.  
  106. 2)If the partition number is specified, only that partition will be formatted, if it already exists. In this case, an optional volume label can be specified. If the specified partition number is 5 or higher, then it'll mean a logical drive. 5 means the first logical drive and so on. 
  107.  
  108. You have to reboot to use the formatted drive(s)! 
  109.  
  110. Other commands and switches:
  111.  
  112. The /mbr command installs the standard loader code on the specified harddisk. It's like the original 'fdisk /mbr' command.
  113. The /show command prints some information about the partition table of the specified harddisk.
  114. The /info command shows the logical characteristics of the harddisk and checks if extended BIOS is availabe.
  115. The /reboot command causes a reboot after all modifications are written back to the disk. If there is an error, then this command does nothing.
  116. The /noebios switch disables EBIOS access. This can be useful on machines which have buggy EBIOS support.
  117. The /nolimit switch disables FAT size checking. This may be useful when creating FAT partitions larger than 2 gigs.
  118. The /putsize command puts the HD size in megabytes to an environment variable named HDSIZE. This can be useful for making size dependant decisions in batch files.
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125. Examples 
  126.  
  127. aefdisk 2 /delall /pri:200:6 /pri:300:7:4 
  128. The above command deletes all partitions on the second harddisk and then creates two primary partitions. The first is a 200 MB BIGDOS partition,and it is be created in the first available entry. The second is a 300MB HPFS partition, and it is created in the fourth entry if it is empty. 
  129. aefdisk /formatfat /pri:300:7 /ext:1000 /log:1000 
  130. The above command creates a 300MB primary HPFS and a 1000MB extended partition with one 1000MB logical drive, then formats the logical drive. 
  131. aefdisk /rel /pri:30:6 /ext:70 /log:40 /log:60 
  132. The above command calculates the available unpartitioned space first. Then it creates a primary BIGDOS partition, which occupies 30% of the free space. The remaining 70% space is assigned to an extended partition. In the extended partition, there are two logical drives. The first occupies 40% of the extended partition, the second occupies 60%. 
  133. aefdisk 2 /mbr /hidefat 
  134. The above command installs the loader code in the MBR of the second harddisk, then hides all FAT partitions on it. 
  135. aefdisk * /reboot /hident
  136. The above command hides all primary NTFS partitions on all installed harddisks and reboots the computer. 
  137.  
  138.  
  139.  
  140.