Solved

lilo - 2 hard drives

Posted on 2000-02-18
4
224 Views
Last Modified: 2013-12-15
I've just added an additional hard drive on my desktop. The primary drive is RedHat 6.1 and the secondary drive is Win 95... I have tried to edit the lilo.conf file so that I can boot from the secondary drive...can someone give me an example of a lilo file which will work??
0
Comment
Question by:layres
  • 2
4 Comments
 

Expert Comment

by:tecwily
ID: 2537334
I have not an answer for you, but i had the example (works on my computer) of lilo.conf:

boot = /dev/hdc5
timeout = 50
prompt
  vga = normal
  read-only
map=/boot/map
install=/boot/boot.b
image = /boot/vmlinuz-2.2.13-4mdk
  label = linux
  root = /dev/hdc5
other = /dev/hda1
  label = dos
  table=/dev/hda
other = /dev/hdc1
  label = os2

win95 is in my primary disk
os2 is in the first partition on the secondary disk
and linux is in the other partitions on the secondary disk (linux Mandrake 6.0)
0
 
LVL 1

Expert Comment

by:hansendc
ID: 2539454
Windows 9x/DOS must be booted from the first disk.  This is usually the master on the first IDE channel.  If you have it on the second drive, you need to do a map drive in LILO.  You should probably look at the manpage, but I think the syntax is like this:

image=/dev/hdb1
    label=windows
    map-drive=0x81 to=0x80
    map-drive=0x80 to=0x81

This will fool Windows into thinking that it is on the first drive.  In this case, it boots Windows off of the first partition on the second IDE hard disk.

Please give us some more information about exactly how your drives are configured.
0
 

Expert Comment

by:tecwily
ID: 2544342
As comment hansendc, windows must be load in the first drive, when i formatted mi second hard drive (with /s) this not load the system, but when i create the partitions and format the hard drive with the software included on my hard drive, this can be load.

Then if you create partitions or format your hard drive with windows maybe not work, but you can try this possible solution.

(sorry, but i not speak (and write) english)
0
 
LVL 1

Accepted Solution

by:
kartebi earned 20 total points
ID: 2546815
I have the system that you want to make.
First hard drive(hda)=Linux
CD (hdb)
Second hard drive(hdc)=Windows
This is my lilo configuration:
boot=/dev/hda
vga=normal
read-only
prompt
timeout=10

other = /dev/hdc1
   label = Windows
   map-drive = 0x80
   to = 0x81
   map-drive = 0x81
   to = 0x80
   table = /dev/hdc

image = /boot/vmlinuz
   root = /dev/hda6
   label = Linux
This should work with you also.
Try not changing the configuration about linux just add the lines:
other = /dev/hdc1
   label = Windows
   map-drive = 0x80
   to = 0x81
   map-drive = 0x81
   to = 0x80
   table = /dev/hdc
If your second hard drive is hdb just make the appropriate changes.

0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
bash file 10 68
HOw To Install Docker on VMware Workstation 19 346
IMAP copying tool 14 49
database connection error mysql stops 7 32
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question