[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 229
  • Last Modified:

lilo - 2 hard drives

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
layres
Asked:
layres
  • 2
1 Solution
 
tecwilyCommented:
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
 
hansendcCommented:
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
 
tecwilyCommented:
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
 
kartebiCommented:
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

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now