Solved

lilo - 2 hard drives

Posted on 2000-02-18
4
218 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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.

763 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now