LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 09-17-2003, 08:35 PM   #1
gtxboyracer
LQ Newbie
 
Registered: Aug 2003
Location: Wellington Nz
Distribution: RedHat 9.0
Posts: 15

Rep: Reputation: 0
LILO Issues


I just installed RH9.0
and Selected LILO as Boot Loader, But selected my Dos Partition to boot by default
How do i change this to ask which one to load instead??

Thanks, Stephen
 
Old 09-17-2003, 08:38 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Edit your lilo.conf file in /etc and remove the default line in there.

After making the changes, run /sbin/lilo and it should write the changes made.

Then a simple reboot should do the trick.
 
Old 09-17-2003, 08:39 PM   #3
gtxboyracer
LQ Newbie
 
Registered: Aug 2003
Location: Wellington Nz
Distribution: RedHat 9.0
Posts: 15

Original Poster
Rep: Reputation: 0
How do i boot into linux tho?? i cant seem to load it at all... where can i make a boot disc, or can i use the 1st cd or what?
 
Old 09-18-2003, 11:46 AM   #4
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Boot into the first Red Hat cd, and type

linux rescue

check out this site for more info:

http://www.redhat.com/docs/manuals/l...mode-boot.html
 
Old 09-18-2003, 01:01 PM   #5
opus
Member
 
Registered: Sep 2003
Location: US
Posts: 43

Rep: Reputation: 15
I'm kind of having the same problem.

I installed RH 9 from the 3 isos last night (I had a prior mandrake 9.0 install on my machine). Since I wanted to remove the mandrake install completely, I selected "Remove all linux partitions" during the install. Also, when it prompted me that GRUB would be installed by default, I changed it to LILO. Then I let the install continue until finished. I chose the Personal Desktop install. I have a couple of months experience on mandrake but other than that I'm pretty much a linux noob.

Problem is, that after the install finished and it told me to remove any CDs and floppies and reboot - well, it won't reboot (from the HD at least). It DOES reboot fine with the boot floopy I created at the end of the install.

I just wonder why it won't boot into LILO from the hard drive.

trickykid - do your answers for gtxboyracer apply to my situation also?

thanks in advance
 
Old 09-18-2003, 05:59 PM   #6
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Where did you install LILO to, during the install?
 
Old 09-18-2003, 06:37 PM   #7
opus
Member
 
Registered: Sep 2003
Location: US
Posts: 43

Rep: Reputation: 15
I don't know. I thought that when it created the partitions (or re-used the old ones from mandrake) that it would put LILO whereever necessary. I don't remember entering anything for that...

how can I tell now? It seems to be working ok (once I boot from the boot floppy).
 
Old 09-18-2003, 07:05 PM   #8
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Boot from the floppy

open a terminal

su
root password

cat /etc/lilo.conf

if you scroll up to the top you'll see a line

boot=......................


post this line or all of your lilo.conf if you want and we'll tell you were its installed - sometimes people have peoblems if LILO is installed on a partition - its often best just to have it installed in the MBR
 
Old 09-18-2003, 07:51 PM   #9
opus
Member
 
Registered: Sep 2003
Location: US
Posts: 43

Rep: Reputation: 15
oh yeah - when you mentioned MBR I remembered that was what I chose. Here's the file you asked for:

prompt
timeout=50
default=linux
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear

image=/boot/vmlinuz-2.4.20-8
label=linux
initrd=/boot/initrd-2.4.20-8.img
read-only
append="hdc=ide-scsi root=LABEL=/"

other=/dev/hda5
optional
label=DOS
 
Old 09-19-2003, 07:43 AM   #10
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
boot=/dev/hda - yep LILO's installed in the MBR

You could try this as your entry for Windows:

other=/dev/hda5
table=/dev/hda
label="DOS"

To open lilo.conf up do

su
root password

gedit /etc/lilo.conf

After youve made the changes, save the file then as root user again type

/sbin/lilo

to make the changes take effect

then make sure your BIOS is set to boot from the hard drive and try booting from it. (worth a try)

Last edited by Skyline; 09-19-2003 at 07:44 AM.
 
Old 09-19-2003, 09:49 AM   #11
opus
Member
 
Registered: Sep 2003
Location: US
Posts: 43

Rep: Reputation: 15
I don't have windows on this box. I admit it formerly was a dual-boot win98 and mandrake, but when I re-installed mandrake 9.0 I had the installer re-partition over my windows. Therefor, when all was done, all I had was mandrake 9.0. Then a couple of days ago I installed RH 9 over my mandrake install and chose to "remove all linux partitions". Then after RH installed, it wouldn't boot from the HD - even though my prior mandrake did boot OK.

I'm not much on disk partitioning, so I may have not done it right during my mandrake install. I think I told it to make:

/
swap
/home
/share

the first 3 as ext3 and the "share" as vfat (I was intending to network my win2000 box to this box).

BIOS is set for floppy first, hdd0 second, and CD third. I tried it some other ways too - originally it was CD first, floppy second and HD third. Wouldn't boot from HD either way.
 
Old 09-19-2003, 08:20 PM   #12
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Rep: Reputation: 45
swap should be Linux swap(hex code no. 82)

Are you getting any errors? Or is it just hanging without anything loaded/ing? Do you have a boot disk to get into Linux? If you do, maybe you have to reinstall LILO....
 
Old 09-19-2003, 08:46 PM   #13
opus
Member
 
Registered: Sep 2003
Location: US
Posts: 43

Rep: Reputation: 15
thanks r_jensen. Yes I made a boot floppy during the install process. That boots OK. In fact, thats the only way I can get into rh linux.

That actual error I am getting when trying to boot from hard drive is:

Boot from ATAPI CD-ROM: Failure

Like I said, if I put in the boot floppy and re-boot, I get into my system fine, and everything seems to work great.

thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Boot issues with GRUB and LILO evilregis Linux - General 1 05-16-2004 09:28 PM
Booting issues, Tried Lilo but no help FuzzyLogic269 Slackware - Installation 4 03-29-2004 04:40 PM
Dual Booting LILO issues... [WebCarnage] Linux - Software 6 03-08-2004 05:30 PM
LILO issues... Scruff Linux - General 14 11-27-2003 10:41 PM
Post-install LILO issues underscorebleac Red Hat 9 09-19-2003 11:54 AM


All times are GMT -5. The time now is 12:34 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration