LinuxQuestions.org
Visit Jeremy's Blog.
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 10-17-2003, 07:48 AM   #1
lacerto
Member
 
Registered: Oct 2003
Location: South London
Distribution: Gentoo.
Posts: 297

Rep: Reputation: 30
New Kernel/Initrd problems


Am using SuSE on my laptop, and need/want to put in a new Kernel. This is where all the fun started - I have done this hundreds of times with other distros without a hitch.

Kernel seems to compile fine (though I am unsure about a couple of things:
1. it reports back that the 'root device is (3,2)'.
2. Make install also bombs out with 'can't find /sbin/lilo' - I'm using grub. So I copy vmlinuz manually to /boot/vimlinuz-2.4.22.

However, I think it is the initrd that is causing the problem:

lappy:> mk_initrd -i initrd-2.4.22 -k vmlinuz-2.4.22

using "/dev/hda2" as root device (mounted on "/" as "ext3")

creating initrd "/boot/initrd-2.4.22" for kernel "/boot/vmlinuz-2.4.22"
(version 2.4.22)
- insmod jbd (kernel/fs/jbd/jbd.o)
- insmod ext3 (kernel/fs/ext3/ext3.o)
- splash picture (1024x768)

lappy:>

All very well you might think, but when I boot the new kernel, it panics...:
VFS: Unable to mount root fs on 03:00

Things I've tried:
1. using ext3 fs instead of default reiserfs fs.
2. supporting the fs with modules as opposed to integrated into kernel
3. using SuSE's own kernel source

Needless to say, this is getting on my nerves....
 
Old 10-17-2003, 06:55 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
initrd problems

When the kernel first loads it needs to have all of the modules available which are needed to access your / partition. If it can access / then it can load any other modules as needed from /lib/modules/2.4.22.

There are two ways to make sure that the necessary modules are available. The first is to make every essential module y in xconfig ( and throw out initrd).

The second way is to use initrd. SuSE has to provide every module that anyone might need in their kernel. If SuSE made them all y then the kernel would be way too big. So SuSE makes all of these modules m and then builds an initrd at install time which loads the necessary modules. Since your kernel compile is different than SuSE's, their initrd will probably not work with your new kernel. You have to build your own initrd control file with the modules to load (its name escapes me, see man initrd).

Since you know exactly what hardware you are using then initrd is an unnecessary complication. I suggest that you not build an initrd. Take initrd out of grub for your new kernel, but not the old. Then in xconfig set everything needed to access / to y. You may also have to make framebuffers, video modules, and keyboard modules y also.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 10-18-2003, 11:26 AM   #3
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
if boot partition is hda3, ( I use MDK) grub wants (hd0,2)

for mdk it would then be

root (hd0,2).............to act as chroot command for grub (setting relative path)
setup (hd0)..............to get into mbr
kernel /boot/vmlinuz.......assuming such a file exists or use -2.4.22
initrd /boot/initrd.img
 
Old 10-19-2003, 06:00 AM   #4
lacerto
Member
 
Registered: Oct 2003
Location: South London
Distribution: Gentoo.
Posts: 297

Original Poster
Rep: Reputation: 30
Ta...got it working and undertand things a bit better now.

Ragards
 
  


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
Kernel 2.6: I don't want/need initrd ... sundialsvcs Linux - Software 1 08-20-2005 09:25 AM
Problems with Initrd and Kernel 2.6.8 Lycus_adr0 Linux - Software 0 08-23-2004 11:58 AM
Problems with no initrd, kernel compile, ide-detect blockme Debian 4 05-27-2004 05:48 AM
compiling kernel 2.6.3 with initrd ykcorse Linux - Software 3 05-06-2004 02:05 PM
New Kernel 2.4.22 won't make initrd jon1591 Linux - Newbie 3 12-13-2003 02:09 PM

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

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