Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Errors installing kernel

Status
Not open for further replies.

Crundy

Programmer
Jul 20, 2001
305
GB
Hello,
I am trying to install kernel 2.4.17 on my redhat 7.2 machine, but I keep getting an error on 'make install': "/etc/lilo.conf: No such file or directory"

This seems reasonable as I am using Grub instead of Lilo, but I can't find an option anywhere to tell the kernel installer that.

If I create a blank /etc/lilo.conf file, I get another error: "Fatal: Can't put the boot sector on logical partition 0x307"

Can anyone help? C:\DOS:>
C:\DOS:>RUN
RUN DOS RUN!!
 
Hi,

I have never used 'Make Install' for a kernel. The normal steps with grub in plcae would be :

(first unpack source tarball and create link as /usr/src/linux)
cd /usr/src/linux
make xconfig
make dep
make clean
make bzImage
make modules
make modules_install
cp arch/i386/boot/bzImage /boot/vmlinuz-2.4.17
cp System.map /boot/System.map-2.4.17
/sbin/mkinitrd /boot/initrd-2.4.17 2.4.17 (if you need it for scsi etc)

(substitute the actual kernel version where it shows 2.4.17 above)

Then edit your /boot/grub.conf and add the new image... something similar to :

title Linux2417
root (hd0,7)
kernel /boot/vmlinuz-2.4.17 root=/dev/hda8

(change the root entries to the correct partition)

and reboot...

Hope this helps

 
OK, It all worked OK until I rebooted. It didn't seem to be able to connect to the network (I couldnt ping it from my other machine which I could do before).

Do you know what could be causing it? I told it to install networking support etc in the kernel config C:\DOS:>
C:\DOS:>RUN
RUN DOS RUN!!
 
Hi,

If its the first time you have compiled your own kernel on that box then its highly likely you would have missed a few bits out at the 'make xconfig' / 'make menuconfig' stage. Did you select the appropriate ethernet driver module for your NIC for example ?

One other issue is that sometimes you might select something as 'compiled in' (to the kernel itself) when the prior kernel you were using had the equivalent compiled as a module. Or indeed vice versa. If you compiled a module where the original kernel had the function builtin then you'd need to load the module to memory before it would work - either via a modprobe/insmod command or indirectly by an alias in /etc/modules.conf .

Once you've got it all working what you do next time is start by copying the .config file from the old source directory to the new one. Then when you do 'make xconfig' or 'make menuconfig' you start with everything selected as last time.

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top