LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-28-2003, 08:47 AM   #1
rainmann
Member
 
Registered: May 2003
Location: michigan
Posts: 30

Rep: Reputation: 15
Question installing 2.4.20 on red hat 8.0


hello,

I am a newbie. I am having a problem installing linux-2.4.20
on red hat 8.0. I have followed the installation procedure.

make xconfig
make dep
make clean
make bzImage
make modules
make modules_install
make install

I'm using grub.

Problem:

1. when I boot with red hat 2.4.18-14 I see the boot directory
has grub directory, but when I boot with linux -2.4.20 my boot
directory has only kernel.h. there is no grub or vmlinuz or module-info, System.map etc.

2. my eth0 installs correctly with red 2.4.18-14 but with
 
Old 05-28-2003, 08:56 AM   #2
rainmann
Member
 
Registered: May 2003
Location: michigan
Posts: 30

Original Poster
Rep: Reputation: 15
problem restated:

2. my eth0 installs correctly with red 2.4.18-14 but fails with
linux-2.4.20.
 
Old 05-28-2003, 09:51 AM   #3
DarkXtar
Member
 
Registered: Apr 2003
Location: Exeter, Ca.
Distribution: Slackware
Posts: 37

Rep: Reputation: 15
Instead of running the command "make install" you might want to try copying arch/i386/boot/bzImage from your kernel source directory to your /boot directory and then manually editing your grub.conf file to boot the new kernel image but before you edit grub.conf back it up first. The command "make modules install" will install the kernel modules to /lib/modules/2.4.20 which is where they should be. Your eth0 may not be recognized and configured properly because the kernel module it requires was has not been compiled if your not sure which module it needs try enabling module support on all the cards under: Ethernet (10 or 100Mbit) within Network device support of your kernel config. A good site to visit on kernel compiling info is http://www.tldp.org/HOWTO/Kernel-HOWTO/
it's helped me. Also you might want to try using a pre-configured kernel config file usually it will come with you linux distro under /usr/src/linux or /boot if not you can try google searching for one. Hope this helps some, configuring\compiling kernels isn't easy but neither is learning to ride a bike yet both can be accomplished with time and patience.

Last edited by DarkXtar; 05-28-2003 at 09:54 AM.
 
Old 05-28-2003, 10:01 AM   #4
rainmann
Member
 
Registered: May 2003
Location: michigan
Posts: 30

Original Poster
Rep: Reputation: 15
Thanks for the DarkXtar,

I have tried to manually copy the bzImage to /boot.

But why can't I see my /boot directory as I see it when I boot with red hat 2.4.18-14. It seems that 2.4.20 is looking at some new /boot directory, there is only kernel.h file in here.


Thanks
 
Old 05-28-2003, 10:31 AM   #5
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,296

Rep: Reputation: 65
do you have a separate /boot partition ?
maybe it's booting from /boot, but not loading /boot in
fstab?

if your grub.conf is in /boot/grub you could look at
it and see where your kernels are.
 
Old 05-28-2003, 10:56 AM   #6
rainmann
Member
 
Registered: May 2003
Location: michigan
Posts: 30

Original Poster
Rep: Reputation: 15
thanks for the reply whansard,

I don't have a seperate /boot partition.

There is no /boot/grub when i start with 2.4.20. However, it is there when I start with red hat 2.4.18-14. I can see other kernels
there as well including vmlinuz-2.4.20, but this is older version. I cannot up update this.

under 2.4.20 /boot contents are
kernel.h vmlinuz-2.4.20

under red hat 2.4.18-14 /boot contents are

boot.b
message.ja
vmlinux-2.4.18-14
chain.b
module-info
vmlinuz
config-2.4.18-14
module-info-2.4.18-14
vmlinuz-2.4.18
grub
os2_d.b
vmlinuz-2.4.18-14
initrd-2.4.18-14.img
System.map
initrd-2.4.18.img
System.map-2.4.18
vmlinuz-2.4.20
initrd-2.4.20.img
System.map-2.4.18-14
kernel.h
lost+found
System.map-2.4.20
vmlinuz-2.4.20.old
mann_vmlinuz-2.4
message

Thanks
 
Old 05-28-2003, 07:59 PM   #7
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,296

Rep: Reputation: 65
i'm almost speechless.

can you post the output of
fdisk -l
and
cat /etc/fstab
and
/boot/grub/grub.conf when you can see it
 
Old 05-28-2003, 08:25 PM   #8
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
maybe cat /etc/mtab would be handy too?
 
Old 05-28-2003, 08:45 PM   #9
rmartine
Member
 
Registered: Dec 2002
Location: San Luis Obispo, CA
Distribution: Fedora Core 3
Posts: 618

Rep: Reputation: 30
If you just want the 2.4.20 kernel run up2date. I think RedHat will give you their precompiled version. It make not be as sexy as rolling your own but it will work.

Good Luck
 
Old 05-29-2003, 06:52 AM   #10
rainmann
Member
 
Registered: May 2003
Location: michigan
Posts: 30

Original Poster
Rep: Reputation: 15
hello Wansard,

I decided to reinstall redhat 8.0. and thing are back to normal.
I can see my boot dirctory from 2.4.20 and redhat 2.4.18-14.
However, now i am back to my problem of not having the etho failure at bootup.

I guess may having my own kernel 2.4.20 is not in the cards for untill I get more knowledge of linux. So I am reading understanding the linux kernel.

I will be accepted by LINUX.

But I have decided to do
rpm -Uvh kernel-2.4.20-13.8.i386.rpm
which has not worked either.






I did make xconfig on redhat version and 2.4.20 version it looks like red has is adding more to configuration.


So if you can help I need to resolve two problem.

1. 3com 3c590/3c595/3c590x/3cx980 ethernet card module is not being loaded. I read in the Howto that I may have to load the build and load the module manually. What do I need to do?

2. I have a wireless card from SMC that i need get working.




Thanks for the help.
 
Old 05-29-2003, 07:09 AM   #11
rainmann
Member
 
Registered: May 2003
Location: michigan
Posts: 30

Original Poster
Rep: Reputation: 15
Here is my fdisk -l listing after red hat 8.0 was installed:

Disk /dev/hda: 255 heads, 63 sectors, 7296 cylinders

Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System

/dev/hda1 1 4 32098+ de Dell Utility
/dev/hda2 5 3660 29366820 7 HPFS/NTFS
/dev/hda3 * 3661 3673 104422+ 83 Linux
/dev/hda4 3674 7296 29101747+ f Win95 Ext'd (LBA)
/dev/hda5 3674 7042 27061461 83 Linux
/dev/hda6 7043 7296 2040223+ 82 Linux swap


Why do I have
/dev/hda5 Linux and
/dev/hda3 Linux

Shouldn't there be just a one Linux partition and one Linux swap partition?
 
Old 05-29-2003, 08:30 AM   #12
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,296

Rep: Reputation: 65
i knew it. you have a linux boot partition and you
didn't know it. that's what hda3 is.
maybe it's formatted reiserfs or something and the
second kernel you were trying to use couldn't read it,
but your root is just ext2 maybe.
post the output
of
mount
and or
cat /etc/fstab
 
Old 05-29-2003, 08:50 AM   #13
rainmann
Member
 
Registered: May 2003
Location: michigan
Posts: 30

Original Poster
Rep: Reputation: 15
I guess I am way in weeds. here is the info


cat /etc/fstab

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda6 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0


cat /etc/mtab
/dev/hda5 / ext3 rw 0 0
none /proc proc rw 0 0
usbdevfs /proc/bus/usb usbdevfs rw 0 0
/dev/hda3 /boot ext3 rw 0 0
none /dev/pts devpts rw,gid=5,mode=620 0 0
none /dev/shm tmpfs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
 
Old 05-29-2003, 09:13 AM   #14
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,296

Rep: Reputation: 65
at least we know now you have a boot partition and
that was what was going on with you not being able
to see the files in /boot sometimes.
i guess now it's your choice what to do. you can get
rid of the boot, or make the boot ext2 or leave it like it
is or whatever.
 
Old 05-29-2003, 09:29 AM   #15
rainmann
Member
 
Registered: May 2003
Location: michigan
Posts: 30

Original Poster
Rep: Reputation: 15
I want to keep boot. What changes are needed to make sure
I alway boot from /boot


# grub.conf generated by anaconda
# Note that you do not have to rerun grub after making changes to this file

# NOTICE: You have a /boot partition. This means that

# all kernel and initrd paths are relative to /boot/, eg.

# root (hd0,2)

# kernel /vmlinuz-version ro root=/dev/hda5
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,2)/grub/splash.xpm.gz

title Red Hat Linux (2.4.18-14) root (hd0,2)
kernel /vmlinuz-2.4.18-14 ro root=LABEL=/ hdb=ide-scsi
initrd /initrd-2.4.18-14.img
title DOS
rootnoverify (hd0,1)
chainloader +1

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
Installing Windows XP after installing Red Hat 9 BluePyre Linux - General 7 03-09-2004 03:37 PM
Installing Red Hat 9.0 EngQuinn Linux - Distributions 4 10-17-2003 02:22 PM
Installing Red Hat 9 Help! Grimmy311 Linux - Newbie 26 10-14-2003 11:24 PM
Installing Red Hat 9 Help! Grimmy311 Red Hat 11 10-10-2003 10:26 PM
Installing Red Hat Larry James Linux - Distributions 1 12-24-2000 01:53 PM

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

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