Skip to main content
28 votes
Accepted

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

Connect your device and find out the UUID of the filesystem by running either blkid or lsblk -f. Add a line to /etc/fstab such as: UUID=05C5-A73A /mnt/32GBkey vfat noauto,nofail,x-systemd....
Tom Hale's user avatar
  • 30.9k
10 votes
Accepted

Need example use of autofs.master.d/

After reading through the man pages for way longer than I wanted, I came to the conclusion that you can't do it with one file. The power of +dir: is that it lets you add files to set the ...
Dan Christian's user avatar
5 votes

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

The reason for the problem is the lack of systemd configuration files. Base on a post by Matt Grant on debian-devel these are the steps you need to perform. 1. Create /etc/systemd/system/nfs-common....
Diomidis Spinellis's user avatar
5 votes

Autofs with remote and local home directories at same folder

I just solved a similar issue. I wanted to mount a few users' /home/username directories from nfs, but have a couple others live on the local disk. Unfortunately, when trying to use the local disk ...
David R.'s user avatar
  • 151
4 votes

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

add to /etc/auto.master /var/autofs/removable /etc/auto.removable --timeout=2 add to /etc/auto.removable theDiskLabel -fstype=ext4,rw,gid=1000,umask=002 :/dev/disk/by-uuid/...
Philippe Gachoud's user avatar
3 votes

AutoFS for mouting Samba share with Kerberos Ticket

Debugging AutoFS To debug autofs stop the service and run it on the command line: sudo service autofs stop sudo automount -f -d Or turn on Debug Logging Edit /etc/autofs.conf and set logging to "...
Bastion's user avatar
  • 171
3 votes
Accepted

Nested directories managed by autofs?

Answering my own question. So apparently the correct way of doing this is through something called "multi-map" or "multiple-mount map", according to man 5 autofs. <sarcasm>Oh such clear and ...
Kal's user avatar
  • 753
3 votes

How can I see automount points in Linux?

I see the question is quite old, but the answers did not match, what I understood from it. This is for CentOS7 and probably RHEL. You can cat /etc/auto.master. It will show you the defined ...
Christian Kaiser's user avatar
2 votes

Using autofs to mount under each users' home directory

You can force the permissions set on the CIFS mount with the file_mode and dir_mode options, in conjunction with the uid=${USER} setting you were already using, giving an automount map line of ...
David Gardner's user avatar
2 votes

autofs mounts not disconnecting after inactive

For any one else experiencing similar issues there are GUI processes on modern desktops that scan the drives continually. In particular Nautilus on Gnome and Dolphin on KDE along with file indexing ...
flashydave's user avatar
2 votes

autofs mounts not disconnecting after inactive

I spent hours today trying to debug and similar problem. Here is what I found and how I worked it around.] setup: I wanted to auto mount dir containing users' home dirs from nfs server "srv1:/srv/...
George Ivanov's user avatar
2 votes
Accepted

autofs asks password for passwordless samba share on Centos 7

I had this same annoyance. Eventually, I ended up switching the automounting to systemd. You have to create a file in /etc/systemd/system for the mount. Naming conventions require that to be named ...
Marko's user avatar
  • 156
2 votes
Accepted

autofs ~/.hidden: No such file or directory

This seems to be a problem for people going back to 2004, and which has recently been re-addressed March 2017. It is due to "user-friendly" tools like Nautilus seeking to implement a hidden files ...
meuh's user avatar
  • 51.8k
2 votes
Accepted

Autofs won't mount a mount that Automount -f -v will

So, this has probably been broken in our environment for about 10 years, but we don't use many CIF shares, and autofs on lower versions of RHEL apparently ignores garbage in the mount string if it's ...
Satanicpuppy's user avatar
2 votes
Accepted

AutoFS fails to mount Samba CIFS share

It took me a few days to figure this out, so I just wanted to share the things I discovered, in case others have a hard time with AutoFS. Ensure you can manually mount the share using the mount ...
JeremyCanfield's user avatar
2 votes
Accepted

How can I resolve autofs mount delays related to host probing?

It seems that that the key clue in the log messages is that the probes logged as having "proto 6" succeed and those logged as having "proto 17" fail. The 6 and 17 turn out to be the IP transport ...
John Bollinger's user avatar
2 votes
Accepted

Trying to automatically mount a usb drive on debian bookworm when connected

I'm on Linux Mint, which is debian based, but this should also work with debian bookworm. This is a job for udev service, the extented device manager from systemd.It gets notified by the kernel, if ...
Schmaehgrunza's user avatar
1 vote
Accepted

How do I automount a hard drive to samba using autofs?

THE SOLUTION! I've figured it out now. The error messages pointed me in the right direction (again) and digging through google searches I've come across the ntfs-3g package and also the ntfs-config ...
HackXIt's user avatar
  • 141
1 vote

Issues with autofs "problem reading master map, maximum wait exceeded"

AutoFS uses a two-level hierarchy of configuration files. Top-level control /etc/auto.master The top-most file in the hierarchy is /etc/auto.master and it defines the directory trees over which ...
Chris Davies's user avatar
1 vote
Accepted

Autofs Issues Mounting NFS Home Directories (CentOS 7.4)

I figured it out. I was editing the /etc/auto.master on the server when I should have been doing it on the client. That is, on the client add the following to /etc/auto.master /home/ /etc/auto....
Timothy Pulliam's user avatar
1 vote

autofs : dynamic mounting rule for s3 bucket

Old post, but needed some info on doing this so stumbled across this. I kept getting a syntax error using the answer previously proposed. I had to adjust my auto.master and add a url to my map file ...
Server Fault's user avatar
1 vote

autofs : dynamic mounting rule for s3 bucket

first check your S3 access: s3fs your-s3-bucket /mnt -o passwd_file=/path/to/your/secrets if this works, enter this into your autofs config: s3 / -fstype=fuse,passwd_file=/path/to/your/secrets :...
user250611's user avatar
1 vote

autofs on centos 6.8 to mount windows share: How to debug?

How to debug: modify /etc/sysconfig/autofs. Append this line at the end: OPTIONS="--debug" How to resolve your issue: suppose you want to bind Linux /mnt/remote/WindowsServer with Windows shared ...
Andrew's user avatar
  • 11
1 vote
Accepted

Automount with autofs, encfs and keyring access

I finally found the solution after having problems with dbus after an update. New script: #!/usr/bin/fish function usage echo "need at least two arguments" echo " 1. <user name>:[<...
fehnomenal's user avatar
1 vote
Accepted

Is it bad to have thousands of autofs rules?

We have several maps, and some of the maps have 10s, 100s of volumes. So it does work for a fleet of 100s of Linux, 10s of other platforms. The only issue we had with old autofs software in the early ...
Hend's user avatar
  • 136
1 vote

Autofs with remote and local home directories at same folder

After struggling a bit, glad to find this post, which is the clearer on the topic I've found. Just to reformulate, and confirm it works under Centos 7|autofs-5.0.7-56. Basic, with very few ...
tisc0's user avatar
  • 466
1 vote
Accepted

What's wrong with my NFS setup?

It looks like the problem here were the permission settings on the folder being exported on the server side. So, doing the following on the server allowed me to write from the client: [root@...
JNat's user avatar
  • 131
1 vote

Autofs home directories with passwordless logins

If you have SELinux enabled, you may have to enable NFS mounted home directories via: setsebool -P use_nfs_home_dirs=true I had this problem on RHEL, and found the solution in /var/log/messages: ...
Dan Pratt's user avatar
1 vote

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

Generally as we know mounting at boot happens with/etc/fstab whereas autofs is the daemon that happens later. so generally it's good to have NFS shares on autofs so that there will not be any problem ...
Akhil's user avatar
  • 11
1 vote

autofs mounts not disconnecting after inactive

I had a similar problem. I reinstalled our 10 year old RHEL 4.7 ProLiant server with CentOS 6 over the Christmas break. I had 2 newer ProLiants which I was able to install CentOS 7 on more recently (...
wanpelaman's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible