LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mkinitrd syntax (https://www.linuxquestions.org/questions/linux-newbie-8/mkinitrd-syntax-906177/)

trinityforce 10-03-2011 07:46 AM

mkinitrd syntax
 
I am trying to run mkinitrd. When I do I receive no modules found, even though the modules are in /lib/modules. The syntax that I use is mkinitrd -v -f /boot/initrd-2.6.18-274.e15.img 2.6.18-274.e15. Is there another way to state the modules name or am I missing something?

allend 10-03-2011 10:13 AM

This is an example mkinitrd command that loads modules to support the ext4 file system and usb devices.
Quote:

mkinitrd -c -k 2.6.37.5 -f ext4 -r /dev/sda11 -m usb-storage:modprobe:usbhid:ehci-hcd:uhci-hcd:jbd2:mbcache:ext4 -u -o /boot/initrd.gz
The -f parameter specifies the type of file system.
The -o parameter specifies the output file.
The -m parameter is the list of kernel modules to include for the kernel specified with -k.

So, yes there is another way to state the module names and yes, you are missing some things.

trinityforce 10-03-2011 01:19 PM

So if I had /lib/modules/2.6.18-274.3.1.e15 my mkinitrd command would be mkinitrd -k 2.6.18-274.3.1.e15 -f ext3 -o /boot/initrd-2.6.18-274.3.1.e15.img


All times are GMT -5. The time now is 08:04 PM.