[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Whrere does a initrd.img file use?



On Fri, Apr 01, 2005 at 07:21:29PM +0900, Seven Nine wrote:
> There are three important files vmlinuz,initrd.img,System.map about
> kernel compile.
> 
> I don't know about initrd.img file well?
> 
> What is it?
> 
> Where does a initrd.img file use?
> 
> Are there file system infomations(module) in the initrd.img?
> 
> Please, tell me about that. :)

The initrd image is a small file system that is mounted
by the kernel before it mounts the root file system.
In debian this is used to provide the modules that the
kernel requires to mount the root file system,
as the debian kernel is highly modular and it is quite
likey that ide/scsi and fs drivers needed for root
are not in the kernel itself.

The debian initrd images are produced by mkinird which
is provided by initrd-tools.

If you want to examine the contents of an initrd image,
you can mount it as a cramfs partition using the loopback device.

e.g. 
mkdir -p /mnt/initrd
sudo mount -t cramfs -o loop,ro /boot/initrd.img-2.4.27-2-686 /mnt/initrd


-- 
Horms



Reply to: