Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [autofs]

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

18
votes
4answers
54k views

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 ...
13
votes
4answers
14k views

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?
12
votes
1answer
3k views

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?
10
votes
5answers
27k views

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 ...
10
votes
2answers
17k views

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 ...
10
votes
2answers
3k views

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 ...
9
votes
3answers
14k views

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
8
votes
2answers
2k views

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 ...
8
votes
2answers
4k views

autofs with sshfs not working anymore [closed]

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....
5
votes
2answers
7k views

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?
5
votes
3answers
5k views

What process is accessing a mounted filesystem sporadically?

I have a Solaris 10 server with autofs-mounted home dirs. On one server they are not unmounted after the 10 min timeout period. We've got AUTOMOUNT_TIMEOUT=600 in /etc/default/autofs, I ran automount -...
5
votes
4answers
8k views

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 ...
5
votes
2answers
2k views

Wildcard automounts with systemd

I’m running jessie/sid with systemd 208 and try to convert the following wildcard autofs configuration to either an /etc/fstab or .mount/.automount definition. $ cat /etc/auto.master /home/* -fstype=...
5
votes
1answer
2k views

Automount not equivelent to mount?

I'm struggling to get automount to work as desired. If I run the following: sudo mount -t nfs server:/path/to/share /path/to/mount_point I get the mount appearing fine. However, if I add the ...
5
votes
1answer
1k views

Debian stretch asks for root password in order to mount usb disks after upgrade

After apt-get upgrade && apt-get dist-upgrade, Debian Stretch started to ask for root password for external usb disks. Creating a /etc/polkit-1/localauthority/50-local.d/55-usb-mount.pkla ...
5
votes
0answers
2k views

Automounting not working correctly for CIFS shares; weird results [closed]

I followed the guide on this page to get samba shares working via autofs: http://www.howtoforge.com/accessing_windows_or_samba_shares_using_autofs Servers and Configuration My Samba server (remote) ...
4
votes
1answer
6k views

Debian Jessie start rpcbind and nfs-common at boot with systemd

On my Raspbian (based on Debian Jessie), I need to start at boot rpcbind and nfs-common services because I need them to start autofs at boot for a NFS mount. Since Debian Jessie now has moved to ...
4
votes
3answers
21k views

Using autofs to mount under each users' home directory

(crosspost from SF, where I wasn't getting much joy) I have a CentOS 6.2 box up and running and have configured autofs to automount Windows shares under a /mydomain folder, using various howtos on ...
4
votes
2answers
5k views

How Do I use autofs to map a USB drive by its ID?

Goal I have a USB drive -- let's say the drive's ID is /dev/disk/by-id/thediskid I would like to mount the drive -- by ID -- to a folder (let's call it /MOUNT_FOLDER) Question What is the best way ...
4
votes
1answer
13k views

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 ...
4
votes
1answer
610 views

Disable /net ghosting for autofs5

I recently have been trying out Arch Linux. It seems that their autofs has a usability bug, although I confess that I'm new enough to Arch that I may be missing something horribly obvious. I want ...
4
votes
1answer
1k views

Cannot stop autofs on FC19

I'd like to temporarily disable autofs on my fedora 19 x86 install. I would like to insert USB drives without them auto-mounting. Typing: service autofs stop Returns: Redirecting to /bin/systemctl ...
4
votes
0answers
514 views

Mount Google storage bucket with autofs

I'm trying to mount GCS buckets on demand with autofs. Closest they have instructions for is SSHFS like this: mntpoint -fstype=fuse,allow_other :sshfs\#user@example.com\: Following that example I do:...
4
votes
1answer
524 views

Passing automount options in FreeBSD

I seem to be unable to automount nfsv4 shares in FreeBSD 10.1. All of my mounting information is stored in an LDAP database and the shares are on a NFSv4 server. I've gotten the mapping right so ...
3
votes
0answers
1k views

Is autofs the only open-source choice for mounting nfs and/or cifs

I've been using autofs for a number of years and was wondering if there is an alternative to autofs that would handle cifs/smb shares in a more interactive way? When I say more interactive I'm mostly ...
3
votes
1answer
3k views

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....
2
votes
2answers
10k views

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 /...
2
votes
1answer
3k views

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 ...
2
votes
1answer
1k views

Can AutoFS keep a share permanently mounted on Solaris?

I have a share mounted on an Oracle Solaris application server that read/writes data onto the share periodically. I have automounted it with a timeout of over several minutes but is there a way to ...
2
votes
2answers
5k views

AutoFS fails to mount Samba CIFS share

I have a CentOS 7 server named server1.example.com using Samba to share /srv/samba/share. //server1.example.com/share is the path to the share. I am not able to get CentOS clients to mount //server1....
2
votes
1answer
668 views

autofs ~/.hidden: No such file or directory

I am mounting home drives using autofs from a file server: auto.master /home /etc/auto.home auto.home * tyrell:/nfshome/ This seems to work great, but on the file server, tyrell I'm ...
2
votes
1answer
635 views

Nested directories managed by autofs?

Is it ok to have nested directories managed by autofs? e.g. /nfs/zfs /nfs On my Debian 8 machine, I have /etc/auto.zfs like this: repo -fstype=nfs,rw 192.168.0.2:/repo and /etc/auto.nfs like this:...
2
votes
1answer
2k views

SSSD and autofs

I am trying to set up SSSD to get automount maps from Active Directory. I think my settings are correct but it uses the wrong username to query AD. It takes whatever that is set as "mapname" (behind ...
2
votes
3answers
2k views

Autofs home directories with passwordless logins

I want a setup where a user home directory is mounted on login (autofs). This is working with password based authentication. However, I want passwordless authentication, by generating public keys. ...
2
votes
1answer
55 views

The importance of the order in domain controler names for setting an LDAP server, is there any reason?

I wonder if there is any reason to speficically put the domain controlers in the proper order, when configurung a LDAP server using autofs. For example if specify on a RedHat/CentOS the dc domain ...
2
votes
1answer
257 views

In what situation would it be more beneficial to use AutoFS over vfstab for shares dedicated to just one server?

Consider an environment of three Solaris servers (Server1-3): Where Server1-3 all share a mount nas-server.company.com:/vol/appls-backup, for storing backups and recovery related files at periodic ...
2
votes
1answer
18 views

AutoFS not working as expected with CIFS shares

I have this setup Client: Centos 7.6.1810 up to date Server: Windows 7 pro AutoFS Configuration # tail -1 /etc/auto.master /srv/xray /etc/auto.xray # cat /etc/auto.xray cdm8240 -fstype=...
2
votes
1answer
177 views

Is it bad to have thousands of autofs rules?

My company literally has thousands of NFS volumes, which we need to mount on a few of our servers. However, we never mount all of them at the same time; typically we mount about 12 at a time. Most of ...
2
votes
1answer
258 views

Mount a large squashfs in a way that allows random writes (to a separate filesystem)?

I just received a few-dozen-gigabyte squashfs that contains a PostgreSQL database. In order to be able to conveniently query it, I need to have a write access, which makes it complicated. Is there a ...
2
votes
1answer
30 views

Understanding Autofs mounting

So my auto.master looks like this, the server I am concerned with is server4-vn01.cifs. /- /etc/server.cifs --timeout=400 --ghost /- /etc/server2.cifs --timeout=400 --ghost /- /etc/server3.cifs --...
2
votes
0answers
596 views

Idle timeout for NFS share mounted with systemd automount

What I want to do? I want to configure my /etc/fstab so that my NFS share was: mounted automatically when accessed (auto-mount on-demand), unmounted automatically after specified idle timeout (x-...
2
votes
0answers
275 views

How to automount SSHFS shares for a user upon login?

My question is how to mount SSHFS shares as the user (not root) upon demand or upon user login using only tools that are in my distro's core repos. I'm using Arch. I don't mind writing a small script, ...
2
votes
1answer
2k views

Mac OS Sierra 10.12 autofs mounts only the first specified NFS volume

I am having an issue with the Mac OS Sierra. I have added a NFS config in a auto_nfs for 2 NFS shares and the autofs picks only the first one. Here's my auto_master: # # Automounter master map # +...
2
votes
1answer
95 views

How to configure autofs on mobile system

I am using a laptop to access files on a remote research cluster. Originally I used a static mount with fuse and sshfs configured in /etc/fstab. This worked reasonably well on a workstation with ...
2
votes
1answer
587 views

systemd: autofs containing autofs does not unmount

I'm trying to set up two directories, each automounted: /mnt/dir /mnt/dir/subdir In my case, these are: /mnt/btrfs-vol/rootfs (read only) /mnt/btrfs-vol/rootfs/btrbk-snap (RW for taking snapshots ...
2
votes
0answers
734 views

Trouble with multiple autofs mounts

So, I am trying to mount folders from server1 and server2 on server0. I can't seem to get the second folder mounted. Here is what I did: Created a folders /nfs/home and /nfs/programs on server0 . I ...
2
votes
0answers
443 views

Autofs: I'm able to mount one folder but not the other

I'd like to use autofs to mount two directories from my laptop to my lan-server. The problem is, that autofs mounts one directory but not the other... This is how my laptop exports the directories: /...
2
votes
1answer
4k views

What's wrong with my NFS setup?

I had previously been able to configure an NFS server on a computer running CentOS 6.6, and to mount the file system in a Virtual Machine with the same OS and using autofs. Last week I did a fresh ...
2
votes
1answer
805 views

Automounts: All mounting and will not umount on its own [closed]

I have a few SLES 11.2 servers. They do something really strange with automount. We have nearly 500 possible automounts our users and their codes may need, including automount entries for each user'...
2
votes
0answers
351 views

Issues accessing CIFS share directories

Disclaimer 1: Crossposted from Serverfault because there was no activity over there. Disclaimer 2: This question is similar to Automounting not working correctly for CIFS shares; weird results but ...