linuxnewbie.org.gif
Tuesday, 12-Dec-2000 10:38:24 EST
Newbized Help Files articles discussion board bookshelf sensei's log advertising info

Multiple OS Booting Without Lilo
Step by Step N.H.F.

by Eclipse

Here is a slick way to use Windows 95/98 to multi-boot another operating system!

1. Download and install "Loadlin" in C:\Loadlin directory in Windows.

2. In the Loadlin directory, modify the linux.bat file to "point" to the drive and partition that contains your Linux installation.

ie: If you have Linux on the second partition on your 'D' drive, you could use:
loadlin c:\vmlinuz root=/dev/hdb2 ro
ie: If you have Linux on a UMSDOS directory on your 'C' drive, you could use:
loadlin c:\vmlinuz root=/dev/hda1 rw

3. Copy your compressed kernel (i.e.: vmlinuz) to C:\ on your Windows partition.

4. Edit your C:\msdos.sys file to change the following values to zeros:
[Options]
BootGUI=0
BootDelay=0
BootMenu=0
Logo=0

5. Replace the contents of C:\config.sys file with the following:
[Menu]
menuitem=Win95, start Windows 95... (or Win98, start Windows 98...)
menuitem=dos, start MS-DOS...
menuitem=Linux, start Linux...
menudefault=Win95,5 (or Win98,5)


[Win95] (or [Win98])
DEVICE=WINDOWS\HIMEM.SYS
DEVICE=WINDOWS\EMM386.EXE NOEMS
DOS=HIGH,UMB

[dos]
DEVICE=WINDOWS\HIMEM.SYS
DEVICE=WINDOWS\EMM386.EXE NOEMS
DOS=HIGH,UMB

[Linux]

6.Add the following to the BOTTOM of your C:\autoexec.bat file:
goto %config%

:Win95 (or :Win98)
win
goto end

:dos
goto end

:Linux
cd loadlin
linux

:end

7. When you boot up your computer, you will be presented with a "Start Up" menu with 3 choices:

Start Windows 95 (or Windows 98)
Start MS-Dos
Start Linux

8. If you do NOTHING, Windows will auto-boot in 5 seconds. If you want to boot Dos or Linux, you must select one within the 5 seconds.

9. Loadlin will let you pass commands to the kernel, if necessary. (just like Lilo)
Making your Boot Floppy

A. Place a blank 1.44 Mb. floppy into your A Drive.

B. Using the Dos Prompt, type: format a: /s and then press enter.

C. Copy loadlin.exe from the C:\loadlin directory onto the floppy.

D. Copy your vmlinuz file from C:\ onto the floppy.

E. Create an autoexec.bat file on the floppy with the following lines:

@ECHO OFF
rem
rem Loadlin root= ro|rw
rem
rem Other information may need to be passed to the kernel through Loadlin.
rem See llmanual.txt included with Loadlin for more information.
rem
LOADLIN a:\vmlinuz root=/dev/hda1 ro (the hda1 is an example only: see below)

(following the examples from step 2 above, use hda, hdb, hdc, or hdd to denote your drive and partition number where your linux is installed)

When you use Loadlin as your boot manager, you will ALWAYS skip any steps that refer to the use of Lilo.

I like this much better than Lilo because it DOES NOT ALTER THE WINDOWS MBR !

NEVER again will you see that annoying "Li" without the "lo" !!!!!

Following the above example of the autoexec.bat and config.sys files, you can also add selections for even more operating systems such as OS/2 or BSD, etc.

There is no limit to the number of systems that you can boot with this method. (better buy lots of hard drives)

[-NHF Control Panel-]
The Linux Channel at internet.com
Linux Planet
Linux Today
Linux Central
Linuxnewbie.org
PHPBuilder
Just Linux
Linux Programming
Linux Start
BSD Today
Apache Today
Enterprise Linux Today
BSD Central
All Linux Devices
SITE DESCRIPTIONS
[-What's New-]
Order a Linuxnewbie T-Shirt
Easy Webcam NHF
Directory Navigation NHF
Installing Snort 1.6.3 on SuSE 6.x-7.x
Customizing vim
The SysVinit NHF
Installing ALSA for the VT82C686 integrated sound
USB Creative Video Blaster II for Linux
Configuring the Intellimouse Explorer in XFree86 V4+
The beginnings of a distro NHF
Getting Past Carnivore?
Getting and Installing PGP
Getting your ATI Rage 128 Working
How to create a multiple partition system
Using Fdisk
Introduction to Programming in C/C++ with Vim
Adding a Hard drive in Linux -- In five steps
Installing ALSA for the Yamaha DS-XG Sound Card
Getting your Diamond Rio Mp3 Player to work with Linux
Bash Programming Cheat Sheet
Installing NVIDIA Drivers for Mandrake
Setting up Portsentry
Hard Drive Speed Tweak for Linux
Sensei's Log
Chat room
Join: Linuxnewbie.org SETI Black Belts!
Send in your news
Click the image to add Linuxnewbie.org to your MyNetscape Page
[-LNO Newsletter-]

[-Archive-]
The beginnings of a distro NHF
Connecting to the Internet using KPPP
Getting your SBLive to work
Unreal Tournament NHF
LWE Day 2 Pictures
LWE Day 1 Pictures
The LNO FAQ!
WoW (Words of Wisdom)
Other sites news
What is Linux?
What is Linux? part deux (ups & downs)
Search newsgroups
The List
ALS Report
Feedback Form
jobs.linuxtoday.com.gif
Match: Format: Sort by:
Search:
[-Quick Links-]

Copyright 2000 internet.com Corp. All Rights Reserved. Legal Notices Privacy Policy

internet.com.gif