Questions tagged [autofs]

AutoFS is a software application that allows file systems to be automatically mounted and unmounted on demand.

AutoFS is classified as an automounter. An automounter is a program or software service that dynamically mounts & unmounts file systems such as CIFS, NFS, AFS, etc. when notified of file and/or directory access attempts under subdirectory trees which it's monitoring.

Links

127 questions
18
votes
1 answer

systemd: How do I automount a USB filesystem using /etc/fstab?

I want my USB filesystems to automount when I connect the device. How do I setup automount with systemd via /etc/fstab?
Tom Hale
  • 28,728
  • 32
  • 139
  • 229
18
votes
4 answers

automount nfs: autofs timeout settings for unreliable servers - how to avoid hangup?

I'm running a small server for our flat share. It's mostly a file server with some additional services. The clients are Linux machines (mostly Ubuntu, but some others Distros too) and some Mac(-Book)s in between (but they're not important for the…
Brutus
  • 365
  • 1
  • 2
  • 8
17
votes
4 answers

How can I see automount points in Linux?

We use autofs at work and I'm having trouble remembering some mount points. With autofs, you can only see currently or recently mounted volumes on a particular machine. How can I see the rest?
dromodel
  • 565
  • 2
  • 6
  • 9
13
votes
3 answers

Linux: difference between using autofs with NFS and just using fstab

What is the difference between using auto.master and having autofs automount your NFS mountpoints versus just putting the info in fstab? Linux Red-Hat 5/6
Gregg Leventhal
  • 7,480
  • 19
  • 65
  • 100
12
votes
4 answers

autofs mounts not disconnecting after inactive

I have autofs installed on several linux servers that are connecting to central NFS server for the users /home directories. It works great when mounting the directories on login, but the mounts never seem to timeout. I've checked…
SteveHNH
  • 131
  • 1
  • 1
  • 6
12
votes
2 answers

Autofs doesn't mount shares on startup

I am using OpenSuSE 12.1 with homes shared through LDAP and NFS. ldap stores the maps. My problem is I can't have the shares mounted on boot. It's only working when restarting the autofs service manually. On a CentOS 6.3 there is no such…
igor012
  • 533
  • 2
  • 5
  • 12
12
votes
1 answer

How to deal with freezes caused by autofs after network disconnect

I mount four servers (3 via cifs, 1 via sshfs) using autofs. auto.master /- /etc/auto.all --timeout=60 --ghost auto.all /mnt \ /server1 -fstype=cifs,rw,credentials=/etc/.smbcredentials.txt,uid=1000,file_mode=0775,dir_mode=0775,users…
pat-s
  • 328
  • 1
  • 3
  • 12
10
votes
5 answers

Automounting USB sticks on Debian

I'm running Debian Squeeze on a plug computer (so SSH only, no GUI) and what I'm trying to do is get it so that when a USB stick is plugged in, it gets automatically mounted. What I've done is install autofs which from what I gather handles the…
jon
  • 219
  • 1
  • 2
  • 5
9
votes
2 answers

Suggestions needed for udev, udisks, autofs, notification setup for a complete automounting solution on Linux

Continuing on Automounting plugged devices in linux, which left things a bit basic. Running Gentoo, I'm automounting a combination of local and network devices on my laptop with autofs-5.0.4-r5. Doing autofs alone gives me a couple of gripes: I…
lkraav
  • 1,161
  • 2
  • 11
  • 20
8
votes
2 answers

autofs with sshfs not working anymore

I just upgraded from Ubuntu 12.04 to 12.10. Before that I backed up my autofs config which worked fine. I appended the line from my old /etc/auto.master to the new one: +dir:/etc/auto.master.d +auto.master /mnt /etc/auto.sshfs…
André Stannek
  • 1,258
  • 2
  • 10
  • 17
7
votes
1 answer

Need example use of autofs.master.d/

I'm trying to setup autofs 5 on Debian 9 (Stretch). I want to mount nfsserver:/top/dir/tools to my /top/dir/tools Read only is fine in this case and I'm not worried about uid mapping. auto.master has a line: +dir: /etc/auto.master.d I'm guessing…
Dan Christian
  • 376
  • 2
  • 8
7
votes
2 answers

Autofs with remote and local home directories at same folder

I have a NFS server exporting home directories for remote users and the workstations have local and remote users. I want to configure autofs to mount a remote user home directory as a subdirectory of /home directory. I configured the autofs to…
oederaugusto
  • 71
  • 1
  • 1
  • 2
7
votes
2 answers

NFS mount with fstab vs autofs

What method is best to use for mounting a NFS share from another machine? Mount using /etc/fstab entry or Mount using autofs? what is the difference between them?
Tiger
  • 648
  • 7
  • 12
  • 25
6
votes
1 answer

autofs error - “No such file or directory”

I am trying to link a remote RHEL machine to our network. I can now ssh between the machines using fixed NAT addresses. I have copied the /etc/auto.misc, /etc/auto.master and /etc/exports files from the local machine (called "cougar") to the remote…
moadeep
  • 174
  • 3
  • 5
  • 16
6
votes
4 answers

nis and autofs manual restart after a reboot

I have a minor inconvenience involving NIS and autofs. I pull my home directory from an NFS server. It all works fine, except that I have to manually restart nis and autofs after each reboot. So after the system starts up, I need to switch to a…
Wojtek
  • 2,290
  • 2
  • 17
  • 24
1
2 3
8 9