Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
/usr/src/linux-3.2.1 # make install
scripts/kconfig/conf --silentoldconfig Kconfig
sh /usr/src/linux-3.2.1/arch/x86/boot/install.sh 3.2.1-12-desktop arch/x86/boot/bzImage \
                System.map "/boot"
You may need to create an initial ramdisk now.

--

/boot # mkinitrd initrd-3.2.1-12-desktop.img 3.2.1-12-desktop

Kernel image:   /boot/vmlinuz-2.6.34-12-desktop
Initrd image:   /boot/initrd-2.6.34-12-desktop
Kernel Modules: <not available>
Could not find map initrd-3.2.1-12-desktop.img/boot/System.map, please specify a correct file with -M.
There was an error generating the initrd (9)

See the error during mkinitrd command. What's the point that I am missing?
What does this mean? Kernel Modules: <not available>

OpenSuse 11.3 64 bit

EDIT1:

I did "make modules".
I copied the System.map file from the /usr/src/linux-3.2.1 directory to /boot, now running initrd command gives the following error:

linux-dopx:/boot # mkinitrd initrd-3.2.1.img 3.2.1-desktop

Kernel image:   /boot/vmlinuz-2.6.34-12-desktop
Initrd image:   /boot/initrd-2.6.34-12-desktop
Kernel Modules: <not available>
Could not find map initrd-3.2.1.img/boot/System.map, please specify a correct file with -M.

Kernel image:   /boot/vmlinuz-3.2.1-12-desktop
Initrd image:   /boot/initrd-3.2.1-12-desktop
Kernel Modules: <not available>
Could not find map initrd-3.2.1.img/boot/System.map, please specify a correct file with -M.

Kernel image:   /boot/vmlinuz-3.2.1-12-desktop.old
Initrd image:   /boot/initrd-3.2.1-12-desktop.old
Kernel Modules: <not available>
Could not find map initrd-3.2.1.img/boot/System.map, please specify a correct file with -M.
There was an error generating the initrd (9)
share|improve this question
    
Which distro? And the comment does say MAY, using Gentoo I don't bother with making an initrd, they're not necessary. –  bdowning Jan 19 '12 at 14:25
    
@bdowning sorry, have edited it. :) –  TheIndependentAquarius Jan 19 '12 at 14:27

2 Answers 2

up vote 7 down vote accepted

You should be using mkinitramfs, not mkinitrd. The actual initrd format is obsolete and initramfs is used instead these days, even though it is still called an initrd. Better yet, just use update-initramfs. Also you need to run make modules_install to install the modules.

share|improve this answer
    
thanks, I'll try that and let you know. :) –  TheIndependentAquarius Jan 19 '12 at 14:27
    
+1 from me @bdowning –  bdowning Jan 19 '12 at 15:38
    
+1 from me too @psusi :-) –  Nikhil Mulley Jan 19 '12 at 16:32
    
btw, I will carve out a seperate question for difference between initrd and initramfs, it will make a good Q&A :-) –  Nikhil Mulley Jan 19 '12 at 16:33
    
mkinitramfs gives command not found on Suse. –  TheIndependentAquarius Jan 20 '12 at 5:04

With OpenSUSE, you can use

yast2 sysconfig

fill in 'INITRD_MODULES' with module you need and apply.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.