summaryrefslogtreecommitdiff
path: root/misc/slackbook/html/booting-loadlin.html
blob: d11754d34dba1d8a512c57ac2724ab7992338a7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org" />
<title>LOADLIN</title>
<meta name="GENERATOR" content="Modular DocBook HTML Stylesheet Version 1.7" />
<link rel="HOME" title="Slackware Linux Essentials" href="index.html" />
<link rel="UP" title="Booting" href="booting.html" />
<link rel="PREVIOUS" title="Booting" href="booting.html" />
<link rel="NEXT" title="Dual Booting" href="booting-dual.html" />
<link rel="STYLESHEET" type="text/css" href="docbook.css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body class="SECT1" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#840084"
alink="#0000FF">
<div class="NAVHEADER">
<table summary="Header navigation table" width="100%" border="0" cellpadding="0"
cellspacing="0">
<tr>
<th colspan="3" align="center">Slackware Linux Essentials</th>
</tr>

<tr>
<td width="10%" align="left" valign="bottom"><a href="booting.html"
accesskey="P">Prev</a></td>
<td width="80%" align="center" valign="bottom">Chapter 7 Booting</td>
<td width="10%" align="right" valign="bottom"><a href="booting-dual.html"
accesskey="N">Next</a></td>
</tr>
</table>

<hr align="LEFT" width="100%" />
</div>

<div class="SECT1">
<h1 class="SECT1"><a id="BOOTING-LOADLIN" name="BOOTING-LOADLIN">7.2 LOADLIN</a></h1>

<p>The other booting option that comes with Slackware Linux is LOADLIN. LOADLIN is a DOS
executable that can be used to start Linux from a running DOS system. It requires the
Linux kernel to be on the DOS partition so that LOADLIN can load it and properly boot the
system.</p>

<p>During the installation process, LOADLIN will be copied to root's home directory as a
.ZIP file. There is no automatic setup process for LOADLIN. You will need to copy the
Linux kernel (typically <tt class="FILENAME">/boot/vmlinuz</tt>) and the LOADLIN file
from root's home directory to the DOS partition.</p>

<p>LOADLIN is useful if you would like to make a boot menu on your DOS partition. A menu
could be added to your <tt class="FILENAME">AUTOEXEC.BAT</tt> file that would allow you
to pick between Linux or DOS. A choice of Linux would run LOADLIN, thus booting your
Slackware system. This <tt class="FILENAME">AUTOEXEC.BAT</tt> file under Windows 95 will
provide a sufficient boot menu:</p>

<table border="0" bgcolor="#E0E0E0" width="100%">
<tr>
<td>
<pre class="PROGRAMLISTING">
   @ECHO OFF
   SET PROMPT=$P$G
   SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\
   CLS
   ECHO Please Select Your Operating System:
   ECHO.
   ECHO [1] Slackware Linux
   ECHO [2] Windows 95
   ECHO.
   CHOICE /C:12 "Selection? -&gt; "
   IF ERRORLEVEL 2 GOTO WIN
   IF ERRORLEVEL 1 GOTO LINUX
   :WIN
   CLS
   ECHO Starting Windows 95...
   WIN
   GOTO END
   :LINUX
   ECHO Starting Slackware Linux...
   CD \LINUX
   LOADLIN C:\LINUX\VMLINUZ ROOT=&lt;root partition device&gt; RO
   GOTO END
   :END
</pre>
</td>
</tr>
</table>

<p>You will want to specify your root partition as a Linux device name, like <tt
class="FILENAME">/dev/hda2</tt> or something else. You can always use LOADLIN at the
command line. You simply use it in the same manner as it is in the example above. The
LOADLIN documentation comes with many examples on how to use it.</p>
</div>

<div class="NAVFOOTER">
<hr align="LEFT" width="100%" />
<table summary="Footer navigation table" width="100%" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td width="33%" align="left" valign="top"><a href="booting.html"
accesskey="P">Prev</a></td>
<td width="34%" align="center" valign="top"><a href="index.html"
accesskey="H">Home</a></td>
<td width="33%" align="right" valign="top"><a href="booting-dual.html"
accesskey="N">Next</a></td>
</tr>

<tr>
<td width="33%" align="left" valign="top">Booting</td>
<td width="34%" align="center" valign="top"><a href="booting.html"
accesskey="U">Up</a></td>
<td width="33%" align="right" valign="top">Dual Booting</td>
</tr>
</table>
</div>
</body>
</html>