home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Enter 1999 June / enter_06_1999.iso / doc / HOWTO / mini / Linux+Win95 < prev    next >
Text File  |  1998-10-14  |  9KB  |  216 lines

  1.  
  2.    
  3.    
  4.    Authored 11/95 by Jonathan Katz. Fixed/revised April 10, 1996, not to
  5.    mention slightly updated June 25, 1996 and "completed" October 26,
  6.    1996, all by Jonathan Katz, jkatz@in.net
  7.    
  8.    _1 Introduction_
  9.    
  10.    Many people have recently bought new machines, which (unfortunatly)
  11.    come pre-loaded with Windows 95. After exploring the Internet, many
  12.    users find the likes of Linux, and want to run a better OS at a much
  13.    better price. There are many different issues to address, because new
  14.    computers usually come with large EIDE hard drives, and Windows 95 has
  15.    extentions on the old FAT filesystem. Linux understands these issues
  16.    and can handle these challenges in hardware and software.
  17.    
  18.    _2 Let's get Ready to Rumble!_
  19.    
  20.    Linux and Windows 95 can get along quite well on the same hard disk.
  21.    You can also install Linux onto a separate hard disk on the same
  22.    machine. If you have the money to spare to get a second hard disk, go
  23.    ahead and do that. Although it is safe and reliable to run Windows 95
  24.    and Linux on the same hard disk, it is safer to have a second disk.
  25.    But, since I am a poor student, (and so are most of the people I know)
  26.    we are stuck with one large disk.
  27.    
  28.    I assume your hard disk looks like this:
  29.  
  30.         +---------------------------------
  31. C:      |  800M or so, maybe bigger?
  32.         |
  33.         +---------------------------------
  34.  
  35.    
  36.    
  37.    and Windows 95 and MS-Office and Qmodem Pro, and whatever DOS/Windows
  38.    software you have only takes up around 400M + Swap (this is a big,
  39.    sarcastic assumption)! I take it you don't want to lose all this
  40.    software you've spent a lot of time configuring and installing, so you
  41.    don't want to delete this partition and restart all over again.
  42.    
  43.    _3 Ok, I have this partition I want to spare!_
  44.    
  45.    Don't lose hope. There is a program called FIPS, which can
  46.    re-partition your Hard Disk without destroying data. HOWEVER, make
  47.    sure before you use it, you defrag your hard disk (with the optimum
  48.    defrag method). Use the defrag that came with Win95 and use it in the
  49.    GUI-- otherwise you will loose your long file names. After you are all
  50.    defraged, run FIPS and make your disk look something like the
  51.    following:
  52.    
  53.  
  54.         +-------------------------------------
  55. C:      | This is your FAT/VFAT/Win95 partition
  56.  450M   |
  57.         +------------------------------------
  58. ???     | This is empty space that starts BELOW the 1024th
  59.         |       cylander
  60.         +------------------------------------
  61.  
  62.    
  63.    
  64.    FIPS can be found at your favorite Linux FTP sites (sunsite.unc.edu,
  65.    tsx-11.mit.edu, ftp.redhat.com) usually in the /pub/utils/msdos
  66.    directory. If you have a CD for Linux, there is usually a \utils\msdos
  67.    or \utils directory that has FIPS in it as well.
  68.    
  69.    It is _VERY IMPORTANT_ that your Linux partition start before (below)
  70.    the 1024th cylander, otherwise you will be unable to boot it (and
  71.    that's not a good thing).
  72.    
  73.    What exactly is the 1024th cylander? That's where IDE ends and EIDE
  74.    begins-- that's the 528M "mark" on your hard disk. Start your Linux
  75.    partition at around 520M, so the entire kernel and other boot/loader
  76.    files will completely reside below that cylander.
  77.    
  78.    _4 What Next?_
  79.    
  80.    Go ahead and install Linux to that new free space. If you are
  81.    paranoid, when the Linux install proceedure goes to boot, you can boot
  82.    into Windows 95 and mak sure it still runs OK. PLEASE, PLEASE, PLEASE
  83.    listen to the advice given in the tail of section number three. You
  84.    will be unable to use Linux otherwise.
  85.    
  86.    When it comes to piecing out the disk, if you are like most people,
  87.    you'll make a 400M Linux partition (which is pretty comfortable) as
  88.    well as 30M of SWAP (which is more than enough).
  89.    
  90.    At this point, you should be able to install whatever distribution of
  91.    Linux you have without any troubles.
  92.    
  93.    _5 Using your new system!_
  94.    
  95.    Linux can mount, read, and write to Win95's VFAT partitions serveral
  96.    ways. You can use the stock msdos filesystem support that has been
  97.    included in all kernels greater than 1.0. However, using commands
  98.    like:
  99.  
  100. litterbox~#: mount -t msdos /dev/hda1 /mnt
  101.  
  102.    will only get you as far as filenames with the 8.3 standard. Yick! You
  103.    have Windows 95 so you can use those nifty long file names.
  104.    
  105.    Some Linux users still run kernels that are anchient (by Linux
  106.    standards). In other words, 1.2.xx kernels. Someone coded a module for
  107.    this series of kernels so a user can read files that do not conform to
  108.    the old 8.3 standard. FTP to
  109.    ftp://mm-ftp.cs.berkeley.edu/pub/multimedia/linux/xmsdos/ and pick up
  110.    a copy of README before doing anything.
  111.    
  112.    Finally, newer kernels (1.3.4x) as well as the long awaited 2.0
  113.    RELEASE have internal vfat support that you can compile in. These
  114.    kernels allow safe read/writes to your VFAT partitions.
  115.    
  116.    _NOTE:_ A word of caution!
  117.    
  118.    IF you are running a "newer" version of Windows 95-- i.e., possibly
  119.    one that ships on computers made after June 1996 as well as the P5-MMX
  120.    series please listen to the following.
  121.    
  122.    Check to see what version of Win95 you are really running. To do this,
  123.    open up a DOS box and type: "ver /r". Here's some sample output:
  124.    
  125.  
  126. C:\> ver /r
  127.  
  128. Mircosoft Windows 95 [4.00.1034]
  129.         (C) 1981-1996 Microsoft Corporation.
  130.  
  131.    
  132.    
  133.    Note the minor revision number. If the number is GREATER than 950 you
  134.    may be running a version of the FAT partition type known as FAT32. If
  135.    that is the case, you can still use Linux and Win95, HOWEVER, there is
  136.    NO support to read/write a FAT32 partition. You are SOL if that is the
  137.    case.
  138.    
  139.    Just because you are running a newer version of Win95 doesn't mean
  140.    that you are running FAT32. Load up "fdisk" and use the "display
  141.    partition information" option to show indeed if you are using FAT32.
  142.    
  143.    _5.1 HELP!, I'm stuck with FAT32!_
  144.    
  145.    _5.1.2.1 I have this brand new box that I got from (unamed
  146.    chain/retail store)_
  147.    
  148.    If you are installing Linux onto a drive with FAT32 follow the steps
  149.    from above about installing Linux onto a Win95 system, but do NOT
  150.    install LILO. Instead, skip to section 5.1.3 entitled "linload, what's
  151.    that?" and read the step-by-step workaround for this unfortunate
  152.    situation.
  153.    
  154.    _5.1.2.2 I messed up-- big time!_
  155.    
  156.    This happened to me-- I was running a Win95 beta with FAT32 installed,
  157.    I upgrade Win95, and my system died. I didn't have a Win95 boot disk
  158.    for the version of Win95 I just upgraded to. Here's a little work
  159.    around.
  160.    
  161.    Find ANY MS boot disk made using DOS version 5.0 or greater. Under
  162.    Linux mount the Win95 Beta CD. Mount the floppy as well.
  163.    
  164.  
  165. litterbox~# mount -t iso9660 /dev/cdrom /cdrom
  166. litterbox~# mount -t msdos /dev/fd0 /mnt
  167.  
  168.    
  169.    
  170.    On the CD find the "beta stuff" directory. The MS people move this
  171.    location around... try /cdrom/admin/beta/floppy,
  172.    /cdrom/betaonly/floppy. cp the files io.sys, msdos.sys, and
  173.    command.com to the floppy. "sync" and unmount the disks you mounted.
  174.    Do a reboot and that boot disk *should* work.
  175.    
  176.    _5.1.3 Linload, What's That?_
  177.    
  178.    Linload is a DOS execuatble which loads a kernel image from a DOS HD
  179.    (or floppy) and then boots the rest of the Linux Operating System from
  180.    an appropriate root partition. If you're really a good hacker, you can
  181.    do a floppyless Linux install this way, but today we are going to do
  182.    more traditional uses. When booting into Windows 95 hit the F8 key
  183.    (when:
  184.  
  185. Starting Windows 95...
  186.  
  187.    is displayed) and select "Safe mode, command prompt only." Go to your
  188.    directory where you put your kernel and run
  189.  
  190. C:\LINUX> linload.exe zimage root=/dev/hda2 ro"
  191.  
  192.    from there. If you are any good with MS-DOS setups, you can code
  193.    multiple AUTOEXEC.BAT and CONFIG.SYS files, so that you have a menu
  194.    setup and can choose which OS to boot.
  195.    
  196.    _6 Problems?_
  197.    
  198.    In the reverse of the begining scenario (you have a working Linux box
  199.    and are forced by some power to install Windows 95) Windows 95 WILL
  200.    overwrite your MBR, and thus crush LILO. You have two options: use
  201.    loadlin.exe to load your kernel, and use that to run Linux, or boot
  202.    Linux using a floppy and/or loadlin, then re-install LILO.
  203.    
  204.    Best of luck with your new system!
  205.  
  206. -Jon
  207. jkatz@mac.edu
  208. +1 217 479-7309
  209. Box 4454 MacMurray College
  210. Jacksonville, Illinois 62650
  211. Personal: http://www.in.net/~jkatz
  212. Corinne:  http://corinne.mac.edu
  213. Resume:   http://www.in.net/~jkatz/resume.html
  214. Room-101: http://room-101.1984.org
  215. HOWTO:    http://www.in.net/~jkatz/win95/Linux-HOWTO.html
  216.