LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-05-2004, 04:39 PM   #1
deft
Member
 
Registered: Jan 2004
Location: Scotland
Distribution: Ubunto 7.10
Posts: 122

Rep: Reputation: 15
reinstalling lilo


Hi All,

I recently installed RH9 on a partition on my hardrive, the trouble is I also installed winodws 98 which now appears to have removed my lilo. I created a system disk:

fdformat /dev/fd0h1440
dd if=/boot/vmlinuz of=/dev/fd0

Which I think is right? ( is it right ) Does anyone know how i can get the lilo back ? is it possible to create the disk on another RH9 system. I know with other distro's that you reinstall the lilo from the cdrom, but it appears that RH have left out that handy utility.

Many thanks in advance...


deft.

Last edited by deft; 04-05-2004 at 04:46 PM.
 
Old 04-05-2004, 04:57 PM   #2
LavaDevil94
LQ Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Rep: Reputation: 47
i think redhat has a rescue capability on the 1st disk, which will reinstall lilo and from there allowing you to add a windows option.
 
Old 04-05-2004, 05:33 PM   #3
deft
Member
 
Registered: Jan 2004
Location: Scotland
Distribution: Ubunto 7.10
Posts: 122

Original Poster
Rep: Reputation: 15
Any ideas how it works ? ? ? or how I access it
 
Old 04-05-2004, 05:49 PM   #4
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
I am probably missing something obvious. Does your rescue disk work? If it does, use that to boot, then you can rerun the command lilo
#/sbin/lilo

If you use the install cds It kind of walks you throught the procedure. I think you have to enter linux rescue(something like that) If you have knoppix you could use that very easily also.
 
Old 04-05-2004, 05:53 PM   #5
deft
Member
 
Registered: Jan 2004
Location: Scotland
Distribution: Ubunto 7.10
Posts: 122

Original Poster
Rep: Reputation: 15
Thanks shanenin, I will give it a try..

deft
 
Old 04-05-2004, 06:03 PM   #6
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
one thought, did you reinstall windows 98, or did you change the partition table and install for the first time. If you repartitioned you may need to change you /etc/lilo.conf.
 
Old 04-07-2004, 04:30 PM   #7
deft
Member
 
Registered: Jan 2004
Location: Scotland
Distribution: Ubunto 7.10
Posts: 122

Original Poster
Rep: Reputation: 15
Still got lilo trouble's

Hi All, ( again ) ( shanenin, Linux was already on the system I just reinstalled in the same partition and then installed windows which destryed my lilo... )

I am still having problems.... shanenin, I tried what you said about the rescue disk, and it was all going well until I tried to run the "/sbin/lilo" command. When you go into rescue mode the system mounts it into /mnt/sysimage. And when I cd into that directory my root filesystem is there, intact.

The problems start when I try to run /sbin/lilo, it doesn't work, I get a error saying that /etc/lilo.conf does not exist ? I have not got a clue what to do When going to RH.com I find that there advice on the subject is: ( and I quote )

"When things go wrong, there are several ways to work on fixing them. However, they require that you understand the system well. We will present the ways that you can boot into rescue modes where you can use your own knowledge to rescue the system"

Thanks RedHat ( not ) Time for a change I think

Any help on this would make me a very happy ( and relieved ) Scotsman.....


deft...

Last edited by deft; 04-07-2004 at 04:33 PM.
 
Old 04-08-2004, 09:52 AM   #8
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
First I thought their was an automatic tool to fix you bootloader in the redhat installl cds(in rescue mode), I may be wrong about that. I am not exactly sure how the resuce mode works. If you specify where your lilo.conf is with the -C option it should work.
Code:
/sbin/lilo -C /mnt/sysimage/etc/lilo.conf
this should work assuming you can find your lilo.conf in the location /mnt/sysimage/etc/lilo.conf. Let me know if it works
 
Old 04-08-2004, 10:03 AM   #9
deft
Member
 
Registered: Jan 2004
Location: Scotland
Distribution: Ubunto 7.10
Posts: 122

Original Poster
Rep: Reputation: 15
Thanks shanenin, am going to try it again tomorrow. I will let you know how I get on...



deft..
 
  


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
Reinstalling LILO? moosegoose Slackware 5 11-11-2005 02:35 PM
Problem reinstalling lilo thebored Linux - Software 4 04-19-2005 01:30 AM
reinstalling lilo bootloader free kevin Linux - Newbie 5 08-02-2004 03:14 PM
reinstalling lilo in gentoo? bigjohn Linux - Newbie 11 02-18-2004 06:46 PM
LILO reinstalling help Andrew Hruska Slackware 3 01-05-2004 08:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:21 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