LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-05-2005, 10:47 PM   #1
inescapeableus
Member
 
Registered: Feb 2004
Location: Canada
Distribution: GNU/Linux Debian (Etch)
Posts: 319

Rep: Reputation: 30
MKINITRD The Reason I Get No Sleep


Ok I have been all over the internet looking for a solution I have browsed linux forums etc. and I have nothing that comes close to helping me in my quest. I have just sucessfully compile my new kernel I have grub setup correctly I am just stressing on the mkinitrd command. I have read the man pages and all of referencing pages. All I want ot know is how do I make my image. My kernel sources are located in /usr/src/linux and I am using Fedora in this case so my mkinitrd is located in /sbin/mkinitrd. So far my commands have consisted of the understanding of the following:

[root@localhost mike]#/sbin/mkinitrd --version --nocompress -v initrd-image 2.6.11

As far as I can tell this should make it yet I have nothing but a kernel that panics etc. Basically I just want to know how can I get this up and running. Thanks again for making me less stressed.
 
Old 03-05-2005, 10:52 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 126Reputation: 126
Well, does it seem to work properly? Do you point to the new file in your lilo.conf or grub configuration? What happens when running that command, and when booting?
 
Old 03-05-2005, 11:42 PM   #3
inescapeableus
Member
 
Registered: Feb 2004
Location: Canada
Distribution: GNU/Linux Debian (Etch)
Posts: 319

Original Poster
Rep: Reputation: 30
The only time I was able to see my created image was in my home directory and it wasn't a correct image. Do you have any advice on what I can do concerning my command?
 
Old 03-06-2005, 12:14 AM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 60
Quote:
/sbin/mkinitrd --version --nocompress -v initrd-image 2.6.11
I'm not sure what the --nocompress is all about but here's something to try.
Use the full name for your kernel as I don't know if 2.6.11 is the entire name.

Code:
/sbin/mkinitrd /boot/initrd-2.6.11.img 2.6.11
Then make sure the grub/menu.lst or lilo.conf has the proper line for the kernel and initrd.
 
Old 03-06-2005, 03:36 AM   #5
inescapeableus
Member
 
Registered: Feb 2004
Location: Canada
Distribution: GNU/Linux Debian (Etch)
Posts: 319

Original Poster
Rep: Reputation: 30
I entered that command and yet I cannot find where it is created
 
Old 03-06-2005, 05:57 AM   #6
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 835

Rep: Reputation: 43
Try looking in /lib/modules to see the exact version name. It might not be what you expect. There is a kernel howto at
http://www.digitalhermit.com/linux/K...ild-HOWTO.html
 
Old 03-06-2005, 07:20 AM   #7
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
If I remember Slackware's mkinitrd correctly you should probably try something like this:

mkinitrd -k 2.6.11 -m reiserfs:iso9660 -o /boot/initrd-2.6.11

Where:
-k = Kernel Version
-m = Colon delimited list of modules to load
-o = Output filename

This is from memory so you should doublecheck with
mkinitrd --help

<edit> Never mind, I was looking at your profile and saw Slackware-10.

Quote:
I entered that command and yet I cannot find where it is created
It should have been put in /boot if you followed homey's advice. Make sure to update /boot/grub/menu.lst file so initrd option points to the new image.

Last edited by /bin/bash; 03-06-2005 at 08:32 AM.
 
Old 03-06-2005, 02:39 PM   #8
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 126Reputation: 126
Initrd is always "fun".
 
Old 03-06-2005, 02:48 PM   #9
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 64
Not sure if this is what you are after but this is the way I do 2.6 kernels
Run ' make ' It does the kernel and make modules
Then run ' make modules_install ' This install the modules under /lib/modules
Then run ' make install ' This copies the kernel over to boot, makes the initrd file, creates system.map, and creates a new boot option in /boot/grub/grub.conf. When it creates new section in grub.conf it changes the default boot by an increment of one.

Reboot and run the new kernel.

If I like it, I come back to the kernel source folder and run ' make rpm ' to make and rpm of it for future use if needed. I also make a backup of initrd, system.map, and grub.conf just in case.

Brian1
" Google the Linux way @ http://www.google.com/linux "
 
Old 03-06-2005, 03:09 PM   #10
inescapeableus
Member
 
Registered: Feb 2004
Location: Canada
Distribution: GNU/Linux Debian (Etch)
Posts: 319

Original Poster
Rep: Reputation: 30
The method that I used to install my kernel was:

make mrproper
make menuconfig
make bzImage
make modules
make modules install
copy bzImage as vmlinuz
copy System.map as System.map

configure grub and I am done. If that helps at all. I am unable to give the other methods a try I will try as soon as I get home from work.
 
Old 03-06-2005, 04:15 PM   #11
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 64
That is old 2.4 way. In 2.6 you just do the following.

Extract the kernel source to /usr/src
make xconfig
make
make modules_install
make install
reboot and try new kernel.

There are other options check out ' make help '.

Brian1
" Google the Linux way @ http://www.google.com/linux "

Last edited by Brian1; 03-06-2005 at 04:16 PM.
 
  


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
mkinitrd ? anti.corp Slackware 1 11-27-2005 02:51 PM
Searching for Server (BOOTP/DHCP) <sleep> <sleep> .. .. Eileen Linux - Networking 12 10-21-2005 02:14 AM
mkinitrd vmniza Linux - General 1 03-10-2004 03:05 AM
No Mkinitrd?????? sovietpower Linux - General 5 02-08-2004 06:10 AM
mkinitrd welsh2000836 Debian 2 08-31-2003 12:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:52 AM.

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