LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-24-2006, 07:24 AM   #1
jomy
Member
 
Registered: Jul 2004
Location: UAE
Distribution: RedHat
Posts: 93

Rep: Reputation: 15
Configuring LILO in cclinux


Hi,


I have a computer running cclinux . I made a clone of it using Norton ghost. Now when I boot from the cloned HDD from another PC , I’m asked to enter the root of the boot partition at the Lilo prompt. If I press tab twice at the the Lilo prompt , I can see 3 files namely cclinux , backup,linuxrc . So I type cclinux root= /dev/hda2 which is the correct root of the boot partion. It was /dev/hdc2 with the original HDD.

Now my problem is , I want to make this entry permanent in the lilo conf file without having to enter cclinux root=/dev/hda2 at the lilo prompt each time when I boot the system.

Surprisingly, there was no lilo.conf file in the HDD. I checked with the original HDD , but I couldn’t find the file there also. I ran the command ' lilo -v -v ' (in the system with the cloned HDD)and it gave me an error after showing the version of Lilo and copyright information like this :


LILO version 21.7-5,copyright (C) …………………………
……………………………………..

/etc/lilo.conf : No such file or directory


So I created lilo.conf file manually , with the following lines:

linear
read-only
prompt
timeout = 50
vga = normal
image = /boot/boot.image

# Assuming boot.image to be the boot image.I couldnt find any other file in the boot partition that seems to be boot image . I searched the entire filesystem for files like vmlinu* , cclinux,etc. but I couldn't find any.#

root=/dev/hda2
label=cclinux



Now I ran the command lilo and it gave me the following error :


Fatal : open /boot/boot.b .No such file or directory.


I searched the filesystem for any file named boot.b. But it was not there.I searched the original HDD also for any such files. But the result was same.


How can I resolve this issue. Please help me out.


Jomy

Last edited by jomy; 08-24-2006 at 07:25 AM.
 
Old 09-12-2006, 03:48 PM   #2
meetscott
Samhain Slackbuild Maintainer
 
Registered: Sep 2004
Location: Phoenix, AZ, USA
Distribution: Slackware
Posts: 411

Rep: Reputation: 43
The kernels are normally called bzImage now. Do a search for that. Actually, they can be called *anything* as long as the boot loader knows that. You did good on creating a lilo.conf file, but you need do something like this:

image = /boot/bzImage-sata-hi-mem-2.4.31
root = /dev/sda5
label = 2.4.31-Hi-Mem
read-only

In this case the kernel is called bzImage-sata-hi-mem-2.4.31. I have many kernels so I embellish the names a bit ;-) Run lilo as root to reinstall and you should see some indication of success like:

Added 2.4.31-Hi-Mem *

It looks like in your case, /boot/boot.image is not a valid kernel image. So you just need to change your lilo.conf to point to valid kernel image when you find it. Don't forget to re-run lilo when you're done with the lilo.conf changes. I'm notorious for forgetting this crucial step.

Last edited by meetscott; 09-12-2006 at 03:49 PM.
 
Old 09-13-2006, 02:26 AM   #3
jomy
Member
 
Registered: Jul 2004
Location: UAE
Distribution: RedHat
Posts: 93

Original Poster
Rep: Reputation: 15
Hi,

Thank you very much for your comment. Actually my problem was that the boot partition was not getting mounted automatically and that's why I couldn't see lilo.conf or the kernel image. I mounted it manually and then made necessary changes in lilo and everything is working fine now.

Thanks and regards,

Jomy
 
  


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
Configuring lilo sklitzz Linux - General 1 02-19-2006 06:03 PM
CCLinux - Linux on floppy disk jborges Linux - Software 1 11-26-2003 10:44 AM
configuring lilo ksd Slackware 30 10-14-2003 10:49 AM
Configuring LILO NiallC Linux - Software 9 07-04-2003 01:39 PM
Configuring LILO iqlinux Linux - Software 7 01-31-2001 11:53 PM

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

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