LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-08-2013, 09:17 PM   #1
arnold.king
LQ Newbie
 
Registered: Sep 2012
Location: China
Distribution: fedora
Posts: 8

Rep: Reputation: Disabled
Red face how to make initramfs.img handly


hi, all:
as the subject, is there any way to make initramfs.img by hand, with out make install kernel?thanks!(English is poor, hope you understand)
 
Old 04-08-2013, 10:56 PM   #2
eklavya
Member
 
Registered: Mar 2013
Posts: 636

Rep: Reputation: 142Reputation: 142
Quote:
Originally Posted by arnold.king View Post
is there any way to make initramfs.img by hand
Do you mean initrd.img (initial-ram-disk)?

It is kernel file, when you install kernel, it creates for you.

This is the wikipedia opinion about initrd.img and it clears all thing about it.
Code:
In computing, initrd (initial ramdisk) is a scheme for loading a temporary root file system into memory in the boot process of the Linux kernel.
You want to make it manually, correct? what do you mean by that?
If you are thinking , open a text editor, paste the content and save again process makes this file, You are mistaken.

If you want to learn about this, click here.

Last edited by eklavya; 04-08-2013 at 11:05 PM.
 
1 members found this post helpful.
Old 04-08-2013, 11:38 PM   #3
arnold.king
LQ Newbie
 
Registered: Sep 2012
Location: China
Distribution: fedora
Posts: 8

Original Poster
Rep: Reputation: Disabled
dear eklavya:
thanks for your answer, it is so meaningful for me. i want to make initial-ram-disk manually, i know it will be build when install kernel. and i know the function of it. but i don't know how to make it manually. actually, i want to built a linux system all from source code, just like LFS. Any advice is appreciate. thanks again!
 
Old 04-09-2013, 01:26 AM   #4
eklavya
Member
 
Registered: Mar 2013
Posts: 636

Rep: Reputation: 142Reputation: 142
An initrd image is needed for loading your SCSI module at boot time. If you do not need an initrd image, do not make one and do not edit lilo.conf or grub.conf to include this image.

The /sbin/mkinitrd shell script can build a proper initrd image for your machine if the following conditions are met:

1) The loopback block device is available.

2) The /etc/modules.conf file has a line for your SCSI adapter; for example:
Code:
    alias scsi_hostadapter BusLogic
To build the new initrd image, run /sbin/mkinitrd with parameters such as this:
Code:
/sbin/mkinitrd /boot/initrd-2.4.7-3.img 2.4.7-3
In the above example, /boot/initrd-2.4.7-3.img is the filename of the new initrd image. 2.4.7-3 is the kernel whose modules (from /lib/modules) should be used in the initrd image. This is not necessarily the same as the version number of the currently running kernel.

If you don't find above info suitable for you, try this

Last edited by eklavya; 04-09-2013 at 01:30 AM.
 
Old 04-10-2013, 08:55 AM   #5
arnold.king
LQ Newbie
 
Registered: Sep 2012
Location: China
Distribution: fedora
Posts: 8

Original Poster
Rep: Reputation: Disabled
dear eklavya:
thanks your help, i think i got the way. best wishes
 
  


Reply

Tags
initramfs, kernel, kernel compile



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Where can I find initramfs-2.6.41.4-1.fc15.i686.img or how can I generate one temp2012temp Linux - Newbie 2 01-06-2012 06:56 AM
problem wiht creating initrd (initramfs.img) file using dracut Crackel Linux - Kernel 0 10-26-2010 06:19 PM
How do I use DD to make a usb.img? linus72 Linux - General 11 01-16-2010 10:11 AM
make initramfs parmeshwer Linux - Newbie 2 12-05-2008 04:12 AM
make a .img file for custom liveCD, dd?? (Also, how to make your system very small) 1veedo Linux - Newbie 6 05-07-2006 05:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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