Solved

lilo - 2 hard drives

Posted on 2000-02-18
4
222 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

772 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