home *** CD-ROM | disk | FTP | other *** search
/ BURKS 2 / BURKS_AUG97.ISO / BURKS / LINUX / HOWTO / mini / lntloadr.txt < prev    next >
Text File  |  1997-07-07  |  4KB  |  153 lines

  1. NT OS Loader + Linux mini-HOWTO
  2. Bernd Reichert, <brt@swissplace.ch>
  3. v1.0, 5 May 1997
  4.  
  5.  
  6. 1. Abstract
  7.  
  8. This document decribes the use of the Windows NT boot loader to
  9. start Linux, a procedure which works only if you have Windows NT 
  10. and Linux installed on separate partitions on the _same_ disk.
  11. This has been tested with Windows NT 4.0 WS and Linux 2.0.
  12.  
  13.  
  14. 2. How the NT OS Loader works
  15.  
  16. The NT OS loader likes to have the boot sector from the other
  17. operating system available as a file. It reads this file and 
  18. starts the operating system selected, i.e. either Windows NT in 
  19. different Modes or any other OS.
  20.  
  21.  
  22. 3. Tips on how to install Windows NT and Linux on the same Disk
  23.  
  24. Install Windows NT first. If you want to use NTFS for your Windows 
  25. NT-partition, keep in mind, that the todays production version of Linux
  26. cannot access NTFS partitions. 
  27. I have read from a beta driver that can read NTFS-Partitions.
  28. You may create a separate FAT-Partition for data exchange 
  29. or you have to use DOS-formatted floppies.
  30.  
  31. Another Mini-howto recommends not to use NTs "Disk Administartor" 
  32. to create the Linux swap- and root-partitions. It is sufficient to 
  33. see the free space there. I also recommend to use linux's fdisk later.
  34.  
  35. Now boot linux from diskettes, create the swap and root-partition.
  36. Fdisk assumes the ntfs-partition to be a HPFS-partition. 
  37. This is normal.
  38.  
  39. Boot again from diskettes and install Linux as you like.
  40.  
  41. Just in case the installation procedure suggests that you could mount 
  42. the HPFS partition which it has found: Ignore it. 
  43.  
  44. When you come to the Lilo-Section, specify your Linux-root-partition 
  45. as your boot device because the Master Boot Record (MBR) of your
  46. harddisk is owned by Windows NT.
  47.  
  48. If you have a IDE-harddisk and your Linux-partition is is the second 
  49. partition, your boot-entry in /etc/lilo.conf looks like:
  50.  
  51.             boot=/dev/hda2
  52.  
  53. Run lilo with a kernel that matches your system. 
  54. Check the kernel by booting from diskette first if you are not sure.
  55.  
  56. If you cannot boot Windows NT now, you have a problem.
  57. I hope you have created a repair-disk recently.
  58.  
  59.  
  60. 4. The Linux part of the work
  61.  
  62. You have to boot from diskettes until the NT-part is fixed.
  63.  
  64. Now you have to peel the bootsector from the your Linux-root-Partition.
  65. With /dev/hda2 as your linux-partition, the dd-command is:
  66.  
  67.   # dd if=/dev/hda2 of=/bootsect.lnx bs=512 count=1
  68.  
  69. There is something wrong if your bootsect.lnx has more 
  70. than 512 bytes.
  71.  
  72. Now copy the file bootsect.lnx to a DOS-formated floppy if this is 
  73. your way to transfer files to the NTFS-Windows-partition.
  74.  
  75. You can copy it with 
  76.  
  77.  # mcopy /bootsect.lnx a:
  78.  
  79. or with
  80.  
  81.  # mount -t msdos /dev/fd0 /mnt
  82.  # copy /bootsect.lnx /mnt
  83.  # umount /mnt
  84.  
  85.  
  86. 5. The Windows NT part of the work
  87.  
  88. Copy the file from the diskette to C:\bootsect.lnx . I don't tell you
  89. how to do that.
  90.  
  91. What lilo.conf is for linux is c:\boot.ini for Windows NT.
  92. Remove the, system- and the read-only-attribute before you 
  93. can modify it with:
  94.  
  95. C:\attrib -s -r c:\boot.ini 
  96.  
  97. Now change the file boot.ini with an editor, notepad for example, as follows: 
  98.  
  99. [boot loader]
  100. timeout=30
  101. default=multi(0)disk(0)rdisk(0)partition(1)\WINNT
  102. [operating systems]
  103. multi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows NT Workstation ... 
  104. multi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows NT Workstation ...
  105. C:\BOOTSECT.LNX="Linux"
  106.  
  107. Only the last line has been added in this example.
  108. Restore the attributes after you have saved boot.ini with: 
  109.  
  110. C:\attrib +s +r c:\boot.ini 
  111.  
  112. After a shutdown of your Windows NT and a restart your should
  113. see the following:
  114.  
  115.   OS Loader V4.00
  116.  
  117.   Please select the operating system to start:
  118.  
  119.   Windows NT Workstation Version 4.0
  120.   Windows NT Workstation Version 4.0 [VGA mode]
  121.   Linux
  122.  
  123. Select Linux and see
  124.  
  125.   LILO loading zImage ....
  126.  
  127.  
  128. 6. Play it again Sam
  129.  
  130. A new copy of bootsect.lnx must be transfererd to C:\BOOTSECT.LNX 
  131. every time the bootsector of your linux-partition has been modified.
  132. This happens for example when you install a new kernel with lilo.   
  133. As you can see such a system in not ideal for testing experimental 
  134. kernels.
  135.  
  136.  
  137. 7. Open points
  138.  
  139. How can I boot Linux on another disk.
  140.  
  141.  
  142. 8. References
  143.  
  144.   * The Linux+WindowsNT mini-HOWTO
  145.   * The FAQ for FreeBSD 2.X
  146.  
  147.  
  148. 9. Feedback
  149.  
  150. Any comments are welcome.
  151.  
  152.  
  153.