LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 01-24-2004, 12:10 AM   #1
RHLinuxGUY
Member
 
Registered: Oct 2003
Distribution: Ubuntu 7.04
Posts: 889
Blog Entries: 1

Rep: Reputation: 30
Tried to install new kernel but doesnt succeed?


I've tried to install the latest kernel on my redhat box but i dont think it install correctly. 'Cause shouldn't the login screen (text mode) say kernel 2.6 NOT 2.4? And when i go into the directory where the kernel is located it shows the 2.4 kernel and the 2.6? Is this fine? This is what i did to install it...

Download kernel and bzimage.
Sent them to /usr/src/
cd into /usr/src/, and ran the command "tar -xzvf (the name of the package).tar.gz.
the "cd linux-2.6.0"
"make menuconfig"

afterwards i ran "make bzImage"

and "make modules", "make modules_install"

an suggestions or answers would be great. thanx in advance!
 
Old 01-24-2004, 02:04 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
You need to edit the bootloader .conf file, in redhat it is usually found in
/etc/<bootloadername>.conf

Find out about how to edit the file by reading the man pages relvant to it and your bootloader.

Read the .conf file

There will be a line setting the default kernel, the one that loads when the countdown ends.

There will be a block of commands starting
image=<old kernel image>
label=<old kernel label>
initrd=<old kernel initial ramdisk>
<options - like hdc=ide-scsi>

in whatever syntax your bootloader recognises.
You'll need to create a duplicate of this for the new kernel, replacing the old kernel names with the new ones. You'll need a new initrd.img file (use mkinitrd - see man mkinitrd and mkinitrd --help) Remember the manual files and the help files are your best freinds. To read around a command try apropos <name>.

When you've got it right, you'll see the initial boot screen list both kernels with a countdown to select one. This way, if you stuff up you can always reboot into the old one wot you know works.

Good luck
Simon
 
Old 01-25-2004, 11:25 AM   #3
jamie_barrow
Member
 
Registered: Jul 2003
Location: Gauteng, South Africa
Distribution: Windows XP, yup :D Will be back onto Ubuntu probably someday
Posts: 107

Rep: Reputation: 15
I have installed the new kernel (2.6.1) on redhat 9, but when it tries to boot the new kernel, it gives the following messages and stops:

Red Hat nash version 3.4.42 starting
Mounting /proc filesystem
Creating block devices
Creating root device
Mounting root filesystem
mount: error 19 mounting ext3
pivotroot: pivot_root(/sysroot,/sysroot/initrd) failed: 2
umount /initrd/proc failed: 2
Freeing unused kernel memory: 244k freed
Kernel panic: No init found. Try passing init= option to kernel

---
Why isn't the new kernel loading?
 
Old 01-25-2004, 05:52 PM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Hah! You think you've got troubles

Yeah - never mind...
I think the clue to your problem is on that init line - have you made an initial ramdisk AND put a line referencing it in you bootloader config file?

(Append bootloader config file if you like.)
Simon
 
Old 01-25-2004, 06:41 PM   #5
jamie_barrow
Member
 
Registered: Jul 2003
Location: Gauteng, South Africa
Distribution: Windows XP, yup :D Will be back onto Ubuntu probably someday
Posts: 107

Rep: Reputation: 15
Simon, were you replying to me?
If so what do you mean by ramdisk, remember, this is my first time updating the kernel...
 
Old 01-25-2004, 09:42 PM   #6
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
OK - to find out for yourself, there are docs with the kernel distribution tarball (the readme file should tell you about them), and there are man pages for your boot loader. (type "man <bootloader name>" and "man <bootloader-name>.conf" and "man mkinitrd")

Here's the gist:

Most OS's cannot boot from the default bootsector because it is too small - normally the boot is a two stage process, first a ramdisk is loaded (initrd-<version number>) which can then be used to install the OS from the kernel image.

(A ramdisk in an imitation disk drive which lives in Random Access Memory.)

From what you say, you did not do "mkinitrd"?

Also - post the content of your bootloader config file, it should be

/etc/<bootloader name>.conf

i.e. if you use GRUB then it will be /etc/grub.conf
do gedit /etc/grub.conf and copy/paste the content to a reply screen here.

alternatively if you use lilo then it will be /etc/lilo.conf
and so on.

Simon
 
Old 01-27-2004, 03:13 AM   #7
velska
Member
 
Registered: Aug 2003
Location: Finland
Distribution: Fedora 14, Ubuntu 10.4 LTS
Posts: 65

Rep: Reputation: 15
Tip

Go look at the Kernel mini-HOWTO thread's last page... There's an ongoing discussion about your problem.

If you're running the latest version of tools, you don't have to "mkinitrd", "make install" does it for you. It also edits grub.conf, if you use grub.

Your problem is not about initrd, it's about starting the init daemon, which starts the system and its services. And you get the panic because of the error in mounting root filesystem.
 
Old 01-27-2004, 11:44 AM   #8
jamie_barrow
Member
 
Registered: Jul 2003
Location: Gauteng, South Africa
Distribution: Windows XP, yup :D Will be back onto Ubuntu probably someday
Posts: 107

Rep: Reputation: 15
thanks everyone. I'll have a look at the mini-HOWTO thread.
 
Old 01-27-2004, 11:32 PM   #9
RHLinuxGUY
Member
 
Registered: Oct 2003
Distribution: Ubuntu 7.04
Posts: 889

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Hey wait this didn't my problem!? How do u know if the kernel is install at all??????
 
  


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
fc3 install doesnt install grub properly onto sata drive sabo Linux - Newbie 4 02-03-2007 04:04 PM
linux will not succeed on the desktop until... Pete Dogg General 41 10-13-2006 10:23 PM
Anybody succeed in Linux on Digital HiNote Ultra 2000? cdrobsonjr Linux - Laptop and Netbook 2 05-04-2004 11:30 AM
who have succeed in compiling the xxgdb under rh9.0 ?please give some advice nuclearweapon Programming 4 08-17-2003 12:19 PM
Host lookups fail at first, but then succeed consistently. mikeyt_333 Linux - Networking 1 08-23-2002 01:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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