LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 09-28-2009, 12:12 AM   #1
ashraf.qadir
LQ Newbie
 
Registered: Sep 2009
Posts: 4

Rep: Reputation: 0
error with initrd.img


Hi

I have distro kubuntu 9.04 on my machine with kernel-2.6.28-11. I compiled another custom kernel-2.6.31.1 on my usb. I copied vmlinuz and system.map in my boot and When i tried to make RAMdisk image using "mkinitrd -o /boot/initrd-2.6.31.1.img 2.6.31.1" in my boot i got the warning

"add_modules_dep_2_5: modprobe failed
FATAL: Module sg not found.

WARNING: This failure MAY indicate that your kernel will not boot!
but it can also be triggered by needed modules being compiled into
the kernel."


what does this mean? Is any thing wrong with my compilation?

I also want to know how do i add this kernel in my grub menu list?

Thanks

Ashraf
 
Old 09-28-2009, 07:31 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Hi Ashraf,

Do you remember whether you set 'sg' to be a module or compiled into the kernel ? ... if you compiled it in, then the warning should be safe to ignore. As far as adding the new kernel to your boot menu, simply edit /boot/grub/menu.lst, copy an existing entry and modify the version numbers

An entry is usually made up of 4 lines as below:

Code:
title Fedora (2.6.30.5-43.fc11.i586)
	root (hd0,0)
	kernel /vmlinuz-2.6.30.5-43.fc11.i586 ro root=/dev/mapper/vg_xxxxxx-lv_root rhgb quiet
	initrd /initrd-2.6.30.5-43.fc11.i586.img
Note that grub counts each entry(4 lines) when numbering the options, so

Code:
default=0
indicates that grub will boot the first set of 4 lines starting with 'title xxx' by default, the next set will be 1 .. and so on

cheers,

kbp
 
Old 09-28-2009, 03:17 PM   #3
krkz
LQ Newbie
 
Registered: Sep 2009
Distribution: Archlinux
Posts: 8

Rep: Reputation: 1
Hi.

First of all, 'sg' refers to the SCSI generic support in your kernel.
More exactly, 'sg' refers to the option CONFIG_CHR_DEV_SG.

Try this cat your/new/config/file | grep -ie sg. And search for the option given previously. Check if it is set to Y or M or not set. It has to be Y or M, afair.

However, if you are completely sure that you wont need SCSI at all, you can ignore that warning.

Last edited by krkz; 09-28-2009 at 03:26 PM. Reason: Obvious fix.
 
Old 09-30-2009, 05:04 PM   #4
ashraf.qadir
LQ Newbie
 
Registered: Sep 2009
Posts: 4

Original Poster
Rep: Reputation: 0
thanks for your replies. I am really grateful.

But i forgot to tell that i got another error

"FATAL: Module sd_mod not found" along with the FATAL: Module sg not found.

I guess this is something serious.

Waiting for your feedback.

Thanks

Ashraf
 
  


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 do I pack stage2.img into initrd.img for a PXE linux rescue? real1elmo Red Hat 12 10-14-2009 06:29 PM
Add new cciss driver module to initrd.img ,stage2.img kunalroy2002 Linux - Software 4 09-25-2007 12:09 AM
Failed to symbolic-link boot/initrd.img-2.6.18-4-486 to initrd.img Scotteh Linux - Software 8 06-01-2007 11:24 PM
Kernel 2.6.7 install error, initrd-2.6.7.img error jjorloff1 Linux - General 3 09-15-2004 12:15 AM
Initrd.img Error...Isolinux: Disk Error 80 bohh Slackware - Installation 1 07-29-2004 11:20 AM

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

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