How do I make initrd.img in Ubuntu?

[Environment: Ubuntu 10.04]

I just finished compiling Linux-2.6.20 and want to get it to work, so I think I should add something to my grub2 when I'm done

do modules_install make install

in / boot / i got

vmlinuz-2.6.20 System.map-2.6.20 config-2.6.20

So i just tried

mkinitramfs -o initrd.img-2.6.20 2.6.20

Then the initrd.img-2.6.20 file was generated, but after typing

Update-grub2

This image file was not found! Does anyone know how to deal with this?

BTW, I'm really curious about what files initrd.img-2.6.20 is generated from? Because it seemed like I didn't even mention the source to create this file.

+3


source to share


1 answer


I am using version 2.6.32.59 and the following steps work for me -



#sudo update-initramfs -c -k 2.6.32.59
#sudo update-grub

      

+7


source







All Articles