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 07-13-2004, 06:14 AM   #1
mir_sheely
Member
 
Registered: Mar 2004
Location: KARACHI
Distribution: WIN 98, WIN XP Pro, Mandrake 9.2
Posts: 166

Rep: Reputation: 30
Problem Updating lilo after compiling kernel.....


Hi buddies.
I am using Mandrake 9.2 with kernel 2.4.22-10mdk at this time. I downloaded kernel-2.6.7kernel.org and extract it. I did every thing right according to guides. I made modules, installed them. In the end when I edited /etc/lilo.conf and when i wrote command

Quote:
[root@localhost moiez]# /sbin/lilo
then it gave output as
\n and \t are not allowed in quoted strings at or above line 15 in file '/etc/lilo.conf'
[root@localhost moiez]#
I removed my edited line but problem presists.
The content of my /etc/lilo.conf before editing was as:-

---------------------------------------------------------------
boot=/dev/hda
map=/boot/map
vga=788
default="windows_XP"
keytable=/boot/us.klt
prompt
nowarn
timeout=500
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz
label="linux"
root=/dev/hda8
initrd=/boot/initrd.img
append="devfs=mount acpi=ht resume=/dev/hda7
splash=silent"
vga=788
read-only
image=/boot/vmlinuz
label="linux-nonfb"
root=/dev/hda8
initrd=/boot/initrd.img
append="devfs=mount acpi=ht resume=/dev/hda7"
read-only
image=/boot/vmlinuz
label="failsafe"
root=/dev/hda8
initrd=/boot/initrd.img
append="failsafe devfs=nomount acpi=ht resume=/dev/hda7"
read-only
other=/dev/hda1
label="windows_XP"
table=/dev/hda
other=/dev/fd0
label="floppy"
unsafe
----------------------------------------------------------------
And after editing lilo.conf the contents are as


----------------------------------------------------------------
boot=/dev/hda
map=/boot/map
vga=788
default="windows_XP"
keytable=/boot/us.klt
prompt
nowarn
timeout=500
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz
label="linux"
root=/dev/hda8
initrd=/boot/initrd.img
append="devfs=mount acpi=ht resume=/dev/hda7
image=/boot/vmlinuz-2.6.7
label="linux-2.6.7"
root=/dev/hda8
initrd=/boot/kernel-2.6.7initrd.img
append="devfs=mount acpi=ht resume=/dev/hda7
splash=silent"
vga=788
read-only
image=/boot/vmlinuz
label="linux-nonfb"
root=/dev/hda8
initrd=/boot/initrd.img
append="devfs=mount acpi=ht resume=/dev/hda7"
read-only
image=/boot/vmlinuz
label="failsafe"
root=/dev/hda8
initrd=/boot/initrd.img
append="failsafe devfs=nomount acpi=ht resume=/dev/hda7"
read-only
other=/dev/hda1
label="windows_XP"
table=/dev/hda
other=/dev/fd0
label="floppy"
unsafe
----------------------------------------------------------

Now what should I do. I have done evry thing which i could. Please any one help me if any one can.
Thanks alot.
 
Old 07-13-2004, 07:39 AM   #2
idaho
Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: RedHat, Libranet
Posts: 438

Rep: Reputation: 30
Looks like you are missing a closing quotation mark in your append line.
 
Old 07-13-2004, 12:20 PM   #3
mir_sheely
Member
 
Registered: Mar 2004
Location: KARACHI
Distribution: WIN 98, WIN XP Pro, Mandrake 9.2
Posts: 166

Original Poster
Rep: Reputation: 30
Thank U very much.
I updated it and now it is solved, But another problem ocuured and i-e

After removing this bug when I ran /sbin/lilo the out put was

------------------------------------------------------
[root@localhost moiez]# /sbin/lilo
Unrecognized token "splash" at above line 21 in file '/etc/lilo.conf'
-----------------------------------------------------------

Quote:
splash=silent"
vga=788
read-only

So again it caused problem for me. Can any one pls help me here. I m doubtfull about the word "splash" written in the file. Actually I forgot to make a back-up of /etc/lilo.conf before editing it. And also i removed some thing unfortunately as u people saw in previous question. So kindly pls tell me the actuall word.
Thank U very much idaho for ur help.
 
Old 07-13-2004, 03:44 PM   #4
veritas
Member
 
Registered: Aug 2003
Location: Dallas,TX
Distribution: Ubuntu Server, Slackware, Red Hat 6.1
Posts: 241

Rep: Reputation: 30
It looks like you hit enter at the append line, so it moved down the "splash" part to the second line. So erase that splash line and put it in the second append=" ". So your second append line should look like:
Code:
append="devfs=mount acpi=ht resume=/dev/hda7 splash=silent"

Last edited by veritas; 07-13-2004 at 03:46 PM.
 
Old 07-14-2004, 04:19 AM   #5
mir_sheely
Member
 
Registered: Mar 2004
Location: KARACHI
Distribution: WIN 98, WIN XP Pro, Mandrake 9.2
Posts: 166

Original Poster
Rep: Reputation: 30
Another problem.

Thanks alot for ur help.
I updated it and in this time it updated my lilo, thanks. But when I boot the PC and entered in the new kernel, the screen goes blank and did nothiing. I reset my system and went in old kernel, but the same thing happened. What should I do now? I can't see any thing on the screen now on entring in old kernel via non-fb or via fail safe, and same thing for new kernel. The recent contents of my /etc/lilo.conf is as..

Quote:
boot=/dev/hda
map=/boot/map
vga=788
default="windows_XP"
keytable=/boot/us.klt
prompt
nowarn
timeout=500
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz
label="linux"
root=/dev/hda8
initrd=/boot/initrd.img
append="devfs=mount acpi=ht resume=/dev/hda7 splash=silent"
image=/boot/vmlinuz-2.6.7
label="linux-2.6.7"
root=/dev/hda8
initrd=/boot/kernel-2.6.7initrd.img
append="devfs=mount acpi=ht resume=/dev/hda7 splash=silent"
vga=788
read-only
image=/boot/vmlinuz
label="linux-nonfb"
root=/dev/hda8
initrd=/boot/initrd.img
append="devfs=mount acpi=ht resume=/dev/hda7"
read-only
image=/boot/vmlinuz
label="failsafe"
root=/dev/hda8
initrd=/boot/initrd.img
append="failsafe devfs=nomount acpi=ht resume=/dev/hda7"
read-only
other=/dev/hda1
label="windows_XP"
table=/dev/hda
other=/dev/fd0
label="floppy"
unsafe
What should I do now? Plz help me. The only OS which I can boot is Windows Xp. And I also got a LIVE Distro, SLAX through which I am able to edit my any file.
Thanks alot for ur co-operation.
 
Old 07-14-2004, 01:51 PM   #6
mir_sheely
Member
 
Registered: Mar 2004
Location: KARACHI
Distribution: WIN 98, WIN XP Pro, Mandrake 9.2
Posts: 166

Original Poster
Rep: Reputation: 30
Please help me. What r U people thinking. If u can't give me apropriat answer then please only give few hints or guess that what should I do now. Is it can be solved or I have to reinstall LINUX.
Secondly is kernel-2.6.7 is compatible with Redhat Linux 9.
Please help me.
 
Old 07-14-2004, 02:15 PM   #7
idaho
Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: RedHat, Libranet
Posts: 438

Rep: Reputation: 30
I understand your frustration.

My understanding of the situation is that you updated your kernel from a working system, tried to edit your lilo.conf file, but made several typos. You got support here for correcting the typos, but once you got LILO to accept your lilo.conf file, your system became unbootable.

If you kept a copy of your original lilo.conf file from before your ill-fated edits, you can use your live boot CD to copy it back over the current file. The trick is to get LILO to use it to update the hard disk master boot record (MBR).

If you can mount your HDD partitions from your live boot CD under a mount point in the same way they would be mounted on your system, then you can cd to the mount point, invoke "chroot ." to create a chroot environment equivalent to your system, invoke "lilo" to update your MBR with your valid lilo.conf file, then <CTRL><D> out of the chroot environment and reboot.

If you don't have a copy of your valid lilo.conf file, then you have learned a valuable lesson about backing up your configuration files when making changes (RCS is a good tool for doing this easily), and you are faced with the choice of experimenting your lilo.conf file back to validity (using the chroot procedure I outlined above to test and implement) or pulling the plug and reinstalling - after backing up anything important from your live CD session.
 
Old 07-15-2004, 03:04 AM   #8
mir_sheely
Member
 
Registered: Mar 2004
Location: KARACHI
Distribution: WIN 98, WIN XP Pro, Mandrake 9.2
Posts: 166

Original Poster
Rep: Reputation: 30
Thanks I am going to try it. But I have updated lilo by booting MDK disc 1 and by reinstalling boot loader.
But is the content of my lilo.conf are right? I am doubtfull about
vga=788
read-only
Then can any one pls tell me that Kernel-2.6.7 is compatible with Red Hat 9 or not?
 
Old 07-15-2004, 07:05 AM   #9
mir_sheely
Member
 
Registered: Mar 2004
Location: KARACHI
Distribution: WIN 98, WIN XP Pro, Mandrake 9.2
Posts: 166

Original Poster
Rep: Reputation: 30
I didn't try it as I don't got back-up of /etc/lilo.conf. I did another thing. I installed Redhat Linux 9 with GRUB boot loader in which I placed the option of Mandrake Linux which is on my hda7. But it is not booting it. Can any tell me that am I able to edit my redhat grub.conf or not. If able to boot MDK through RH then what should I do?
Thank U very much.
 
Old 07-15-2004, 07:14 AM   #10
mir_sheely
Member
 
Registered: Mar 2004
Location: KARACHI
Distribution: WIN 98, WIN XP Pro, Mandrake 9.2
Posts: 166

Original Poster
Rep: Reputation: 30
I didn't try it as I don't got back-up of /etc/lilo.conf. I did another thing. I installed Redhat Linux 9 with GRUB boot loader in which I placed the option of Mandrake Linux which is on my hda7. But it is not booting it. Can any tell me that am I able to edit my redhat grub.conf or not. If able to boot MDK through RH then what should I do?
Thank U very much.
 
Old 07-19-2004, 05:59 AM   #11
mir_sheely
Member
 
Registered: Mar 2004
Location: KARACHI
Distribution: WIN 98, WIN XP Pro, Mandrake 9.2
Posts: 166

Original Poster
Rep: Reputation: 30
Smile I got solved my Problem

Hi Buddies
I got solved my problem.
I did the following things.

Installed REDHAT LINUX 9.0
Copy the vmlinuz-2.4.22-10mdk, System.map and initrd-2.4.22.image in a folder /boot/mandrake on Redhat Partition.
Also copied System.map, vmlinuz-2.6.7, and initrd-2.6.7.img of new kernel of MDK 9.2 in a folder /boot/mandrakenew/ on Redhats Partition.
Now I edit /etc/grub.conf of Redhat and add entries of old and new kernel of MDK 9.2
But I made back-up this time before editing it.
Got Success in booting Redhat, MDK-2.4.22-10mdk, MDK-2.6.7 and Windows XP on Next boot..
Now enjoying two LINUX. But Redhat is little bit........

Thanks Alot for U people.
 
  


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
Problems with updating LILO for a kernel recompile.. SocialEngineer Slackware 10 03-08-2005 06:05 PM
Lilo config for compiling new kernel problem Zaskar Debian 4 07-31-2004 01:11 PM
New LILO option after updating kernel? chombee Mandriva 2 12-01-2003 07:33 AM
swaret: updating kernel + lilo xushi Slackware 5 10-17-2003 10:36 AM
Problem with Lilo not updating (yes I ran lilo after changing the conf) webguy Linux - General 2 06-24-2001 07:12 PM

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

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