LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Problem getting automount started (https://www.linuxquestions.org/questions/linux-general-1/problem-getting-automount-started-655905/)

tprizler 07-15-2008 10:30 AM

Problem getting automount started
 
Hi all,

I have a problem with the automount service, whenever i am trying to start it, it fails.

[ root@removed etc]# service autofs start
Starting automount:
failed to load map: "/usr/sbin/automount --timeout` /misc file /etc/auto.misc"
failed to load map: "/usr/sbin/automount --timeout600 /au[FAILED]/etc/auto.indirect rsize2768,wsize2768,tcp"

I don't understand what could be the problem.
The files envolve the automount proccess look fine.

[ root@removed etc]# service autofs start
Starting automount:
failed to load map: "/usr/sbin/automount --timeout` /misc file /etc/auto.misc"
failed to load map: "/usr/sbin/automount --timeout600 /au[FAILED]/etc/auto.indirect rsize2768,wsize2768,tcp"
[ root@removed etc]# cat /etc/auto.master
# $Id: auto.master.nis,v 1.9 2006/06/22 16:47:21 brilong Exp $
# Format of this file:
# mountpoint map options
# For details of the format look at autofs(8).
#
# NOTE: touch /etc/auto.master.nooverwrite if you do not want
# RPM upgrades of ecs-autofs-files overwriting auto.master
/misc /etc/auto.misc --timeout`
/auto /etc/auto.indirect rsize2768,wsize2768,tcp
#/users yp:auto_home rw,hard,intr,rsize2768,wsize2768,tcp

-----------

[ root@removed etc]# cat /etc/auto.master
# $Id: auto.master.nis,v 1.9 2006/06/22 16:47:21 brilong Exp $
# Format of this file:
# mountpoint map options
# For details of the format look at autofs(8).
#
# NOTE: touch /etc/auto.master.nooverwrite if you do not want
# RPM upgrades of ecs-autofs-files overwriting auto.master
/misc /etc/auto.misc --timeout`
/auto /etc/auto.indirect rsize2768,wsize2768,tcp
#/users yp:auto_home rw,hard,intr,rsize2768,wsize2768,tcp
[ email@removed etc]# cat /etc/auto.misc
# $Id: auto.misc,v 1.3 2005/03/15 18:02:13 brilong Exp $
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage

#kernel -ro,soft,intr ftp.kernel.org:/pub/linux
cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom
cdrom -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom

# the following entries are samples to pique your imagination
#floppy -fstype=ext2 :/dev/fd0
#e2floppy -fstype=ext2 :/dev/fd0
#jaz -fstype=ext2 :/dev/sdc1

-----------

[ root@removed etc]# cat /etc/sysconfig/autofs
# Define custom options in /etc/sysconfig/autofs
# Use LOCALOPTIONS for defining variables, e.g. OSREL
# Use LDAPAUTOMASTER to define an alternative ldap master map
# Define UNDERSCORETODOT as 1 to convert
# auto_home to auto.home and auto_mnt to auto.mnt
# Mount options, e.g. rsize=8192, should go in auto.master or
# the auto_* map entry for a specific mount point
#
LOCALOPTIONS=""
LDAPAUTOMASTER=""
# UNDERSCORETODOT changes auto_home to auto.home and auto_mnt to auto.mnt
UNDERSCORETODOT=1
DISABLE_DIRECT=1
# Only source one master map if set to 1. This would mimic Sun behaviour.
# The default is 0 to maintain backwards compatibility.
ONE_AUTO_MASTER=0
# List of directories to be ghosted, separated by white space.
GHOSTDIRS=""
DAEMONOPTIONS="--timeout600"

Someone has an idea??

Thanks!!!!

eggixyz 07-15-2008 10:49 PM

Hey There,

The first thing that comes to mind, looking at auto.master is perhaps trying indirect maps instead of direct maps, changing

Quote:

/misc /etc/auto.misc --timeout`
/auto /etc/auto.indirect rsize2768,wsize2768,tcp
to

Quote:

misc /etc/auto.misc --timeout`
auto /etc/auto.indirect rsize2768,wsize2768,tcp
Direct mapping, I believe, should look like this:

Quote:

/misc YourMountOptions /etc/auto.misc
/auto YourMountOptions /etc/auto.indirect
Give that a shot. If it doesn't work out, can you post the contents of the .misc .indirect files?

Another simple way to get around this would be to just have

Quote:

/
as an entry in auto.master and move your two mount definitions into auto.misc and auto.indirect (removing the / )

Best wishes,

Mike

tprizler 07-16-2008 09:39 AM

Hi,

Thanks for the replay!

1. I tried to edit the .nmaster file as you wrote - didn't worked..

BTW, tried to write the auto.master this way :

/misc YourMountOptions /etc/auto.misc
/auto YourMountOptions /etc/auto.indirect

and it didn't worked.

2. I found the problem the auto.indirect file was bad writen.
It was an old file that the machine got from a nis server..


Any way thsnks..:)

eggixyz 07-16-2008 11:56 AM

Cool,

Glad to hear that it's all working well now :)

, Mike


All times are GMT -5. The time now is 12:10 AM.