LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-03-2011, 08:46 AM   #1
trinityforce
LQ Newbie
 
Registered: Oct 2011
Posts: 18

Rep: Reputation: Disabled
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?
 
Old 10-03-2011, 11:13 AM   #2
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 4,430

Rep: Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350
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.
 
Old 10-03-2011, 02:19 PM   #3
trinityforce
LQ Newbie
 
Registered: Oct 2011
Posts: 18

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply


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
[SOLVED] mkinitrd Abid Malik Linux - Newbie 9 09-17-2010 11:45 PM
sudo mkinitrd -o /boot/initrd.img-2.6.32.9 2.6.32.9 sudo: mkinitrd: command not foun vishwas181 Linux - Newbie 1 02-27-2010 02:16 AM
[python] syntax Error : invalid syntax Python_user Programming 2 09-06-2009 01:52 PM
mkinitrd? a_priebe47 Slackware 6 05-29-2006 12:21 AM
mkinitrd welsh2000836 Debian 2 08-31-2003 12:03 PM


All times are GMT -5. The time now is 09:11 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration