home *** CD-ROM | disk | FTP | other *** search
/ PC World 1999 August / PCWorld_1999-08_cd.bin / doc / HOWTO / mini / Multiboot-with-LILO < prev    next >
Text File  |  1998-04-17  |  8KB  |  331 lines

  1.   Win95 + WinNT + Linux multiboot using LILO mini-HOWTO
  2.   Renzo Zanelli, rzanelli@southeast.net
  3.   v1.0, 26 March 1998
  4.  
  5.   This document describes how to use the to multiboot between Windows
  6.   95, Windows NT, and Linux.
  7.   ______________________________________________________________________
  8.  
  9.   Table of Contents
  10.  
  11.  
  12.   1. Introduction
  13.  
  14.   2. Installing the Operating Systems
  15.  
  16.      2.1 Installing Windows 95
  17.         2.1.1 Installing Windows NT 4.0
  18.            2.1.1.1 Installing Linux
  19.  
  20.   3. The Linux part
  21.  
  22.   4. The Windows NT part
  23.  
  24.   5. The Windows 95 part
  25.  
  26.   6. References
  27.  
  28.  
  29.  
  30.   ______________________________________________________________________
  31.  
  32.   1.  Introduction
  33.  
  34.   There are a number of documents available that describe in detail how
  35.   to multiboot just about any number of OS's using NT's OS loader.  When
  36.   I finally bought Windows NT, I already had Windows 95 and Linux
  37.   installed on my system and I was using LILO to multiboot between them.
  38.   I decided to add Windows NT to LILO instead of using NT's OS loader.
  39.  
  40.   Originally I had Windows 95 on my first IDE disk drive and Linux on my
  41.   second IDE disk drive.  The Linux drive became my third IDE drive and
  42.   I installed a new IDE disk for Windows NT as my second drive.  Even
  43.   though I haven't tried this in different configurations, I believe the
  44.   order with which each OS is installed or which drive it is installed
  45.   on is unimportant.
  46.  
  47.   Just remember to create those emergemcy bootup floppies when each OS
  48.   prompts you to!
  49.  
  50.   Because I used Gilles Vollant's BootPart utility and BootPart only
  51.   supports drives up to 4GB in size, this may not work if you have
  52.   drives of larger capacity.  If you need to work with drives greater
  53.   than 4GB, contact Gilles directly (see BootPart documentation for
  54.   Gilles' e-mail address).
  55.  
  56.  
  57.  
  58.   2.  Installing the Operating Systems
  59.  
  60.   When you install the OSes, make sure that all are installed on
  61.   bootable partitions.  I installed both Windows 95 and Windows NT on
  62.   Fat 16 partitions, so this procedure works on Fat 16 drives.  If you
  63.   decide to use Fat32 for Windows 95 and NTFS for Windows NT, check to
  64.   see if your version of Linux supports them and, if so, to what extent.
  65.  
  66.  
  67.   2.1.  Installing Windows 95
  68.  
  69.   Install Windows 95 on your first drive.  This will be your C: drive.
  70.   Remember to create the Windows 95 boot floppies when prompted to do
  71.   so.
  72.  
  73.   I have found that it is better if the Linux drive is removed from the
  74.   system when installing Windows 95, so that it is never detected and it
  75.   doesn't exist as far as Windows 95 is concerned.
  76.  
  77.   At this point, if you did everything correctly, you should be able to
  78.   boot Windows 95.
  79.  
  80.  
  81.  
  82.   2.1.1.  Installing Windows NT 4.0
  83.  
  84.   Install Windows NT 4.0 on your second drive.  When you create the
  85.   partition on this drive, make the partition bootable.  Not all
  86.   versions of Linux support NTFS, so I created a FAT16 partition, just
  87.   to be on the safe side and because I wanted to exchange data between
  88.   the Windows drives.
  89.  
  90.   When Windows NT installs, it will detect the presence of Windows 95
  91.   and will create an entry for it in the NT OS loader and you should see
  92.   three entries in the OS loader menu as follows:
  93.  
  94.  
  95.        Windows NT Workstation Version 4.00
  96.        Windows NT Workstation Version 4.00 [VGA mode]
  97.        Microsoft Windows
  98.  
  99.  
  100.  
  101.  
  102.   At this point, if you did everything correctly, you should be able to
  103.   multiboot to Windows NT and Windows 95.
  104.  
  105.  
  106.  
  107.   2.1.1.1.  Installing Linux
  108.  
  109.   Install Linux on your third drive.  When I installed Linux, I only had
  110.   Windows 95 installed so I only added the Windows 95 partition to Lilo.
  111.   You can go ahead and install all OSes while installing LILO, or edit
  112.   the Lilo configuration file later.  However you decide to do it, I
  113.   will show you how the /etc/lilo.conf file is supposed to look in the
  114.   next section.  Once Linux is installed, you should be able to boot to
  115.   Linux.
  116.  
  117.  
  118.  
  119.   3.  The Linux part
  120.  
  121.   This will involve editing the /etc/lilo.conf file and reinstalling
  122.   LILO.  The following should already be present in /etc/lilo.conf:
  123.  
  124.  
  125.        boot=/dev/hda
  126.  
  127.  
  128.  
  129.  
  130.   The Linux stanza should also be already present:
  131.  
  132.  
  133.   # Linux stanza
  134.   image=/vmlinuz
  135.   root=/dev/hdc1
  136.   label=Linux
  137.   # End Linux stanza
  138.  
  139.  
  140.  
  141.  
  142.   Now add the Windows 95 stanza:
  143.  
  144.  
  145.        # Windows 95 stanza
  146.        other=/dev/hda1
  147.        table=/dev/hda
  148.        label=Windows95
  149.        # End Windows 95 stanza
  150.  
  151.  
  152.  
  153.  
  154.   Now add the Windows NT stanza:
  155.  
  156.  
  157.        # Windows 95 stanza
  158.        other=/dev/hdb1
  159.        table=/dev/hda
  160.        loader=/boot/any_d.b
  161.        label=WindowsNT
  162.        # End Windows 95 stanza
  163.  
  164.  
  165.  
  166.  
  167.   Now run LILO again.  At this point, if all is well, you should have
  168.   Windows 95, Windows NT, and Linux as selections from LILO.  You should
  169.   be able to boot to Linux and Windows 95 (which should give you the
  170.   Windows NT OS loader).  To make the Windows NT entry operational, you
  171.   still need to do some work on the Windows NT side.
  172.  
  173.  
  174.  
  175.   4.  The Windows NT part
  176.  
  177.   Before you can continue, you need two do two things.
  178.  
  179.   The first is to download and unzip Gilles Vollant's BootPart utility
  180.   which can be found at  <http://www.winimage.com/bootpart.htm> with
  181.   some information on how to use it.
  182.  
  183.   The second thing to do is copy (do not delete them yet!) the following
  184.   files to the root of the Windows NT drive:
  185.  
  186.  
  187.        Boot.ini
  188.        Bootsect.dos
  189.        Ntdetect.com
  190.        Ntldr
  191.  
  192.  
  193.  
  194.  
  195.   These files are the Windows NT loader.  They are located in the root
  196.   of the Windows 95 drive and were placed there by Windows NT when you
  197.   installed it.
  198.  
  199.   Once this is done, boot to the Windows 95 DOS prompt (press Shift+F5
  200.   when Windows 95 loads) and issue the following command:
  201.  
  202.  
  203.        BOOTPART WINNT BOOT:D:
  204.  
  205.  
  206.  
  207.  
  208.   Now you must edit Boot.ini in your Windows NT root directory.  You
  209.   must edit three lines, one in the [boot loader] section and two in the
  210.   [operating systems] section.
  211.  
  212.   This is the original Boot.ini:
  213.  
  214.  
  215.        [boot loader]
  216.        timeout=30
  217.        default=multi(0)disk(0)rdisk(1)partition(1)\WINNT
  218.        [operating systems]
  219.        multi(0)disk(0)rdisk(1)partition(1)\WINNT="Windows NT Workstation Version 4.00"
  220.        multi(0)disk(0)rdisk(1)partition(1)\WINNT="Windows NT Workstation Version 4.00 [VGA mode]" /basevideo /sos
  221.        C:\ = "Microsoft Windows"
  222.  
  223.  
  224.  
  225.  
  226.   This is the new Boot.ini:
  227.  
  228.  
  229.        [boot loader]
  230.        timeout=30
  231.        default=multi(0)disk(0)rdisk(0)partition(1)\WINNT
  232.        [operating systems]
  233.        multi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows NT Workstation Version 4.00"
  234.        multi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows NT Workstation Version 4.00 [VGA mode]" /basevideo /sos
  235.  
  236.  
  237.  
  238.  
  239.   Notice that all instances of rdisk(1) have been changed to rdisk(0)
  240.   and the line referencing Windows 95 has been removed.
  241.  
  242.   After saving Boot.ini, if you did everything correctly, you should now
  243.   be able to boot to Windows NT from LILO.
  244.  
  245.  
  246.  
  247.   5.  The Windows 95 part
  248.  
  249.   Create a bootable DOS floppy from the Windows 95 DOS prompt (press
  250.   Shift+F5 when Windows 95 loads).  It is important that this floppy be
  251.   created at the DOS prompt, not from a DOS window inside Windows95!  Do
  252.   not boot to Windows95 until this step is complete!  Copy the file
  253.   C:\WINDOWS95\COMMAND\SYS.COM to the floppy (substitute your Windows95
  254.   path if different).  Now boot from the floppy and enter the command:
  255.  
  256.  
  257.        SYS C:
  258.  
  259.  
  260.  
  261.  
  262.   This should have removed the Windows NT OS loader and you should be
  263.   able to boot directly into Windows 95 from LILO.
  264.  
  265.   You can now remove the NT loader files:
  266.  
  267.  
  268.        Boot.ini
  269.        Bootsect.dos
  270.        Ntdetect.com
  271.        Ntldr
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.   6.  References
  279.  
  280.   Thanks to the following people (in no particular order):
  281.  
  282.   James C. Bevier & D. Michael McFarland.  In a message exchange on the
  283.   reddhat-list they provided some information on how to boot NT from
  284.   Linux.
  285.  
  286.   Gilles Vollant.  BootPart is a very useful utility and Gilles makes it
  287.   available for free with some nice documentation.  Thanks Gilles.
  288.  
  289.   Mike Harlan.  By reading his 'Linux-DOS-Win95-OS2' mini-HOWTO, it
  290.   helped me make some assumptions about LILO's behavior.
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.