LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-11-2002, 08:26 PM   #1
khanhhoan
LQ Newbie
 
Registered: Dec 2001
Posts: 6

Rep: Reputation: 0
Question LILO Configuration


Hi all,

I have 2 hard drive. On the second one, I install windows ME and 2K server. After that I install LINUX (RedHat 7.2) on the first one and I want to use LILO to boot my windows on the second.

But when I configure LILO and reboot, it notify that

"NTLDR is missing."

and cannot load my windows on the second drive.

Please tell me how I can do to boot windows on my drive.

Thanks for your reading.
 
Old 07-11-2002, 09:16 PM   #2
php
Member
 
Registered: Jun 2001
Location: USA
Distribution: Slackware
Posts: 827

Rep: Reputation: 30
have you set the proper hdb variables so that it can see the windows?
 
Old 07-11-2002, 11:38 PM   #3
khanhhoan
LQ Newbie
 
Registered: Dec 2001
Posts: 6

Original Poster
Rep: Reputation: 0
I set like this

other=/dev/hdb1
optional
label=Windows
 
Old 07-12-2002, 04:41 AM   #4
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Maybe remapping the drives will get it working. Try:

other=/dev/hdb1
optional
label=Windows
map-drive=0x80
to=0x81
map-drive=0x81
to=0x80


Then run /sbin/lilo and reboot.

<Edit> If that doesn't work, try changing hdb1 to hdb and run /sbin/lilo again.</Edit>

Last edited by linuxcool; 07-12-2002 at 05:40 AM.
 
Old 07-12-2002, 07:27 AM   #5
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
the problem is linux/win98 has overwritten the win2k MBR and you will need:

1. 2K boot floppies
2. a created backup of the lost Winnt mbr file, on the same floppy disk(s).

The RH Linux/lilo FAQs say that rescue of the WIN2K dual-boot configuration is impossible without these 2 things. Next time spend some time making some boot floppies.

This might help you: http://support.microsoft.com/default...;EN-US;q255220
 
Old 07-12-2002, 08:06 PM   #6
khanhhoan
LQ Newbie
 
Registered: Dec 2001
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks all.

I have followed linuxcool's way and it can boot my Windows now.

linuxcool, may you explain your bold sentences?

Or if you don't have time, please tell me where I can find the documents about LILO. I want to read more about it.

If any one have such documents, may you tell me?

Thanks very much.
 
Old 07-12-2002, 08:54 PM   #7
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
You're welcome.

About these lines:

map-drive=0x80
to=0x81
map-drive=0x81
to=0x80


When the computer boots up, the bios assigns numbers to the drives ( 0x80, 0x81, 0x82, etc ). Windows likes being the primary master drive. In this case, it's the primary slave drive and it doesn't like being the primary slave drive. So, the lines above remap the primary master and the primary slave drives. Now the primary slave drive thinks it's the primary master drive. Windows is now happy. I hope that helps.
 
Old 07-13-2002, 04:40 PM   #8
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
Strange, If I write (uncomment) these line in my Lilo, I get an infinite loop of 81x80x81x80x81x80x81x80x81.... at boot
If I comment just a part of these line, all my HD are duplicated in Windoze (C: is present D: is the same Hd, E: is ok, F: is the same...) so my Windoze Crash (I'm not really surprised)

Lilo is only good for linux at my opinion. So I use LILO for booting Linux ONLY and If I want to boot windoze (I don't use it often except sometimes for games) I tell my BIOS to boot the second HD (so Windoze boot with his own MBR).

It's a bit annoying but it's the safest ways
 
Old 07-13-2002, 08:09 PM   #9
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Half_Elf, what does your /etc/lilo.conf file look like? What drive is your windows drive ( hdb, hdc, hd?) ?
 
Old 07-15-2002, 01:43 AM   #10
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
Herrrm actually, I think my win HD is primary slave not sure, may be secondary too, don't remember where my cd-rom is... I remember my burner is secondary master, so I think win is secondary slave...

my lilo.conf "map option" look like your right now and it doesn't works.
 
Old 07-15-2002, 08:47 PM   #11
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
If your win drive is primary slave, then the map lines I gave to khanhhoan should have worked for you. If it's secondary slave, you would have to try other numbers to get it to work. Maybe 0x83 instead of 0x81. Even then it might not work. lilo sometimes can't get it to work.

I've never seen the errors you were gettting. I'm curious. Could you post a copy of your /etc/lilo.conf file?
 
Old 07-16-2002, 12:10 AM   #12
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/hda
message = /boot/boot_message.txt
prompt
#compact # faster, but won't work on all systems.
timeout = 50
# Normal VGA console
vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# ramdisk = 0 # paranoia setting
# End LILO global section
# Linux bootable partition config begins
image = /vmlinuz
root = /dev/hda1
append="hdc=ide-scsi"
label = Linux
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends
# DOS bootable partition config begins
other = /dev/hdb1
label = Windows
map-drive = 0x80
to = 0x81
map-drive = 0x81
to = 0x80
table = /dev/hdb
# DOS bootable partition config ends
 
Old 07-16-2002, 05:00 AM   #13
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
It looks OK. You said that you weren't sure if the win drive was primary slave. According to your lilo.conf file, it is primary slave. But, then you said it was secondary slave. If it's secondary slave, then these two lines should be changed from this:

other=/dev/hdb1
table=/dev/hdb

To this:

other=/dev/hdd1
table=/dev/hdd
 
Old 07-16-2002, 04:17 PM   #14
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
It's primary slave, my drive is really hdb, I done some verification...

Lilo is buggy :P
I tried to comment a part of this map option... And then I got a loop

Any suggestion? I think I will try to "reverse" the map option, but I'm very scared about the result.... If Lilo can duplicate my HD, I really dunno what can happen this time
 
Old 07-16-2002, 08:08 PM   #15
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Half_Elf, are your hard drive jumpers set to primary master and primary slave? Or are they set to " cable select "? If they are set to " cable select ", you need to change them to primary master and primary slave.

Don't comment out part of the " map-drive " and " to " lines. All four lines are needed to remap the drives.

You could try commenting out the " table=/dev/hdb " line. Some people have said it caused them problems.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LILO configuration for new OS jmcdonald21 Linux - Software 1 02-21-2005 02:11 PM
Lilo configuration drisay Slackware 5 09-15-2004 09:21 PM
lilo configuration zedzdead Linux - Newbie 1 03-29-2004 06:45 AM
LILO Configuration jelmerderonde Linux - Newbie 1 10-25-2003 05:24 AM
lilo configuration deepak Linux - Software 5 10-11-2001 03:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration