home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 8 / CDACTUAL8.iso / docs / mini / win95_wi < prev    next >
Encoding:
Text File  |  1996-07-11  |  7.4 KB  |  183 lines

  1.                 Windows 95 + Windows 3.x + Linux Howto
  2.              Robert Goodwin <Robert.Goodwin@mcc.ac.uk>
  3.                             Jan 1996
  4.  
  5.   1. Why this HOWTO?
  6.  
  7.   Getting Linux to work with Win95 is covered in the Win95+Linux
  8.   Howto. This document addresses some different issues:
  9.   
  10.   * How to install Win95 with Linux without having to reinstall lilo
  11.   * How to get Win 3.x to live on the same machine as Win95 without
  12.     problems
  13.   * How to avoid problems on a machine with Win95 which can also
  14.     remote boot DOS
  15.  
  16.   1a. Why?
  17.  
  18.   Although the Win95 filesystem lives on top of the standard DOS FAT,
  19.   it does some pretty unpleasant things to it. Boot your Win95 machine
  20.   from a bootable DOS floppy and get Norton to check the disk (but
  21.   DON'T let it attempt any repairs or you'll mess up some "long"
  22.   filenames)
  23.  
  24.   I am currently required to support applications in the Win95
  25.   environment as well as under Win3.x (both run locally and network
  26.   booted). I developed the setup described in this document to allow me
  27.   to do all this with just one PC.
  28.   
  29.   Don't ask how a Unix person ended up in this position....
  30.  
  31.   2. Requirements
  32.  
  33.   You will need TWO hard disks. This is due to some DOS/Windoze
  34.   limitations with respect to booting and allocation of drive letters.
  35.   Believe me, I tried to get it working with one.
  36.  
  37.   3. What you will end up with
  38.  
  39.   Here is a brief description of what I now have - watch those drive
  40.   letters because they change... 
  41.  
  42.   If you use a secondary IDE controller, you will need to create the
  43.   /dev entries yourself (/dev/hd1a* and /dev/hd1b*) This might be the
  44.   case if you add a second hard drive to a machine with one IDE disk
  45.   and an IDE CDROM already installed; your second hard disk would be
  46.   /dev/hd1a. I have tried this arrangement with no problems.
  47.  
  48.  
  49.   Option 1:
  50.     On powering up the machine, I can allow the boot ROM on the
  51.     ethernet card to remote boot DOS. The "C" drive is the first DOS
  52.     partition on the FIRST IDE disk (in my case /dev/hda1). The "D"
  53.     drive is the first DOS partition on the SECOND IDE disk (in my
  54.     case /dev/hdb1), and the "E" drive is the second DOS partition on
  55.     the SECOND IDE disk (/dev/hdb2)
  56.  
  57.   Option 2:
  58.     Allow lilo to boot the default system (Linux, naturally)
  59.  
  60.   Option 3:
  61.     Interrupt lilo and ask for an option I call DOS. This boots DOS
  62.     from /dev/hda1, and, as with option 1, the "C" drive is /dev/hda1
  63.     the "D" drive is /dev/hdb1 and the "E" drive is /dev/hdb2
  64.   
  65.   Option 4:
  66.     Interrupt lilo and ask for an option I call Win95. This boots
  67.     Win95 from the first DOS partition on the SECOND IDE drive (in
  68.     my case /dev/hdb1). Follow this carefully: the "C" drive is now
  69.     the first DOS partition on the SECOND IDE disk (/dev/hdb1),
  70.     the "D" drive is now the first DOS partition on the FIRST IDE
  71.     disk (/dev/hda1), and the "E" drive remains the second DOS
  72.     partition on the SECOND IDE disk (/dev/hdb2)
  73.  
  74.  
  75.   Notice that the C drive changes depending how you boot. This means
  76.   that when you install Win95, you install it to C:\WINDOWS, and when
  77.   you install Win3.x, you install it to C:\WINDOWS but this isn't the
  78.   same place :-)
  79.  
  80.   4. How to do it
  81.   
  82.   First of all, install Linux;  it does not matter which drive you
  83.   install it on; but since you are using two drives it makes sense to
  84.   create a swap partition on each.
  85.  
  86.   Create a primary DOS partition on the second disk. Unfortunately, the
  87.   DOS FDISK won't let you do this, so you must use the Linux fdisk to
  88.   create the partition, set the type (6 for DOS 16 BIT FAT > 32Mb), set
  89.   the partition as bootable, and CAREFULLY follow the advice on the man
  90.   page for fdisk. This describes how to persuade DOS to recognise a
  91.   partition created in this manner using the dd command to zero the
  92.   first 512 bytes of the partition. (Basically, you use
  93.   "dd if=/dev/zero of=/dev/XXXX bs=512 count=1" where XXXX is the
  94.   device but be VERY careful since this is a good way to trash a disk
  95.   - for example by putting /dev/hda instead of /dev/hda1!)
  96.  
  97.   Creating the primary DOS partition on the first hard disk can be done
  98.   with the DOS FDISK. Any other required DOS partitions can similarly
  99.   be created.
  100.  
  101.   Both of these primary partitions must be formatted as bootable DOS
  102.   partitions; use FORMAT C: /S and FORMAT D: /S having booted from a
  103.   floppy. In order to avoid confusion, give the partitions meaningful
  104.   volume labels.
  105.  
  106.   Edit /etc/lilo.conf to give you the option of booting from either
  107.   of the two primary DOS partitions. I have appended an example
  108.   to the end of this document. Note the use of the "loader" line in
  109.   this example file.  Which you choose to install as Win95 and which
  110.   as DOS/Win3.x is up to you; I used the second hard disk for Win95
  111.   since network booting of the machine then gives the normal DOS
  112.   drive as "C". Also (and usefully), installing Win95 on the second
  113.   hard disk avoids having to boot linux from a recovery disk and
  114.   re-install lilo (why this should be is explained below). Remember
  115.   to run lilo to install the options.
  116.  
  117.   If you are (sensibly) planning to install Win95 from CDROM, you
  118.   will need to include the relevant drivers on the Win95 partition
  119.   such that when you boot from it, the CDROM drive will be accessible.
  120.  
  121.   Now boot, using lilo, from the drive you wish to use for DOS/Win3.x
  122.   and install the rest of DOS and Win3.x - the Windows installation
  123.   should go to the C:\WINDOWS directory as per default.
  124.  
  125.   Once this is done, reboot the machine and, using lilo, boot from the
  126.   Win95 partition. Perform your Win95 installation. The installation
  127.   procedure may suggest D:\WINDOWS for installing Win95 because it
  128.   searches the machine for existing WINDOWS versions - DON'T accept
  129.   this - install Win95 to C:\WINDOWS.
  130.  
  131.   Now for the neat part! Win95 is a rather arrogant system - when you 
  132.   install it, it assumes that it is the only operating system on the
  133.   machine and proceeds to write its own MBR (Master Boot Record) to
  134.   the hard disk. This is why you generally need to re-install lilo.
  135.   If you have installed Win95 to the second hard disk, you have done
  136.   something which the Microsoft(tm) programmers didn't consider.
  137.   On one machine where I performed this operation, Win95 wrote its
  138.   replacement MBR to the MBR of the SECOND hard disk. On another, I
  139.   never found any evidence of it at all. The practical upshot of this
  140.   is that the MBR which matters, that of the first hard disk, is
  141.   not disturbed. Thus when you reboot the machine, you will be greeted
  142.   by the friendly and familiar LILO prompt.
  143.  
  144.   Example Partition List:
  145.   /dev/hda1  *   DOS partition  (C: or D: depending upon boot)
  146.   /dev/hda2      Extended partition
  147.   /dev/hda5      /
  148.   /dev/hda6      swap
  149.   /dev/hda7      /home
  150.   
  151.   /dev/hdb1  *   Win95 partition  (C: or D: depending upon boot)
  152.   /dev/hdb2      DOS partition    (E: always)
  153.   /dev/hdb3      swap
  154.   
  155.   (Partitions with a * are set as bootable by fdisk)
  156.   
  157.   Example lilo.conf:
  158.   # /etc/lilo.conf
  159.   install = /boot/boot.b
  160.   compact
  161.   delay = 20    # optional, for systems that boot very quickly
  162.   #prompt        # use instead of delay to force response to boot prompt
  163.   #vga = normal    # force sane state
  164.   #ramdisk = 0    # paranoia setting
  165.   #root = current    # use "current" root
  166.   boot = /dev/hda
  167.   image = /boot/vmlinuz
  168.     read-only
  169.     label = linux
  170.   other = /dev/hdb1
  171.     label = win95
  172.     loader= /boot/any_d.b
  173.   other = /dev/hda1
  174.     table = /dev/hda
  175.     label = dos
  176.   image = /boot/vmlinuz.old
  177.     label = linux.old
  178.     optional
  179.     read-only
  180.  
  181.  
  182.      If you have found this document useful, please let me know.
  183.