LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 02-07-2005, 12:57 PM   #1
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Rep: Reputation: 45
Unhappy recompile kernel


Hi... I need to recompile the 2.6.10 vanilla kernel for my suse... The problem is that my harddisk is a sata so i need to create the appropriate initrd.
The problem is that i don't know what are the necessary modules to install for my system and how i should create the initrd image as easy as possible.
I have already tried the mkinitrd /boot/initrd-2.6.10 but still at boot time the os can't find the /dev/sda6 device..
What do u suggest me doing?
Thanx
 
Old 02-07-2005, 11:40 PM   #2
aeruder
LQ Newbie
 
Registered: Feb 2005
Location: Manhattan, KS
Distribution: Ubuntu
Posts: 14

Rep: Reputation: 0
My advise, compile your own linux kernel, but when you get to the sata section (under scsi devices i believe) compile all the parts you need IN TO THE KERNEL. If you compile the parts that you absolutely need to boot into the kernel, you will not need a initrd. (Basically, just make sure you have the main harddrive device support compiled in).

So do that, get rid of the initrd stuff in the grub config and you should be set. The only reason that suse and such do initrd is that they need to do a limited amount of probing for the correct hard drive controller before the system mounts the root filesystem. In your case, you should just -know- what you need .

lspci -v is helpful if you need information on controllers in your system.

Good luck, tell me how it goes.
 
Old 02-08-2005, 03:29 AM   #3
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
First you need to find out which driver is required for your S-ATA controller. This module, you may add to /etc/sysconfig/kernel

e.g. INITRD_MODULES="ata_piix reiserfs" (Intel ICH5 S-ATA controller)

Alternatively, invoke mkinitrd with the option -m <module>.

This module will be integrated into initrd together with a couple of modules it depends on. This is automatically regulated by modules.dep (created during kernel compilation).

Don't forget to specify the kernel when you run mkinitrd. Otherwise it will be created for your old kernel.
Code:
mkinitrd -k vmlinuz-2.6.10 -i initrd-2.6.10 -m <modules>

Last edited by abisko00; 02-08-2005 at 03:30 AM.
 
  


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
how to recompile kernel 2.4.21-15.EL zameer_india Linux - Newbie 2 12-24-2004 01:02 AM
kernel recompile error (kernel panic) tombaaaaa Linux - Newbie 4 08-04-2004 04:32 PM
Should I recompile my kernel? Guitarist88 Linux - Newbie 3 05-31-2004 04:28 PM
recompile the kernel!!! :O HELP! gangster_god Mandriva 3 04-06-2004 03:42 PM
what is recompile kernel? len Linux - Newbie 1 06-22-2003 10:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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