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

  1.  
  2.                 Windows 95 + Windows 3.x + Linux Howto
  3.              Robert Goodwin <Robert.Goodwin@mcc.ac.uk>
  4.                             August 1996
  5.  
  6.   0. Introduction
  7.  
  8.   This document was originally written in Jan96. I have incorporated
  9.   various comments, information, and questions received since then.
  10.   This document is also avilable in Japanese; see the collection of
  11.   Japanese linux docs at http://epsenewsc.gee.kyoto-u.ac.jp/JF/JF.html
  12.  
  13.   1. Booting Multiple Operating Systems
  14.  
  15.   If you want to boot multiple operating systems (and you don't want
  16.   to have to boot them from floppy disk!), you need to use some
  17.   sort of BOOT MANAGER.
  18.  
  19.   Win95 doesn't really *have* a boot manager - it has boot options,
  20.   but in my book a "boot manager" can be configured to boot anything.
  21.  
  22.   Lilo can be configured to boot almost anything, as can the OS/2
  23.   boot manager and the Windows NT boot manager. Which of these you
  24.   use is really up to you; it depends what you want on your system.
  25.   If you use the OS/2 manager, for example, it "hides" the "other"
  26.   DOSsy partitions from you.
  27.  
  28.  
  29.   2. Other Places You Might Look
  30.  
  31.   If you just want Win95 and Linux, then you probably want the
  32.   Win95+Linux Howto. The latest version can be found at:
  33.  
  34.        http://www.in.net/~jkatz/win95/Linux-HOWTO.html
  35.  
  36.   Win95 and Linux can be installed on a single drive; the problems
  37.   covered in the rest of this document revolve around DOS not allowing
  38.   more than ONE primary DOS partition per drive.
  39.  
  40.   If you want to use the NT boot manager, take a look at 
  41.   http://www.bcpl.lib.md.us/~dbryan/directboot.html
  42.   To add Linux (or others, including OS/2), there's a nifty little
  43.   program that makes boot sector files for use with the NT loader.
  44.   You can find information about this at
  45.   http://ourworld.compuserve.com/homepages/gvollant/othertl.htm
  46.  
  47.   You might also investigate LOADLIN.EXE which allows you to "boot"
  48.   Linux by first booting into DOS.
  49.  
  50.  
  51.   3. Why this HOWTO?
  52.  
  53.   This document addresses the following issues:
  54.  
  55.   * How to get Win 3.x to live on the same machine as Win95 without
  56.     problems (and what those problems might otherwise be)
  57.   * How to avoid problems on a machine with Win95 which can also
  58.     remote boot DOS
  59.   * How to install Win95 with Linux without having to reinstall lilo
  60.     (with the tedious booting of Linux from floppy)
  61.  
  62.   Although the Win95 filesystem lives on top of the standard DOS FAT,
  63.   it does some pretty unpleasant things to it. Boot your Win95 machine
  64.   from a bootable DOS floppy and get Norton to check the disk (but
  65.   DON'T let it attempt any repairs or you'll mess up some "long"
  66.   filenames)
  67.  
  68.   I am currently required to support applications in the Win95
  69.   environment as well as under Win3.x (both run locally and network
  70.   booted). I developed the setup described in this document to allow me
  71.   to do all this with just one PC.
  72.  
  73.   Don't ask how a Unix person ended up in this position :-)
  74.  
  75.  
  76.   4. Requirements
  77.  
  78.   If you are prepared to tinker with the source to lilo (lilo 1.7
  79.   or later, I belive), it is possible to do all this with ONE
  80.   hard disk. This works by changing the contents of the partition
  81.   table as the system boots; if you don't feel confident about trying
  82.   this, then don't!
  83.  
  84.   Otherwise, you will need TWO hard disks. This is due to some
  85.   DOS/Windows limitations with respect to booting and allocation of
  86.   drive letters. Believe me, I tried to get it working with one.
  87.   (but I didn't want to mess with the lilo source)
  88.  
  89.  
  90.   5. What you will end up with
  91.  
  92.   A word on device names. I have seen systems which use /dev/hdc for
  93.   the 3rd IDE disk (first IDE disk on secondary controller) and
  94.   /dev/hdd for the fourth. I've also seen systems which use /dev/hd1a
  95.   and /dev/hd1b (giving such partitions as /dev/hd1a3 etc). My system
  96.   uses this second naming style, but I have changed to names to
  97.   /dev/hdc and /dev/hdd to minimise confusion.
  98.  
  99.   Here is a brief description of what I now have - watch those drive
  100.   letters because they change...
  101.  
  102.   If you use a secondary IDE controller, you may need to create the
  103.   /dev entries yourself (/dev/hdcd* and /dev/hdd*) This might be the
  104.   case if you add a second hard drive to a machine with one IDE disk
  105.   and an IDE CDROM already installed; your second hard disk would be
  106.   /dev/hdc. I have tried this arrangement with no problems.
  107.  
  108.   I have: /dev/hda  - first hard disk
  109.           /dev/hdb  - cd-rom drive
  110.           /dev/hdc  - second hard disk
  111.  
  112.   Option 1:
  113.     On powering up the machine, I can allow the boot ROM on the
  114.     ethernet card to remote boot DOS. The "C" drive is the first DOS
  115.     partition on the FIRST IDE disk (in my case /dev/hda1). The "D"
  116.     drive is the first DOS partition on the SECOND IDE disk (in my
  117.     case /dev/hdc1), and the "E" drive is the second DOS partition on
  118.     the SECOND IDE disk (/dev/hdc2). The CD-ROM becomes F:
  119.  
  120.   Option 2:
  121.     Allow lilo to boot the default system (Linux, naturally)
  122.  
  123.   Option 3:
  124.     Interrupt lilo and ask for an option I call DOS. This boots DOS
  125.     from /dev/hda1, and, as with option 1, the "C" drive is /dev/hda1
  126.     the "D" drive is /dev/hdc1 and the "E" drive is /dev/hdc2. The
  127.     CD-ROM becomes F:
  128.  
  129.   Option 4:
  130.     Interrupt lilo and ask for an option I call Win95. This boots
  131.     Win95 from the first DOS partition on the SECOND IDE drive (in
  132.     my case /dev/hdc1). Follow this carefully: the "C" drive is now
  133.     the first DOS partition on the SECOND IDE disk (/dev/hdc1),
  134.     the "D" drive is now the first DOS partition on the FIRST IDE
  135.     disk (/dev/hda1), and the "E" drive remains the second DOS
  136.     partition on the SECOND IDE disk (/dev/hdc2). The CD-ROM
  137.     becomes F:
  138.  
  139.   Notice that the C drive changes depending how you boot. This means
  140.   that when you install Win95, you install it to C:\WINDOWS, and when
  141.   you install Win3.x, you install it to C:\WINDOWS but this isn't the
  142.   same place :-)
  143.  
  144.   Also notice that the third DOS partition (which I use as a general
  145.   data drive) is E: whichever way you boot, and that the CD-ROM
  146.   stays constant too.
  147.  
  148.  
  149.   6. How to do it
  150.  
  151.   First of all, install Linux;  it does not matter which drive you
  152.   install it on; but since you are using two drives it makes sense to
  153.   create a swap partition on each.
  154.  
  155.   Create a primary DOS partition on the second disk. Unfortunately, the
  156.   DOS FDISK won't let you do this, so you must use the Linux fdisk to
  157.   create the partition, set the type (6 for DOS 16 BIT FAT > 32Mb), set
  158.   the partition as bootable, and CAREFULLY follow the advice on the man
  159.   page for fdisk. This describes how to persuade DOS to recognise a
  160.   partition created in this manner using the dd command to zero the
  161.   first 512 bytes of the partition. (Basically, you use
  162.   "dd if=/dev/zero of=/dev/XXXX bs=512 count=1" where XXXX is the
  163.   device but be VERY careful since this is a good way to trash a disk
  164.   - for example by putting /dev/hda instead of /dev/hda1!)
  165.  
  166.   Creating the primary DOS partition on the first hard disk can be done
  167.   with the DOS FDISK. Any other required DOS partitions can similarly
  168.   be created.
  169.  
  170.   Both of these primary partitions must be formatted as bootable DOS
  171.   partitions; use FORMAT C: /S and FORMAT D: /S having booted from a
  172.   floppy. In order to avoid confusion, give the partitions meaningful
  173.   volume labels!
  174.  
  175.   Edit /etc/lilo.conf to give you the option of booting from either
  176.   of the two primary DOS partitions. I have appended an example
  177.   to the end of this document. Note the use of the "loader" line in
  178.   this example file.  Which you choose to install as Win95 and which
  179.   as DOS/Win3.x is up to you; I used the second hard disk for Win95
  180.   since network booting of the machine then gives the normal DOS
  181.   drive as "C". Also (and usefully), installing Win95 on the second
  182.   hard disk avoids having to boot linux from a recovery disk and
  183.   re-install lilo (why this should be is explained below). Remember
  184.   to run lilo to install the options.
  185.  
  186.   If you are (sensibly) planning to install Win95 from CDROM, you
  187.   will need to include the relevant drivers on the Win95 partition
  188.   such that when you boot from it, the CDROM drive will be accessible.
  189.  
  190.   Now boot, using lilo, from the drive you wish to u