LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-29-2003, 04:59 PM   #1
netwench
LQ Newbie
 
Registered: Jun 2003
Posts: 5

Rep: Reputation: 0
Question no choice for lilo- now can't dual boot


hello,
i'm hoping for some help. i have a soyo dragon plus mb, amd athelon xp 2000 processor, 768 mgs of ram, 40 gig drive. i just installed win 200 server (ntfs) and red hat 6.2 . i TRIED installing rh9 but it just hung when it probed my devices so i gave that one up.

anyway, my problem is i was trying to install server components and most everything so that i can learn how to use it in rh. my partitions are hda1 is win 2000 (about 20 gigs), hda2 is the linux native (rest of drive) and hda3 is 500mgs swap.

after i restarted, when i just let it boot from hdd it stops after "verifiying data....." it says " LI_" then hangs with a blinking cursor.
i can boot into linux using the boot disk i made when i installed it . with that disk, LILO gets spelled out and i can log into linux fine.
i CANNOT boot into windows at all anymore even using the cd rom with windows 2000 on it.

i saw some of the directions here talking about "boot into windows and add such and such to boot.ini" but what do i do if i can't get into windows? and i don't understand at all what i have to do with the mbr and copying files and such.

please, if someone could walk me through this. rh6.2 install does not give me an option of whether to use lilo or not or even where to put it, as i've seen in other posts.

i want to be able to boot into either, obviously.... if it means wiping everything out i can do that but i'll need instructions as to where to put everything back.

thanks!!!!
 
Old 06-29-2003, 05:23 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Not sure if W2K has the same options as XP but if you can boot the install CD and select repair mode then run the command fixmbr.

Other option is if you have a win98 CD or emergency boot floppy use that to boot to DOS mode and run the command

fdisk /mbr.
 
Old 06-29-2003, 05:29 PM   #3
netwench
LQ Newbie
 
Registered: Jun 2003
Posts: 5

Original Poster
Rep: Reputation: 0
i tried loading from the cd rom- it is bootable- but it just said:

"booting from cdrom drive...

LI_"

(hangs again)

i have xp pro- trying to find emergency boot disk from that right now...
 
Old 06-29-2003, 05:48 PM   #4
netwench
LQ Newbie
 
Registered: Jun 2003
Posts: 5

Original Poster
Rep: Reputation: 0
snif snif... ok, if i put in the rh boot disk AND the win 2000 cd, it boots to windows from cd. (wtf?)

fixmbr worked!

so now i can boot to windows .. snif snif.. but i want linux!

and if i put in the rh boot disk, i can boot to linux. so it's there but..

i'm not touching anything else until someone can advise me how to install linux dual boot and what (if anything) i need to wipe out. i have a feeling the partitions are still there but the mbr has been changed so.... i don't know my next step.



sorry for being such a newbie... i thought i had read enough posts but i guess not...

thanks!

Last edited by netwench; 06-29-2003 at 05:53 PM.
 
Old 06-29-2003, 07:08 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
To use W2K to boot linux:
http://jaeger.morpheus.net/linux/ntldr.php

fixmbr just restored the master boot record.

What the above steps shows is instead of writing lilo to the mbr you will write it to the boot partition. Then copy it to a file on the W2K c: drive. Modify W2K's bootloader to boot linux.
 
Old 06-30-2003, 12:38 AM   #6
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
I dual boot XP and Debian. Here's my lilo.conf file. It works for me. I've left in all the auto-generated comments - they might help.

lilo.conf:

lba32

# Overrides the default mapping between harddisk names and the BIOS'
# harddisk order. Use with caution.
#disk=/dev/hde
# bios=0x81

#disk=/dev/sda
# bios=0x80

boot=/dev/hda

root=/dev/hda1

# Enable map compaction:
# Tries to merge read requests for adjacent sectors into a single
# read request. This drastically reduces load time and keeps the
# map smaller. Using `compact' is especially recommended when
# booting from a floppy disk. It is disabled here by default
# because it doesn't always work.
#
compact

# Installs the specified file as the new boot sector
# You have the choice between: bmp, compat, menu and text
# Look in /boot/ and in lilo.conf(5) manpage for details
#
install=/boot/boot-menu.b

map=/boot/map

# Specifies the number of deciseconds (0.1 seconds) LILO should
# wait before booting the first image.
#
delay=20

# You can put a customized boot message up if you like. If you use
# `prompt', and this computer may need to reboot unattended, you
# must specify a `timeout', or it will sit there forever waiting
# for a keypress. `single-key' goes with the `alias' lines in the
# `image' configurations below. eg: You can press `1' to boot
# `Linux', `2' to boot `LinuxOLD', if you uncomment the `alias'.
#
# message=/boot/bootmess.txt
prompt
timeout=300
# prompt
# single-key
# delay=100
# timeout=100

vga=normal

# Kernel command line options that apply to all installed images go
# here. See: The `boot-prompt-HOWO' and `kernel-parameters.txt' in
# the Linux kernel `Documentation' directory.
#
append="hdd=ide-scsi apm=on"

default=Linux

image=/vmlinuz
label=Linux
read-only
root=/dev/hda1
# initrd=/initrd.img
# restricted
# alias=1

image = /boot/rtzImage
label = RTlinux
read-only
root = /dev/hda1

#image=/vmlinuz.old
# label=LinuxOLD
# read-only
# initrd=/initrd.old
# restricted
# alias=1


#image=/vmlinuz.orig
# label=Linux2.2.20
# read-only
# optional
# restricted
# alias=2

other=/dev/hda3
label="FreeBSD"

other=/dev/hda4
label="WinXP"
 
Old 06-30-2003, 07:25 AM   #7
netwench
LQ Newbie
 
Registered: Jun 2003
Posts: 5

Original Poster
Rep: Reputation: 0
thanks so much for the very detailed lilo .conf. but where does it go? mbr? /boot? i'm still confused about that concept.

one last thing- i'm finding that the drivers for things i want (video card, etc) can be found only for later versions of rh. if i find a WORKING (grr) copy of rh 7/8/9 and i want to install that, will i have this dual boot mess all over again? i mean, will it just write over my mbr and possibly leave me in "LI" of death hang again?

i found this page http://www.redhat.com/docs/manuals/l...lilo-conf.html but i NEVER saw this screen when i installed linux all 5 times with both "custom" and "server" options... any clue as to why that screen never shows up? does anyone know if it appears in later versions?

thanks for all your help!
 
Old 06-30-2003, 09:02 AM   #8
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Yes. The lilo.conf file is located in /etc. So the Whole address is /etc/lilo.conf. It exists already you'll just have to edit it. The lines that interest you the most are the two sections down the bottom. They describe how to define another OS on another partition (other=blah, blah). After you have saved you changes to this file and exited you'll have to run /sbin/lilo.

Two notes: 1. You'll have to be root to edit lilo.conf and execute /sbin/lilo.
2. More often than not you wont have to type in "/sbin/lilo". Just "lilo" will do.

When you run lilo, it just shoves all the settings from lilo.conf into the MBR. If you don't run it, then your new settings wont take effect.

With regards to the screen you never saw I can't help you specifically with that (I use Debian) but to force-load lilo into the MBR you type "lilo -b /dev/hda" (assuming you are using /dev/hda as your boot device - which you probably are). If you want to install lilo into the first sector of you linux partition and let windows (or something else) be you boot manager you do this with "lilo -b /dev/hdax" where x = 1 to 4 and corresponds to the partition on which linux in installed. If you're not sure, type "fdisk -l". A table will appear. Then read off the device (first column) corresponding to the system "Linux" (last column).

Hmmm... got kinda verbose there.
 
Old 06-30-2003, 09:06 AM   #9
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Oh about the drivers... No you wont have to go through the dual-booting nightmare again. Different drivers install differently. Just boot linux and follow the vendor instructions. Driver installation *SHOULDN'T* affect your booting.
 
Old 06-30-2003, 09:45 AM   #10
netwench
LQ Newbie
 
Registered: Jun 2003
Posts: 5

Original Poster
Rep: Reputation: 0
thanks so much! verbose is good- i USE linux (worked for isps, web stuff, etc) i've never installed it.
i really needed thos directions as to how to make lilo point to the linux partition- i want windows to be the boot manager. i will try this tonite (going to work) and report back.

and about drivers, i get it now. but what about an "upgrade" to rh itself? i have no gui, so i don't know how to do that (besides i still haven't config'd the onboard nic) so i'm asumming i can put in a cd and upgrade..? or? that's where i was worried about having this dual boot nightmare again. it seems the minimum version i need is rh 8.... just don't know how to make it that....

thanks!
 
Old 06-30-2003, 10:10 AM   #11
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Not entirely sure about the upgrading procedure on RH. On debian it's just "apt-get upgrade" (as root). I understand that RH also has apt-get... Am I right?

Mind you, you have to have your /etc/apt/sources.list file configured properly. If you have apt-get, type "man apt-get" and "man sources.list" for more detailed info.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Best Choice for installing Linux w/ existing XP for dual boot rapaport Linux - Newbie 3 07-28-2008 02:53 PM
lilo dual boot noir911 Slackware 7 10-20-2004 01:46 AM
Need dual boot help...LILO..Winxp wont boot Scrag Linux - Hardware 2 09-01-2004 12:26 AM
Lilo lost, Install disk failing to restore Lilo on dual boot? Dobie Linux - Newbie 2 05-05-2004 05:00 PM
should i use LILO? - no dual boot Abdulla Linux - Newbie 6 07-13-2003 04:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:23 AM.

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