home *** CD-ROM | disk | FTP | other *** search
/ PC World 1999 August / PCWorld_1999-08_cd.bin / doc / HOWTO / mini / Loadlin+Win95 < prev    next >
Text File  |  1999-03-21  |  25KB  |  793 lines

  1.   The Loadlin+Win95 mini-HOWTO
  2.   Authored by: Chris Fischer, protek@brigadoon.com
  3.   v1.4.6, 13 March 1999
  4.  
  5.   This document describes how to use Loadlin with Windows 95 to boot to
  6.   Linux.
  7.   ______________________________________________________________________
  8.  
  9.   Table of Contents
  10.  
  11.  
  12.   1. Introduction
  13.  
  14.      1.1 Copyright
  15.      1.2 New Versions Of This Document and Windows 98
  16.      1.3 Feedback
  17.      1.4 Disclaimer
  18.  
  19.   2. IMPORTANT: Preliminary Information and Setup
  20.  
  21.      2.1 WARNING! for Windows95 OSR2 (version 4.00.950b) users:
  22.      2.2 Things that are assumed:
  23.      2.3 Items you need before you start:
  24.  
  25.   3. Getting started:
  26.  
  27.      3.1 Determine what version of Windows 95 you have.
  28.      3.2 Determine if you are using the FAT32 file system.
  29.      3.3 Make sure filename extensions are visible in Windows Explorer.
  30.      3.4 Rename your system files.
  31.      3.5 Important Warning.
  32.      3.6 Edit your system files.
  33.  
  34.   4. *** Use this section ONLY if you are using a DOS 6.x boot disk.***
  35.  
  36.      4.1 Edit and Rename your DOS 6.x system files.
  37.  
  38.   5. Final Steps
  39.  
  40.      5.1 Almost Finished
  41.      5.2 You are finished!
  42.      5.3 How it works.
  43.  
  44.   6. Alternate Methods for Auto-Booting Linux, Especially for Users With a FAT32 File System.
  45.  
  46.      6.1 Method 1.
  47.      6.2 Method 2.
  48.  
  49.   7. Frequently Asked Questions:
  50.  
  51.      7.1 Where can I find more information on using Loadlin?
  52.      7.2 I am not sure what partition Linux is installed on. How do I find out?
  53.      7.3 Where do I find the kernel image file and how do I copy it to my MS-DOS partition?
  54.      7.4 Does it matter if I install Linux or Windows 95 first?
  55.      7.5 I currently have LILO installed, but I want to use Loadlin instead. How do I remove LILO?
  56.      7.6 What if I already dual boot between Windows 95 and Windows 3.x, and I want to boot to Linux using this method?
  57.      7.7 Is it possible to initiate Linux from the Windows 95 desktop?
  58.      7.8 Where can I get a plain text version of this document?
  59.  
  60.   8. Credits
  61.  
  62.  
  63.  
  64.   ______________________________________________________________________
  65.  
  66.  
  67.   1.  Introduction
  68.  
  69.   This document describes how to easily use a combination of Windows
  70.   95's Boot Menu and Loadlin.exe to autoboot Linux using the F4 Function
  71.   Key. This procedure should work with Windows 95 versions 4.00.950,
  72.   4.00.950a, and 4.00.95b with FAT16, and all versions of Linux that
  73.   support Loadlin. If you prefer to use the LILO boot manager, please
  74.   consult the Linux+Win95 Mini-HOWTO.
  75.  
  76.   There are also two alternate methods for dual booting between Linux
  77.   and Windows 95 using Loadlin for users using FAT32 with Windows 95
  78.   version 4.00.950b.
  79.  
  80.  
  81.   1.1.  Copyright
  82.  
  83.   The Loadlin+Win95 mini-HOWTO is copyright (C) 1997- 1998 by Protek
  84.   Computer Solutions. This document may be reproduced and distributed in
  85.   whole or in part, in any medium physical or electronic, as long as
  86.   this copyright notice is retained on all copies. Commercial
  87.   redistribution is allowed and encouraged; however, the author would
  88.   like to be notified of any such distributions.
  89.  
  90.  
  91.   1.2.  New Versions Of This Document and Windows 98
  92.  
  93.   This mini-HOWTO is posted first at The Linux+Windows 95  Reference
  94.   Page <http://www.eskimo.com/~praxis>, so check there to make sure you
  95.   have the most recent revision of this mini-HOWTO. You will also find a
  96.   link there for dual booting with Windows 98. The next revision of this
  97.   mini-HOWTO will be a major revision and will include information on
  98.   dual booting with Windows 98.
  99.  
  100.  
  101.   1.3.  Feedback
  102.  
  103.   Questions, comments, and suggestions are welcome. I am always looking
  104.   for ways to improve and expand this mini-HOWTO. I rely heavily on
  105.   feedback to make improvements, and will do my best to be prompt with a
  106.   helpful response. I can be reached at protek@brigadoon.com.
  107.  
  108.  
  109.   1.4.  Disclaimer
  110.  
  111.   Every attempt has been made to ensure that the information presented
  112.   in this mini-HOWTO is safe and accurate. However, this information is
  113.   given without any warranty, either expressed or implied, as to its
  114.   suitability for a particular use. It is generally considered a
  115.   GoodThing(TM) to make backups of your system files before changing
  116.   system configurations and/or files. I suggest you take this precaution
  117.   "just in case".
  118.  
  119.  
  120.   2.  IMPORTANT: Preliminary Information and Setup
  121.  
  122.  
  123.   2.1.  WARNING! for Windows95 OSR2 (version 4.00.950b) users:
  124.  
  125.   Do NOT attempt dual booting with Windows 95 without first consulting
  126.   the Windows 95 OSR2 FAQ. The FAQ also contains a great deal of
  127.   information regarding FAT32. In a nutshell, if you have OSR2 and are
  128.   using a FAT16 file system, you can still dual boot using the F4
  129.   Function Key.
  130.  
  131.   NOTE: If you have Windows 95 OSR2, and are using a FAT32 file system,
  132.   then the dual booting methods in this  mini-HOWTO using the F4
  133.   Function Key will not work and should not be attempted.
  134.  
  135.   However, there are a couple of alternate methods you can use  to
  136.   automate booting Linux at startup, which are discussed in ``Section
  137.   6''.
  138.  
  139.  
  140.   2.2.  Things that are assumed:
  141.  
  142.  
  143.   ╖  You have successfully installed Windows 95.
  144.  
  145.   ╖  Windows 95 is installed on Drive C.
  146.  
  147.   ╖  You have successfully installed Linux.
  148.  
  149.   ╖  You know what partition Linux is installed on.
  150.  
  151.   ╖  LILO is NOT installed on your hard drive.
  152.  
  153.   ╖  If you are using Windows 95 OSR2 (version 4.00.950b), you have
  154.      carefully read the Windows95 OSR2 FAQ.
  155.  
  156.  
  157.   2.3.  Items you need before you start:
  158.  
  159.  
  160.   ╖  A bootable floppy disk with DOS 5.0 or DOS 6.x system files
  161.      (io.sys, msdos.sys, command.com) and a config.sys file. If you are
  162.      using a DOS 5.0 boot disk, you will also need an autoexec.bat file.
  163.      If you are using Windows 95 OSR2 (version 4.00.950b), you will also
  164.      need to create a file called Winboot.sys with a text editor and
  165.      place it in the root directory of Drive C.  Winboot.sys can be an
  166.      empty file, just  so long as you have the file.
  167.  
  168.   NOTE: If your hard drive already contains the autoexec.dos,
  169.   config.dos, io.dos, msdos.dos, and command.dos files, then you will
  170.   not need the floppy. You can check by typing: dir and dir /ah at the
  171.   root of Drive C.  Also, if you installed the upgrade version of
  172.   Windows 95, then it is likely that you have them.
  173.  
  174.  
  175.   ╖  The Loadlin.exe program file
  176.  
  177.   ╖  Your kernel image file,usually zImage or vmlinuz. (See the ``FAQ''
  178.      for info).
  179.  
  180.   ╖  A simple text editor, such as Notepad.
  181.  
  182.  
  183.   3.  Getting started:
  184.  
  185.  
  186.   3.1.  Determine what version of Windows 95 you have.
  187.  
  188.   Boot your computer to Windows 95 and right click on the My computer
  189.   icon. Now left click on Properties. On the General Tab, look under the
  190.   "System:" line. There you will see the version number.
  191.  
  192.  
  193.   3.2.  Determine if you are using the FAT32 file system.
  194.  
  195.   NOTE: If you have Windows 95 version 4.00.950b, make certain you are
  196.   not using the FAT32 file system. Double click the My Computer  icon,
  197.   then right click the Drive C icon. Left click on Properties. On the
  198.   General tab, the "Type:" line will indicate whether or not you have a
  199.   FAT32 file system. If you are using the FAT32 file system, then go
  200.   directly to ``Section 6'' . Otherwise, continue with Section 3.3.
  201.  
  202.  
  203.   3.3.  Make sure filename extensions are visible in Windows Explorer.
  204.  
  205.  
  206.   ╖  Run the Windows Explorer file manager program.
  207.  
  208.   ╖  On the Menu Bar, click on View, then click on Options.  On the View
  209.      Tab, make sure that the "Show all files" radio button is marked.
  210.      Also, make sure that the line with "Hide MS-DOS file extensions for
  211.      file types that are registered" is unchecked.  Click on the OK
  212.      button.
  213.  
  214.   NOTE: If your hard drive already contains the *.dos files mentioned in
  215.   the ``NOTE: of Section 2.3'', then skip to the next ``NOTE:''.
  216.   Otherwise, continue with Section 3.4.
  217.  
  218.  
  219.   3.4.  Rename your system files.
  220.  
  221.  
  222.   ╖  Insert the DOS 5.0 or DOS 6.x bootable floppy into Drive A. Click
  223.      on the Drive A icon so you can see the contents on the floppy disk.
  224.  
  225.   ╖  Rename each file to a .dos file extension. You can do this by
  226.      single clicking on a file, pressing the F2 function key, and typing
  227.      in the new name. Do not worry if you need the bootable floppy to
  228.      work properly, just rename the files back after you are finished
  229.      with this procedure.
  230.  
  231.  
  232.   3.5.  Important Warning.
  233.  
  234.  
  235.   ╖  EXTREMELY IMPORTANT: Make sure you rename the files on the floppy
  236.      BEFORE you copy them to Drive C. Otherwise you will overwrite your
  237.      Windows 95 system files. You have been warned.  Now, copy all files
  238.      to the root directory of Drive C. One method is to click on the
  239.      Drive A icon, press CTRL+A, press CTRL+C, click on the Drive C
  240.      icon, and press CTRL+V.
  241.  
  242.   NOTE: If you do not have Windows 95 OSR2 (version 4.00.950b), please
  243.   skip to ``Section 3.6''.
  244.  
  245.  
  246.   ╖  If (and only if) you have Windows95 version 4.00.950b, make sure
  247.      you have a file named Winboot.sys in the root directory of Drive C,
  248.      as stated in ``Section 2.3'' above. Failure to have Winboot.sys in
  249.      the root directory of Drive C will result in a system lockup should
  250.      you attempt to boot to an earlier version of DOS.
  251.  
  252.   NOTE: If you are using a  DOS 6.x boot disk skip to ``Section 4'',
  253.   otherwise continue with the next step.
  254.  
  255.  
  256.   3.6.  Edit your system files.
  257.  
  258.  
  259.   ╖  Open Notepad. On the Menu Bar, click on Open. Change "Files of
  260.      type" to "All files (*.*)". Change "Look in:" from Desktop to Drive
  261.      C. Now open Config.dos by double clicking on the filename. Delete
  262.      all the contents. This will create a 0K file...I will explain
  263.      later. Save the file.
  264.  
  265.   ╖  Use Notepad to open and edit Autoexec.dos and type in the Loadlin
  266.      command. The Loadlin command must be in the following syntax:
  267.  
  268.  
  269.  
  270.        ______________________________________________________________________
  271.  
  272.         Loadlin DriveLetter:\LinuxKernelFile root=/dev/LinuxBootPartition ro
  273.        ______________________________________________________________________
  274.  
  275.  
  276.  
  277.  
  278.   Here is my Autoexec.dos file as an example:
  279.  
  280.  
  281.  
  282.        ______________________________________________________________________
  283.  
  284.         Loadlin f:\vmlinuz root=/dev/hdc2 ro
  285.        ______________________________________________________________________
  286.  
  287.  
  288.  
  289.  
  290.   NOTE: The kernel, as well as the Loadlin.exe, file may be anywhere on
  291.   your hard drive as long as you reference the correct path. For
  292.   example, if your kernel file was located in  the directory
  293.   e:\linux\kernels and Loadlin.exe was located in the directory
  294.   c:\utils, you would use:
  295.  
  296.  
  297.  
  298.        ______________________________________________________________________
  299.  
  300.         c:\utils\loadlin e:\linux\kernels\vmlinuz root=/dev/hdc2 ro
  301.        ______________________________________________________________________
  302.  
  303.  
  304.  
  305.  
  306.  
  307.   ╖  Save the file.
  308.  
  309.  
  310.   4.  *** Use this section ONLY if you are using a DOS 6.x boot disk.***
  311.  
  312.  
  313.   4.1.  Edit and Rename your DOS 6.x system files.
  314.  
  315.  
  316.   ╖  Open Notepad. On the Menu Bar, click on Open. Change "Files of
  317.      type" to "All files (*.*)". Change "Look in:" from Desktop to Drive
  318.      C. Now open Config.dos by double clicking on the filename. Delete
  319.      all the contents. Now, you will need to enter the shell command
  320.      with the following syntax:
  321.  
  322.  
  323.  
  324.        ______________________________________________________________________
  325.  
  326.         shell=loadlin.exe LinuxKernelFile root=/dev/LinuxBootPartition ro
  327.        ______________________________________________________________________
  328.  
  329.  
  330.  
  331.   Here is my Config.dos file as an example:
  332.  
  333.  
  334.  
  335.        ______________________________________________________________________
  336.  
  337.         shell=f:\loadlin.exe f:\vmlinuz root=/dev/hdc2 ro
  338.        ______________________________________________________________________
  339.  
  340.  
  341.  
  342.  
  343.   NOTE: The Loadlin and kernel file may be  anywhere on your hard drive
  344.   as long as you reference the correct path. For example, if your
  345.   Loadlin file was in the directory f:\utils and the kernel file was
  346.   located in the directory e:\linux\kernels you would use:
  347.  
  348.  
  349.  
  350.        ______________________________________________________________________
  351.  
  352.         shell=f:\utils\loadlin.exe e:\linux\kernels\vmlinuz root=/dev/hdc2 ro
  353.        ______________________________________________________________________
  354.  
  355.  
  356.  
  357.  
  358.  
  359.   ╖  Save the file.
  360.  
  361.  
  362.   5.  Final Steps
  363.  
  364.  
  365.   5.1.  Almost Finished
  366.  
  367.  
  368.   ╖  One last file to edit and then you are finished. Use Notepad to
  369.      open and edit Msdos.sys. Goto the "Options" section. Look for a
  370.      line that has BootMulti=. If you do not find one then add it and
  371.      set the value to 1. It should look something like:
  372.  
  373.  
  374.  
  375.        ______________________________________________________________________
  376.  
  377.         [Options]
  378.         BootMulti=1
  379.        ______________________________________________________________________
  380.  
  381.  
  382.  
  383.  
  384.  
  385.   ╖  There may be other items listed. Just leave them. Now save the
  386.      file.
  387.  
  388.  
  389.   5.2.  You are finished!
  390.  
  391.   Now all you have to do is reboot (Don't forget to remove the floppy
  392.   disk). When you see "Starting Windows 95...", press the F4 Function
  393.   Key and Linux should boot right up.
  394.  
  395.  
  396.  
  397.   5.3.  How it works.
  398.  
  399.   Windows 95 has a built in Boot Menu. By default you do not see it at
  400.   startup (although you can change that if you wish), but you can get to
  401.   it by pressing the F8 Function Key when you see "Starting Windows
  402.   95...". On the menu you will see several options. The last option is
  403.   "Previous version of  MS-DOS". Instead of pressing F8 and then
  404.   selecting "Previous version of MS-DOS", you can use the F4 shortcut by
  405.   pressing F4 when "Starting Windows 95..."  appears on the screen. When
  406.   Windows 95 boots to the previous  version of MS-DOS, it uses the files
  407.   that end in the .dos file extension. This is why it is important to
  408.   have a 0K Config.dos file if you are initiating Linux from the
  409.   Autoexec.dos file. If Windows 95 does not find the files with a .dos
  410.   extension while trying to boot the previous operating system, it will
  411.   load the Windows 95 startup files.  Therefore, if you do not have a
  412.   Config.dos file, Windows 95 will load all the drivers in your
  413.   Config.sys file. While this will not prevent Linux from loading, it
  414.   will take longer. Having a 0K Config.dos file prevents Windows 95 from
  415.   reading your Config.sys file while booting to the previous version of
  416.   MS-DOS.
  417.  
  418.  
  419.   6.  Alternate Methods for Auto-Booting Linux, Especially for Users
  420.   With a FAT32 File System.
  421.  
  422.   This section will work for all versions of Windows 95 to date,
  423.   regardless of whether you have a FAT32 file system. There are two
  424.   methods I will discuss in this section. First, I'll start with  the
  425.   simplest.
  426.  
  427.  
  428.   6.1.  Method 1.
  429.  
  430.   This method uses the Autoexec.bat file to call (or execute) another
  431.   batch file named Linux.bat, during boot up.
  432.  
  433.  
  434.   ╖  Creat a Linux.bat file using a simple text editor such as EDIT or
  435.      Notepad. The contents should be similar to the following:
  436.  
  437.  
  438.  
  439.        ______________________________________________________________________
  440.  
  441.         @echo off
  442.         cls
  443.         echo.
  444.         echo.
  445.         echo.
  446.         echo.
  447.         choice /t:y,5 "Do you wish to boot Linux? "
  448.         if errorlevel 2 goto End
  449.         c:\loadlin c:\vmlinuz root=/dev/hdc2 ro
  450.         :End
  451.        ______________________________________________________________________
  452.  
  453.  
  454.  
  455.  
  456.   This batch file script clears the screen, adds four blank lines,
  457.   displays the text in quotes + [Y,N], then waits 5 seconds for you to
  458.   press a key. If you do not press a key within 5 seconds, it defaults
  459.   to Y and runs Linux. If you select Y or N, the batch file determines
  460.   what option you selected, then executes the selected option.  For
  461.   example, if you select 'N' then the batch file terminates and
  462.   continues to process your Autoexec.bat file, which loads Windows 95.
  463.   If you select Y, then of course Linux will load.
  464.  
  465.   If you do not want four blank lines before the text, modify the number
  466.   of lines with echo. If you do not want the screen to clear, then
  467.   remove the line with cls. The /t switch tells the choice command to
  468.   wait 5 seconds and, if no key is pressed, to default to Y. Change the
  469.   y to an n if you want Windows 95 to boot after the 5 second timeout:
  470.   choice /t:n,5.  Also, you can change the amount of time to wait from 0
  471.   to 99 seconds.  For more information on the choice command, change to
  472.   the c:\windows\command directory and type: choice /? at the command
  473.   prompt.
  474.  
  475.   NOTE: You will have to modify the line that boots Linux to match your
  476.   configuration. Please see ``Section 3.6'' for examples of how to
  477.   configure Loadlin to boot to Linux.
  478.  
  479.  
  480.   ╖  Next, create an Autoexec.bat file (if you don't already have one)
  481.      with a simple text editor. Then, on the first line, add the
  482.      following:
  483.  
  484.  
  485.  
  486.        ______________________________________________________________________
  487.  
  488.                call c:\linux
  489.        ______________________________________________________________________
  490.  
  491.  
  492.  
  493.  
  494.   If Linux.bat is in another directory you will have to reference the
  495.   correct path. For example if Linux.bat is in a directory called
  496.   C:\batch, you would add:
  497.  
  498.  
  499.  
  500.        ______________________________________________________________________
  501.  
  502.                call c:\batch\linux
  503.        ______________________________________________________________________
  504.  
  505.  
  506.  
  507.  
  508.   to the first line of your Autoexec.bat file. Save and exit the file.
  509.   Now all you need to do is reboot. You should be prompted on whether
  510.   you want to boot Linux.
  511.  
  512.  
  513.   6.2.  Method 2.
  514.  
  515.   This method is a bit more involved, but offers the greatest
  516.   flexibility. What this method does it create your own custom boot
  517.   menu, though it does not replace the Windows 95 boot menu. You will
  518.   need a Config.sys and an Autoexec.bat file.
  519.  
  520.  
  521.   ╖  First you will need to define a Startup Menu in Config.sys
  522.      (mycomments to you are in parenthesis):
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.   ______________________________________________________________________
  530.  
  531.    [menu]
  532.    menuitem=Linux, Boot to Linux  (This defines a Menu Block and gives it a description).
  533.    menuitem=Win95, Boot to Windows 95
  534.    menucolor=15,1  (This gives a blue background with bright white text)
  535.    menudefault=Linux, 15  (This sets the default menuitem and waits up to 15 seconds for input).
  536.  
  537.    [linux]
  538.    shell=f:\loadlin.exe f:\vmlinuz root=/dev/hdc2 ro (Please see Section 4 for examples and syntax).
  539.  
  540.    [win95]
  541.    (Include the normal contents of your config.sys file here. If you did
  542.    not have a config.sys file before now, then leave this section blank).
  543.   ______________________________________________________________________
  544.  
  545.  
  546.  
  547.  
  548.  
  549.   ╖  Save and exit your Config.sys file. If you want, you can use this
  550.      Config.sys template to get started.
  551.  
  552.  
  553.   ╖  Next, edit your Autoexec.bat file (my comments to you are in
  554.      parenthesis):
  555.  
  556.  
  557.  
  558.        ______________________________________________________________________
  559.  
  560.         goto %config%
  561.  
  562.         :win95
  563.         (Include the normal contents of your autoexec.bat file here. If you did
  564.         not have an autoexec.bat file before now, then leave this section blank).
  565.        ______________________________________________________________________
  566.  
  567.  
  568.  
  569.  
  570.  
  571.   ╖  Save and exit your Autoexec.bat file. If you want, you can use this
  572.      Autoexec.bat template to get started. That should do it. The next
  573.      time you reboot, you should get a Start Up menu with the option to
  574.      boot to Linux or Windows 95.
  575.  
  576.  
  577.   7.  Frequently Asked Questions:
  578.  
  579.  
  580.   7.1.  Where can I find more information on using Loadlin?
  581.  
  582.  
  583.   ╖  Slackware versions 3.2 and 3.5 contain a file named "loadlin.tgz"
  584.      in the \slakware\A5 directory, Slackware versions 3.3 and 3.4 have
  585.      loadlin.tgz in the \slakware\A4 directory. Slackware version 3.6
  586.      has loadlin.tgz in the \slackware\A8 directory. Unarchive the file
  587.      and look in the \docs directory for a file named manual.txt. I do
  588.      not know about earlier versions of Slackware.
  589.  
  590.  
  591.   ╖  RedHat versions 4.2 through 5.2 contain a file named
  592.      "loadlin16.tgz" in  the \dosutils directory. Unarchive the file and
  593.      look in the \docs directory for a file named manual.txt. RedHat 4.1
  594.      does not seem to have this archive. The manual.txt is also
  595.      available for download at:
  596.  
  597.  
  598.        ftp://ftp.eskimo.com/u/p/praxis/manual.txt
  599.  
  600.  
  601.  
  602.   ╖  Additional information is available at:
  603.  
  604.  
  605.        http://metalab.unc.edu/LDP/HOWTO/BootPrompt-HOWTO-2.html#ss2.2
  606.  
  607.  
  608.  
  609.   7.2.  I am not sure what partition Linux is installed on. How do I
  610.   find out?
  611.  
  612.  
  613.   ╖  At a Linux shell prompt, run the fdisk utility and press "p". From
  614.      there you should be able to tell. If you need additional help using
  615.      fdisk, please consult the man pages.
  616.  
  617.  
  618.   7.3.  Where do I find the kernel image file and how do I copy it to my
  619.   MS-DOS partition?
  620.  
  621.  
  622.   ╖  To find your linux kernel file type:
  623.  
  624.  
  625.  
  626.        ______________________________________________________________________
  627.  
  628.                find / -name vmlinuz
  629.        ______________________________________________________________________
  630.  
  631.  
  632.  
  633.  
  634.  
  635.   at a Linux shell prompt. This will search all Linux partitions for the
  636.   vmlinuz file. If you have multiple vmlinuz files, then make sure you
  637.   use the correct one. If you are not sure, then the safest bet would be
  638.   to use the most recent one.
  639.  
  640.   To copy your linux kernel file to your DOS partition, you need to make
  641.   your DOS partition visible to Linux, then mount the partition if it is
  642.   not already. Generally, this should have been set up when you
  643.   installed Linux. All you need to do next is change to the directory
  644.   the vmlinuz file is in and copy it over to DOS using the cp command.
  645.  
  646.   However, if Linux was not set up to recognize your DOS partition, then
  647.   copy vmlinuz to a floppy. Take any DOS formatted floppy (with enough
  648.   disk space to hold your kernel image file) and insert it into your
  649.   floppy drive. Type:
  650.  
  651.  
  652.  
  653.        ______________________________________________________________________
  654.  
  655.                mount /dev/fd0 /tmp
  656.        ______________________________________________________________________
  657.  
  658.  
  659.  
  660.  
  661.   at a Linux shell prompt. Then change to the directory your kernel
  662.   image file is in and type:
  663.  
  664.  
  665.  
  666.        ______________________________________________________________________
  667.  
  668.                cp vmlinuz /tmp
  669.        ______________________________________________________________________
  670.  
  671.  
  672.  
  673.  
  674.   This will copy vmlinuz to your floppy disk and it will be readable by
  675.   DOS. Shutdown Linux, boot to DOS, then copy vmlinuz to whichever
  676.   directory you choose. If you recompile your kernel, do not forget to
  677.   copy the new kernel image file to your DOS partition. This will
  678.   overwrite your old file, so it might be a good idea to rename the old
  679.   file first just in case the new one does not work properly.
  680.  
  681.  
  682.   7.4.  Does it matter if I install Linux or Windows 95 first?
  683.  
  684.  
  685.   ╖  Technically no. However, it would be much simpler to install Win95
  686.      first. That way it is easier to setup Linux to recognize your DOS
  687.      partition(s) as you can usually do this during the Linux
  688.      installation.
  689.  
  690.  
  691.   7.5.  I currently have LILO installed, but I want to use Loadlin
  692.   instead. How do I remove LILO?
  693.  
  694.  
  695.   ╖  You will need to restore the Win95 MBR (Master Boot Record) that
  696.      LILO overwrote when you installed LILO. At a DOS prompt type:
  697.  
  698.  
  699.  
  700.        ______________________________________________________________________
  701.  
  702.                fdisk /mbr
  703.        ______________________________________________________________________
  704.  
  705.  
  706.  
  707.  
  708.  
  709.   7.6.  What if I already dual boot between Windows 95 and Windows 3.x,
  710.   and I want to boot to Linux using this method?
  711.  
  712.  
  713.   ╖  Frankly, if you want to do this I would recommend using LILO.
  714.      However, if you really do not want to use LILO, you will have to
  715.      boot to Win 3.x first, then issue the Loadlin command. (Make sure
  716.      Windows 3.x is NOT running, but that you are in DOS 5.0 or 6.x).
  717.  
  718.  
  719.   7.7.  Is it possible to initiate Linux from the Windows 95 desktop?
  720.  
  721.  
  722.   ╖  Yes. First, create a batch file called "linux.bat", for example.
  723.      Edit the file to contain a Loadlin command such as:
  724.  
  725.  
  726.  
  727.   ______________________________________________________________________
  728.  
  729.           loadlin f:\vmlinuz root=/dev/hdc2 ro
  730.   ______________________________________________________________________
  731.  
  732.  
  733.  
  734.  
  735.  
  736.   Now save the file in the \windows\desktop directory. Next, right click
  737.   on the Linux.bat icon, then left click on Properties. Now click on the
  738.   Program tab, then click on the Advanced button. Click on the box next
  739.   to "MS-DOS mode" and make sure the box next to "Warn before entering
  740.   MS-DOS mode is checked". Click OK, then click on OK again. Now when
  741.   you double click on the Linux icon, a warning box will appear before
  742.   going into MS-DOS mode. If you click on "Yes" then Windows enters MS-
  743.   DOS mode and executes the Linux.bat file.
  744.  
  745.   NOTE: You must be in MS-DOS mode in order to use Loadlin. Please see
  746.   the manual.txt file mentioned in ``Section 7.1'' of this ``FAQ'' for
  747.   more information.
  748.  
  749.  
  750.  
  751.   7.8.  Where can I get a plain text version of this document?
  752.  
  753.  
  754.   ╖  You can get a plain text version of this document at:
  755.  
  756.        ftp://ftp.eskimo.com/u/p/praxis/loadlin.txt
  757.  
  758.  
  759.  
  760.   8.  Credits
  761.  
  762.   A special thanks toNorm Jacobowitz and Fred Harris for helping me sort
  763.   out the Windows 95 OSR2 issues and for helping me improve this mini-
  764.   HOWTO.
  765.  
  766.  
  767.  
  768.  
  769.  
  770.  
  771.  
  772.  
  773.  
  774.  
  775.  
  776.  
  777.  
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786.  
  787.  
  788.  
  789.  
  790.  
  791.  
  792.  
  793.