Questions tagged [autofs]
AutoFS is a software application that allows file systems to be automatically mounted and unmounted on demand.
120
questions
0
votes
0
answers
9
views
Autofs Browsing not Working RHEL 8.5
I am upgrading from RHEL 8.4 to RHEL 8.5 on some of my systems and for some reason on 8.5 when you ls our home directory you get ls: cannot access '/home/': No such file or directory. We have the --...
0
votes
1
answer
47
views
Why are directories under /mnt not visible when mounting filesystem with NFS?
I setup an NFS share on my NFS server with /etc/exports containing / *(rw,no_root_squash,no_subtree_check)
Then I do exportfs -a to activate the share and restart the nfs server.
I mount the share ...
0
votes
0
answers
23
views
Why autofs does not automount newly connected disks?
I added entry for my disk and when I connect it and then run autofs (i.e. either run the service or run automount) the disk is automounted. But if I run autofs first and then connect the disk nothing ...
0
votes
1
answer
89
views
autofs mounting the same volume multiple times
I'm using automount on Fedora34 for a samba share running on Fedora15. The following configuration worked well in an old Fedora27, except I had to add forceuid and forcegid to work on Fedora34.
$ cat /...
0
votes
1
answer
451
views
RHEL 8.3 autofs not mounting NFS directories
RHEL 8.3 64-bit
autofs.x86_64 1:5.1.4-43.el8
I'm trying to enable autofs for my system. I've followed the tutorials and, while they make sense, the network drives are not mounting and in some cases ...
1
vote
1
answer
166
views
autofs/automount not mounting an external HDD
I have a laptop with an extra internal HDD and external HDD via USB that I would like to automount using autofs. Here is my auto.master:
/mnt/ /etc/auto.ext-int
/run/media/ /etc/auto.ext-usb
Auto.ext-...
1
vote
0
answers
107
views
autofs nfs share served and mounted on same PC reporting permission denied when writing
I am using nfs between multiple Debian 10 machines in my local network, with the same basic setting across the board, and they are all working as expected.
I am using autofs as root to mount and ...
1
vote
0
answers
126
views
FreeBSD: Automount to specific location
First of all, I read Vermaden's blog which explained a couple different systems used for automounting. I like to use included utilities so I opted for autofs. Based on the information in the blog I ...
0
votes
2
answers
168
views
autofs mount local directory when nfs unavailable
I want to have my home directory be an NFS mount when it's available, or a local directory when it's not. Think of a laptop that I might want to take somewhere off of my normal network. What I have ...
1
vote
0
answers
55
views
List items in an autofs map
My org is transitioning off of NIS and connecting RHEL clients to AD via SSSD. I'm making use of the legacy NIS mounts created in the AD RFC2307 map editor and have configured sssd.conf to get mount ...
1
vote
1
answer
610
views
Autofs fails to mount nfs-shared autofs bind mounted directory, but manual mount succeeds
Apologies for the long read below. Hopefully this will give enough context and traces so someone can help me.
Context
I store user home directories on some zfs dataset (one per user), where each user ...
0
votes
1
answer
132
views
Autofs fails to mount nfs-shared, autofs-bind mounted directory, but manual nfs mount succeeds
I attempt to export some directory that contains a subdirectory where autofs mounts (bind) a few other directories.
NFS accepts to export this directory, as long as I do not export the autofs mount ...
0
votes
0
answers
462
views
How to resolve the delay in mounting NFS export with autofs?
When mounting an NFS mount with autofs, I experience a delay in the mount (between 10 seconds to a minute). How can I avoid this delay while still resolving the server name via DNS?
I am using ...
1
vote
1
answer
1k
views
Problems with automounting NFS on RHEL8
I've run into some problems when configuring autofs on CentOS and I would really appreciate your help with it ^^
I have to VMs:
CentOS Linux release 7.8.2003, IP address: 10.110.163.10
Two NFS ...
0
votes
1
answer
23
views
autofs shall mount depending on network/address
when I use my notebook not in my office network, the auto mounter should not try to mount my /etc/auto.share entries.
Is there a setting avoiding the mount depending on the network/address?
The big ...
1
vote
1
answer
112
views
Stopping Autofs when in a mounted folder and the folder stays mounted
I installed autofs and it's mounting a network drive to a folder in my local linux filesystem. I use -fstype=cifs,rw in the mount command in an /etc/auto.smb.shares file.
If I cd into the mounted ...
1
vote
1
answer
123
views
Autofs: /sshfs-dir
The solution to having a dynamic /nfs dir proved to be extremely simple: https://unix.stackexchange.com/a/584475/2972
I am wondering if I can do the same for sshfs.
Let us assume that I can run:
...
0
votes
1
answer
97
views
autofs --force unmounts /proc
Historically I've seen autofs get into situtations where systemctl restart autofs will hang indefinitely due to stale nfs handles.
As a result I've employed the --force option to make autofs play a ...
0
votes
1
answer
45
views
Autofs: /nfs-dir
At my university we had autofs set up so that you could:
cd /nfs/fqdn.of.some.nfs.server/share
and it would automount the nfs server+share as if root had done:
mount -t nfs fqdn.of.some.nfs.server:...
1
vote
1
answer
1k
views
AutoFS - Bash script to check if mount is ALIVE before proceeding or exiting
This is specific to autofs mounts.
I've found numerous ways to check a traditional mount, some use the /proc/mounts file. I can see my mount is still in that file even when the mount is not currently ...
0
votes
1
answer
294
views
Drive mounts with mount, but not autofs automount
Second day on this, so I'm definitely doing something wrong.
Can mount a spare drive to user's home subdirectory mount point, with correct permissions for user to use it.
Doing that with just simple ...
0
votes
1
answer
354
views
autofs cifs samba
Automounting not working correctly for CIFS shares; weird results
Base on the above question,
my issue is that my samba/cifs password do have '*' and '&' characters which point me to the lines:
...
0
votes
0
answers
191
views
how to gracefully handle rsync failing, sometimes, to correctly read a directory?
Running Ubuntu 16.04 LTS fully updated on remote webserver
Running rsync 3.1.1 on remote webserver
I have a fairly simple setup where I allow some users to manage a set of publicly accessible files.
...
0
votes
1
answer
214
views
How to add fuse filesystems to the mount command?
I have used linux distributions in the past where the "mount" command could auto-detect the filesystem on a drive and mount it without having to use the "-t" parameter.
Now, I am building my own ...
2
votes
1
answer
1k
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=cifs,ro,...
0
votes
1
answer
2k
views
Kerberos key fails with AutoFS
Our Kubuntu computers are configured to automatically connect to their network drive via AutoFS. When we upgrade machines to Kubuntu 18.04 LTS this AutoFS connection no longer works. It is still ...
2
votes
0
answers
367
views
Allow all users full read/write access to CIFS share with automount/autofs
How can I configure autofs/automount so that every single user has full access to an auto-mounted CIFS share?
More information
This is what I currently have configured:
/etc/auto.master
/mnt /...
2
votes
1
answer
307
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 --...
1
vote
1
answer
592
views
Fuse not Loaded When Trying to Mount
I'm trying to execute this command in terminal: sudo mount -t cvmfs <repository> /mnt/cvmfs and I keep getting Fuse not loaded returned to me. I'm not quite familiar with what this fuse in ...
1
vote
0
answers
2k
views
Alternative to autofs to mount CIFS folders in user home folders in multi-user environment
My use case seems very simple. I want to automount CIFS folder CIFS1 and CIFS2 which exist for all users on my fileserver in each user home during login on this multi-user 18.04 Ubuntu machine.
So ...
2
votes
1
answer
5k
views
AutoFS for mouting Samba share with Kerberos Ticket
I've setup a Samba AD on Debian Stretch. Another stretch client node is able to authenticate using AD credentials.
The domain user has limited rights on the client node, meaning he can't mount ...
0
votes
1
answer
360
views
Centos 7.5 autofs posix acl support
On centos 7.5 I have mounted NFS share(from isilon server) via autofs service.
Now when I run
setfacl -d -m g::rwx /path/to/share/location
it gives error
setfacl: /path/to/share/location Operation ...
3
votes
0
answers
4k
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-...
1
vote
1
answer
378
views
Can autofs be used for a computation cluster? [closed]
I am planning to build a small computation cluster at home. I need share /usr/local and /opt directory on server machine to several computation nodes. There are compiled computation programs and ...
0
votes
1
answer
1k
views
autofs indirect mount in CentOS 7
I am using CentOS7. I have tried to test "autofs". I have created 2 centos servers as cent_ldap and cent_client. I have configured cent_client to use ldap authentication successfully.
In cent_ldap I ...
1
vote
1
answer
2k
views
Automatically remount boostfs drive
I'm working with the DataDomain server in our Commvault solutions. Anytime this server is rebooted the network disk in use for the solution does not remount. Right now this means we need to stop some ...
2
votes
0
answers
267
views
sshfs with automount failing silently
I am attempting to "permanently" mount a network drive (CentOS 7.4) on my local machine (macOS 10.12 Sierra) using sshfs and automount
First off, is this actually the most appropriate tool to use ...
3
votes
1
answer
2k
views
How can I resolve autofs mount delays related to host probing?
I have an infrastructure of CentOS 6 and CentOS 7 client machines that rely on autofs to automount various NFS filesystems exported by a service elsewhere in my organization. Recently, the clients ...
1
vote
0
answers
175
views
autofs mount all devices from specific type
I want to mount ALL USB devices with one autofs entry.
I can't mount the device by it's ID, Label or something like that.
I need to duplicate it and don't know every single usb device on every single ...
2
votes
0
answers
594
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, ...
1
vote
1
answer
2k
views
How do I automount a hard drive to samba using autofs?
I have a Raspberry Pi with samba installed. I've looked into autofs and saw the potential of automounting an external harddrive upon accessing it over the network by my windows machine.
Appearantly ...
12
votes
1
answer
9k
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....
1
vote
0
answers
495
views
New files created through sshfs date from 1970
I wish to mount a remote Linux directory to my local laptop using sshfs. I do this by using autofs. In /etc/autofs/, I therefore have in the auto.ssh file (I used the Arch wiki to guide me for the ...
1
vote
1
answer
5k
views
Issues with autofs "problem reading master map, maximum wait exceeded"
I am trying to mount a cifs partition using autofs. After a lot of trial and errors, I finally manage to get it mounted (the main issue I ran into is that in the instructions, here, this line in the ...
2
votes
1
answer
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
#
+...
1
vote
1
answer
13k
views
Autofs Issues Mounting NFS Home Directories (CentOS 7.4) [closed]
I am having issues getting autofs to mount user's home directories via NFS. I have an NFS client (client.home) and an NFS server (server.home). Both systems are CentOS 7.4. SELinux is running in ...
0
votes
1
answer
4k
views
Autofs won't mount a mount that Automount -f -v will
I had an issue today that dinged my sanity pretty hard, so I'm posting it so some poor bastard who follows in my idiotic footsteps will maybe find solace.
Running Autofs on RHEL7. Basic CIF mount.
...
2
votes
2
answers
12k
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....
1
vote
0
answers
1k
views
automount sshfs with autofs and sshpass
I want to mount partitions from a remote NAS that doesn't support login with a certificate.
I created or edited the following files:
/etc/ssh/sshpass.232 with ssh password
/etc/ssh/sshpass.232.sh ...
1
vote
2
answers
1k
views
autofs : dynamic mounting rule for s3 bucket
I successfully implement autofs to automatically mount s3 bucket to the server which running ubuntu server 14.04.5 by following this tutorials. but the number of bucket (that needs to automatically ...