home *** CD-ROM | disk | FTP | other *** search
/ PC Administrator / spravce.iso / BootPart / BOOTPART.TXT < prev    next >
Encoding:
Text File  |  1998-08-14  |  9.6 KB  |  219 lines

  1. SEE SPECIAL BOOTPART 2.20 INFO AT THE END OF THIS DOCUMENT
  2.  
  3.  
  4. Boot Partition 2.20 for WinNT (c) 1995-98 G. Vollant (info@winimage.com)
  5. WEB : http://www.winimage.com and http://www.winimage.com/bootpart.htm
  6. Add a partition to the Windows NT Multi-boot loader
  7. Usage : When running under Windows NT or MS-Dos
  8.        BOOTPART
  9.           List all partitions, with numbers
  10.        BOOTPART <part_number> <filename> [<name_of_system>]
  11.           where : part_number : a number of a partition (or A: for floppy)
  12.                   filename : the file name of the bootfile to create
  13.                   name_of_system : the name to be added in BOOT.INI
  14.               Create a boot file for the partition, and if name_of_system
  15.                  is specified, register it in BOOT.INI
  16.           You can also replace <part_number> by DOS622 or WIN95 to create boot sectors for these systems.
  17.       BOOTPART LIST
  18.          List the entries in BOOT.INI (you can remove them after with BOOTPART)
  19. Under MS-Dos (MS-Dos 6.22 or the "MS-Dos 7.0" from Windows 95) only:
  20.       BOOTPART <part_type> BOOT:C:
  21.          where <part_type> is DOS622, WIN95 or WINNT, rewrite the boot sector
  22.              of C: to boot MS-Dos 6.22, Win95, or the NT Boot loader
  23.       BOOTPART REWRITEROOT:C:
  24.          Move the IO.SYS and MSDOS.SYS files from MS-Dos 6.22 to the beginning
  25.              of the partition
  26.  
  27. ------------------------------------
  28.  
  29. BOOTPART lets you add partitions to the Windows NT Multiboot menu. Usually,
  30. the only partitions on the Windows NT multiboot are the one or more installations of
  31. Windows NT.
  32.  
  33. With BOOTPART, you can add any partition to the menu. You can add OS/2
  34. Multiboot or Linux Partitions (with Lilo) to the menu.
  35.  
  36. It seems it's actually impossible to add an HPFS partition with OS/2 boot.
  37. If you find a workaround, please let me know.
  38.  
  39. BOOTPART creates a 512 byte file that contains an image of a boot sector
  40. that loads the boot sector of the partition. That is, it creates a small program
  41. that loads and executes the specified partition's boot sector.  
  42. Thereafter, this file is
  43. declared in C:\BOOT.INI (a text file used by the Windows NT boot menu). The
  44. boot sector comes from FDFormat and WinImage.
  45.  
  46. Note that under Windows NT, BOOTPART must be run from the Administrator account.
  47.  
  48. FDFormat can be downloaded under the name FDFORM.ZIP in the PCHW compuserve
  49. forum, or by ftp (ftp://ftp.coast.net/SimTel/msdos/diskutil/fdform18.zip).
  50. This tool, written by C.H. Hochstatter, formats floppies under MSDOS in
  51. normal (1.44 MB) or special (1.68 MB) capacity. It will also write a boot sector that
  52. boots the harddisk.
  53.  
  54. WinImage, a Windows (Windows 3.1, 95 and NT) shareware I've written, can
  55. read, write, and format floppies in any capacity (including 1.68 MB), and
  56. build an image file of a floppy. It can extract from, or inject files into
  57. an image, and change the image size. The WinImage web site is :
  58.  
  59.   http://www.winimage.com/winimage.htm
  60.  
  61. It can be downloaded under name WINIMA25.ZIP in the WUGNET compuserve forum,
  62. or by ftp (ftp://ftp.coast.net/SimTel/win3/diskutil/winima25.zip).
  63. (and soon WINIMA30.ZIP with image file compression !!)
  64.  
  65.  
  66. Example :
  67.  You create and move to a directory for the boot file, and display the
  68.  list of partitions :
  69. C:\>MD BOOTFILE
  70. C:\>CD BOOTFILE
  71. C:\BOOTFILE>BOOTPART
  72. Boot Partition 2.20 for WinNT (c) 1995-98 G. Vollant (info@winimage.com)
  73. WEB : http://www.winimage.com and http://www.winimage.com/bootpart.htm
  74. Add partition in the Windows NT Multi-boot loader
  75. Run "bootpart /?" for more information
  76.  
  77.  0 : C:* type=6 (BIGDOS Fat16), size = 1044193 KB
  78.  1 : C:  type=a (OS/2 Boot Manag.), size = 8032 KB
  79.  2 : C:  type=5 (Extended), size = 8032 KB
  80.  3 : C:  type=7  (HPFS/NTFS), size = 8001 KB
  81.  4 : D:  type=6 (BIGDOS Fat16), size = 261104 KB
  82.  5 : D:  type=5 (Extended), size = 769024 KB
  83.  6 : D:  type=7  (HPFS/NTFS), size = 102384 KB
  84.  7 : D:  type=5  (Extended), size = 369664 KB
  85.  8 : D:  type=7   (HPFS/NTFS), size = 369648 KB
  86.  9 : D:  type=83  (Linux native), size = 296944 KB
  87.  
  88. Note : Extended partitions (type 5) are the only partitions that can contain
  89. other partitions. It's not useful to add extended partitions to the NT boot
  90. menu !
  91. The * after C: means that partition 0: is the active partition.
  92.  
  93. Now, you add some partitions :
  94. C:\BOOTFILE>BOOTPART 9 BOOTLINX.BIN Linux
  95. C:\BOOTFILE>BOOTPART 1 BOOTLINX.BIN Boot Manager OS/2
  96. C:\BOOTFILE>BOOTPART a: BOOTLINX.BIN Boot floppy A:
  97.  
  98. The last line (A:) is special, and is designed for a BIOS configured for
  99. booting from C: before reading from the floppy (A:) .
  100.  
  101. The next time you boot, the Windows NT menu will show Linux, OS/2 Boot
  102. Manager, and the floppy !
  103.  
  104. BOOTPART is a Win32 console application written in C++ and compiled with Visual C++ 2.2
  105. bootpa32.mak is the Visual C++ Makefile, bootpart.cpp is the source file,
  106. bootpart.exe is the executable, and bootpart.txt is this documentation.
  107.  
  108. -----------------------------------------------------------------------------
  109.  
  110. Fast tips :
  111.  
  112. To repair the Windows NT boot sector
  113. ====================================
  114. Windows NT installs a boot sector that lauches NTLDR and displays the
  115. Windows NT boot menu. If you lose this boot sector, Bootpart can restore
  116. it.
  117. Boot under MS-Dos (this can be MS-Dos 6.22 on your hard disk, on an MS-Dos
  118. bootable floppy, or the "MS-Dos 7.0" included in Windows 95 (you can obtain it
  119. by pressing Shift+F5 when Win95 loads). Then, enter the command :
  120. BOOTPART WINNT BOOT:C:
  121.  
  122. If you want to remove the WinNT boot sector, you can replace it with the
  123. command "BOOTPART DOS622 BOOT:C:" or "BOOTPART WIN95 BOOT:C:"
  124.  
  125. To have both MS-Dos 6.22 and Windows 95 in the NT menu (forgot F4 !)
  126. =======================================================================
  127. The standard situation for a computer that multiboots to Windows NT,
  128. Windows 95, or MS-Dos 6.22 is : the user selects a "Windows 95" entry
  129. in NT menu, and, then must press F4 if he wants to  boot MS-Dos 6.22.
  130. If you don't have this situation (i.e. : you don't have both Win95 and
  131. MS-Dos 6.22 on your system, but want to have both), see the next section.
  132.  
  133. Just enter these bootpart command :
  134. BOOTPART DOS622 C:\BOOTSECT.622 "MS-Dos 6.22"
  135. BOOTPART WIN95 C:\BOOTSECT.W95 "Windows 95"
  136. BOOTPART REWRITEROOT:C:
  137.  
  138. The last line (REWRITEROOT:C:) MUST BE EXECUTED UNDER MSDOS, and moves the
  139. MS-Dos IO.* and MSDOS.* files to the beginning of the root directory.
  140.  
  141. You can visit the page : http://www.bcpl.lib.md.us/~dbryan/directboot.html
  142. for more information on booting WinNT/Win95/DOS.
  143.  
  144. If you have WinNT & Win95 and you only want to add MS-Dos
  145. =========================================================
  146. Take an MSDos 6.22 floppy, copy the files IO.SYS, MSDOS.SYS, and
  147. COMMAND.COM to C:\ as IO.DOS, MSDOS.DOS, and COMMAND.DOS (warning :
  148. these files can be hidden, but you can ask File Manager or Explorer to
  149. display hidden files). Then go to the section "To have both MS-Dos
  150. 6.22 and Windows 95 in the NT menu"
  151.  
  152. If you have WinNT & MS-Dos and you only want to add Win95
  153. =========================================================
  154. Install Win95 in a new directory (start the install under MS-Dos 6.22
  155. or Windows 3.1) and go to the section "To have both MS-Dos 6.22 and
  156. Windows 95 in the NT menu"
  157.  
  158. To add OS/2
  159. ===========
  160. Unfortunatelly, I can't directly add an OS/2 partition by itself (if you
  161. have a workaround or fix, I'd be happy to hear about it !).
  162. Install the OS/2 Boot Manager (you need 1 MB free on your first hard disk),
  163. add the OS/2 partition in the boot menu with automatic start (0 sec.
  164. waiting), and then add the OS/2 Boot Manager partition on your NT menu with
  165. BootPart.  Sometimes, when you install OS/2 Boot Manager, it becomes the active 
  166. partition of your first hard disk.  You can use FDISK to set the
  167. partition with NT boot manager as the active partition later.
  168.  
  169. To add Linux
  170. ============
  171. For Linux, you must install Lilo at the beginning of the Linux partition
  172. (as with OS/2 boot manager) and then add the Linux partition with Bootpart:
  173.  
  174. When you install Linux or run liloconfig, select "Superblock of the root
  175. linux partition" as location of Lilo. In my sample, this adds the line
  176. "boot=/dev/sdb4" on the file /etc/lilo.conf
  177.  
  178.  
  179. ---------------------------------------------------------------------------------
  180.  
  181. Bootpart is cardware.
  182. If you like it, please send me a postcard from your city to:
  183. Gilles Vollant
  184. 4, rue de Morsang
  185. F-91600 Savigny
  186. France
  187. And try WinImage :
  188.  http://www.winimage.com/winimage.htm
  189.  
  190. I want thank a lot Matthew Gardiner and Dave Bryan for review of this
  191. documentation.
  192.  
  193. ---------------------------------------------------------------------------------
  194.  
  195. This program comes without any warranty either implied or expressed. In no
  196. case shall the author be liable for any damage or unwanted behavior of any
  197. computer hardware and/or software.
  198. You can send me question at info@winimage.com
  199. If you ask help, please send your boot.ini and the result of BOOTPART without
  200. parameters (the list of partition on the system).
  201.  
  202. ---------------------------------------------------------------------------------
  203. NEW IN VERSION 2.12 beta
  204.  
  205. This version is now :
  206. - compatible with disk over 4 GB
  207. - can restore Win95 OEMSR2 (or Win98) and WinNT BootLoader (for NTLDR of WinNT 5.0) 
  208.     in FAT32 partition
  209.  
  210. ---------------------------------------------------------------------------------
  211. NEW IN VERSION 2.14 beta
  212. - add "BOOTPART Win95SR2 xxx" and "BOOTPART Win98 xxx" option for Win95 OEMSR2 and
  213. Win98 bootsector
  214.  
  215. ---------------------------------------------------------------------------------
  216. NEW IN VERSION 2.20
  217. - Released version, not a beta
  218. - fix bug in writting the WinNT and Win95/98 bootsector in FAT32 partition
  219.