How to check initrd's contents? (was: Re: Disk I/O as a bottleneck?)

How to check initrd's contents? (was: Re: Disk I/O as a bottleneck?)

Omer Zak w1 at zak.co.il
Mon May 9 15:49:14 IDT 2011


On Mon, 2011-05-09 at 15:30 +0300, Yedidyah Bar-David wrote:
> On Mon, May 09, 2011 at 03:18:08PM +0300, Omer Zak wrote:
> > My kernel is configured to have AHCI as a module:
> > CONFIG_SATA_AHCI=m
> > 
> > However I understand that it means that this module is needed also in
> > the initrd image.  How can I check which modules made it to the initrd
> > image last time it was rebuilt?
> 
> something like
> 
> mkdir /some/temp/dir
> cd /some/temp/dir
> gzip -dc < /boot/my-initrd | cpio -idm
> 
> That is, assuming it's a ramfs-based initrd and not an old-style
> filesystem image.

Thanks, my initrd images do include the
module /lib/modules/<kernel-version>/kernel/drivers/ata/ahci.ko

So all I need to do is to modify the appropriate BIOS setup setting -
will wait until next reboot opportunity!

--- Omer


-- 
Eli Marmor's Law:  netiquette forbids people from replying "I agree with
you" to messages in mailing lists, skewing discussions in favor of the
troublemaker type of dissenters.
My own blog is at http://www.zak.co.il/tddpirate/

My opinions, as expressed in this E-mail message, are mine alone.
They do not represent the official policy of any organization with which
I may be affiliated in any way.
WARNING TO SPAMMERS:  at http://www.zak.co.il/spamwarning.html




More information about the Linux-il mailing list