Module version running

Allen, Jack Jack.Allen at mckesson.com
Tue Nov 3 21:33:34 UTC 2009


Thanks Santhosh and Joey Wang, that is exactly what I was looking for.
The man pages for modprobe, lsmod, and rmmod did not have modinfo in the
SEE ALSO section. I guess I should have done:

	cd /sbin
	ls *mod*

and I would have seen another mod command that I could have done man on.

Again, thanks.
	Jack Allen

-----Original Message-----
From: redhat-list-bounces at redhat.com
[mailto:redhat-list-bounces at redhat.com] On Behalf Of Santhosh A
Sent: Tuesday, November 03, 2009 3:32 AM
To: General Red Hat Linux discussion list
Subject: Re: Module version running

Yeah seems little fuzzy.

but this is what happens. .

/boot/initrd-2.6.18-92.el5.img loads some basic .ko's  (you see that in 
the grub.conf  file.. copy that file to .gz extention and cpio to 
extract and see some .ko's.....)

in case if you want to see what is currently loaded..

Try this:

lsmod | awk {'print $1'} | xargs modinfo | grep filename

I'm not sure if there is a way to load it on run time and make it work 
without rebooting it... some one please clarify..

HTH

Thanks,
Santhosh



 Joey "ryutlis" Wang wrote:
> I don't know if this is what you mean, you can use the command
"modinfo" to
> find out the information of .ko file
>
> On Tue, Nov 3, 2009 at 2:47 AM, Allen, Jack <Jack.Allen at mckesson.com>
wrote:
>
>   
>> What is the best way to determine what version of a *.ko is really
being
>> used?
>>
>> I know it is most of the time based on the kernel version located in
>> /lib/modules, but I need to determine if a different was loaded by a
>> script or manually. I also know that most of the time this may be
logged
>> in /var/log/messages, but the system was booted several month ago and
>> the messages.X file for that day has already been deleted.
>>
>> This is for Red Hat EL 5.3 and 5.4.
>>
>> Thanks:
>>        Jack Allen
>>
>> --
>> redhat-list mailing list
>> unsubscribe mailto:redhat-list-request at redhat.com?subjectunsubscribe
>> https://www.redhat.com/mailman/listinfo/redhat-list
>>
>>     
>
>
>
>   

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list




More information about the redhat-list mailing list