LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-15-2008, 10:30 AM   #1
tprizler
LQ Newbie
 
Registered: Jul 2008
Posts: 7

Rep: Reputation: 0
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!!!!
 
Old 07-15-2008, 10:49 PM   #2
eggixyz
Member
 
Registered: Apr 2008
Posts: 310

Rep: Reputation: 30
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
 
Old 07-16-2008, 09:39 AM   #3
tprizler
LQ Newbie
 
Registered: Jul 2008
Posts: 7

Original Poster
Rep: Reputation: 0
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..
 
Old 07-16-2008, 11:56 AM   #4
eggixyz
Member
 
Registered: Apr 2008
Posts: 310

Rep: Reputation: 30
Cool,

Glad to hear that it's all working well now

, Mike
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to Automount ISO image unless automount is running in foreground! swests Linux - General 4 05-22-2009 12:47 AM
CentOS 5.2 Automount isos in fstab \other methods that work?automount iso Frankly3D Linux - General 6 07-13-2008 12:34 PM
Problem with automount susannacana Linux - Server 2 11-01-2007 08:57 AM
Automount problem berkay Linux - Newbie 2 08-15-2004 07:32 AM
Automount problem movitto Linux - Software 0 07-05-2004 02:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:07 AM.

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