Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-10-2006, 12:59 PM   #1
LQ Newbie
Registered: Aug 2003
Posts: 18

Rep: Reputation: 0
RHEL AS3 autofs / autofs4 Module Problem

I am running RHEL AS3 with Kernel version 2.4.21-4.ELsmp

I am having a problem with a server that is loading the module autofs, but I need it to load autofs4 instead. I am not sure of how I go about doing this.

An "rpm -qa | grep autofs" shows that I have the following: autofs-4.1.3-154

If I type "modinfo autofs4" I get a message back saying that there is no module by that name.

I have downloaded the latest source rpm autofs-4.1.3-168.src.rpm and I am not sure what I need to do next.

I am pretty sure that I need to end up with a file autofs4.o in the directory /lib/modules/2.4.21-4.ELsmp/kernel/fs/autofs4 and that once it is there if it still loads autofs I need to put "alias autofs autofs4" in the /etc/modules.conf file.

Do I need to rebuild the kernel? I would prefer to avoid doing this if possible.

Can someone please help me with this ?

Many thanks in advance,

Old 05-12-2006, 08:52 AM   #2
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Autofs is not a module it is a service so the modinfo command is usless, sorry. To check try something like;

chkconfig --list autofs
service autofs status

Try building the binary (to install) from the source package;

rpmbuild --rebuild --recompile autofs-4.1.3-168.src.rpm

Then from the built binary package location install it;

cd /usr/src/redhat/RPMS/`uname -i`
rpm -Uvh autofs-4.1.3-168.<arch>.rpm

Notes: <arch> == uname -i, uname -i shows the hardware platform of the system
Notice: that is the backtick (by the 'Esc' key and not the single quotemark)

Then restart the service if needed; service autofs restart
Old 05-15-2006, 10:10 AM   #3
LQ Newbie
Registered: Aug 2003
Posts: 18

Original Poster
Rep: Reputation: 0
Hi Lenard,

Thanks for the reply.

I have compiled and installed the latest RPM, but I am still having the same issue, even after rebooting the server. If I do the command rpm -qa | grep autofs I get the following:


So it is showing as autofs4 being installed.

I know I can access the autofs by using the service command, but I thought it was a module because if I do the command lsmod | grep autofs I get the following:

autofs 13780 0 (autoclean) (unused)

On another box that is pretty much the same, that the autofs is working on, if I do the lsmod | grep autofs command I get the following:

autofs4 16152 1 (autoclean)

On that same machine that it works on, if I do the command modinfo autofs4 I get the following:

filename: /lib/modules/2.4.21-40.EL/kernel/fs/autofs4/autofs4.o
description: <none>
author: <none>
license: "GPL"

This is what was pointing me to the idea of compiling the module for autofs4, and then putting the following alias in the /etc/ file:

alias autofs autofs4

I am very new to modules, so not really sure about the above.

If it is a module. can I copy it from one of the machines that has autofs4 working fine, and do a rmmod autofs and then insmod autofs4 !?

I would copy the file from the working machine in: /lib/modules/2.4.21-40.EL/kernel/fs/autofs4/autofs4.o

into lib/modules/2.4.21-4.ELsmp/kernel/fs/autofs4/autofs4.o

Any more pointers would be really appreciated.



Last edited by BBPS; 05-15-2006 at 10:15 AM.
Old 05-18-2006, 06:23 AM   #4
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Far better to recompile the kernel, this time adding the support module for autofs4.o


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
how i can write module program in RHEL 4 sajjadc Linux - Kernel 1 04-30-2006 11:59 PM
How to configure AUTOFS in RHEL 4 sunnyanthony Linux - Networking 1 12-19-2005 05:24 PM
problem auto-installing aacraid module in RHEL EarlMosier Linux - Software 0 06-10-2005 03:03 PM
Oracle on RHEL AS3 Cluster dippelw Linux - Enterprise 2 06-05-2005 09:38 AM
O/S partitioning scheme for Oracle 10g on RHEL Linux AS3 lugnut Linux - Enterprise 0 01-03-2005 02:46 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:44 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration