Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-02-2005, 06:21 AM   #1
LQ Newbie
Registered: Jul 2004
Location: Israel
Distribution: Fedora 2
Posts: 21

Rep: Reputation: 0
Can't mkinitrd for Kernel (when compiling)

This is the first time I compile a kernel. I did everything tutorials say (configured, make dep, clean, modules, modules_install, bzImage...).
I am using grub as a boot loader, so I needed to create an .img file like this:
mkinitrd /boot/initrd-
(and there realy is a "" directory in /lib/modules).
But I get the error: "No dep file found for kernel"
and no .img file is created.

Why do I get this error, and how do I solve it?
Is it possible that it happence because I didn't configure things properly, and included some essential things as models? Is there any other way to create the neede .img file?

thanks for your help
:) :study: :)
Old 04-02-2005, 09:43 AM   #2
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
You need to run:

depmod -a

before you run mkinitrd.
Old 04-02-2005, 11:13 AM   #3
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Also, if you compile all the stuff your kernel needs to boot directly in (i.e. not as a module) you don't need to bother with an initrd. This is always what I do because it makes the process simpler.
Old 04-02-2005, 11:20 AM   #4
LQ Newbie
Registered: Jul 2004
Location: Israel
Distribution: Fedora 2
Posts: 21

Original Poster
Rep: Reputation: 0
Thanks for you help guys

it helped a lot


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
Trouble compiling kernel, mkinitrd step shrndegruv Linux - Software 3 01-23-2005 12:57 AM
what mkinitrd flag to use when compiling kernel for suse 9.1 feetyouwell Linux - Software 0 11-15-2004 10:41 AM
kernel 2.6.6 mkinitrd problem ziox Linux - Software 0 07-13-2004 07:48 PM
mkinitrd problems (compiling new kernel) qsir1 Linux - Software 5 03-01-2004 09:40 AM
mkinitrd problems when compiling DropHit Red Hat 15 12-24-2003 06:41 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:28 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration