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?)

guy keren choo at actcom.co.il
Mon May 9 16:33:12 IDT 2011


On Mon, 2011-05-09 at 15:49 +0300, Omer Zak wrote:
> 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

make sure that the 'init' file in the initrd indeed loads this module
(it's a shell script) before mounting the root file-system from the hard
disk.

--guy




More information about the Linux-il mailing list