Questions tagged [autofs]
AutoFS is a software application that allows file systems to be automatically mounted and unmounted on demand.
127
questions
0
votes
0
answers
27
views
AutoFs with specific user´s permissions
I have autofs working properly. I can mount a Windows share on Linux server without problems.
But there is one issue: I don't want that mounted share to be public to all Linux users, just for a small ...
-4
votes
1
answer
72
views
exportfs; invalid ip address [closed]
rhel 7.9 setting up autofs for CentOS 7 client. Every time I run exportfs -ra I see the exportfs: invalid ip address for 10.0.0.2. /etc/exports looks like /opt somehost:/opt.
0
votes
0
answers
106
views
can't delete folders on samba share
I am dealing with a really weird issue I can't identify the cause of. I have a samba share mounted using autofs in Rocky 9.2 with the flags -fstype=cifs,rw,nounix,file_mode=0700,dir_mode=0700,...
1
vote
1
answer
101
views
Autofs with CIFS for home directories not really working
I'm having a bit of grief trying to get home directories that are automounted from a CIFS share working. In auto.master I have added the line
/home/ /etc/auto.home
and in /etc/auto.home I have
* -...
0
votes
0
answers
165
views
Using autofs to mount NFS shares when host is available
I have set up a NFS server on my NAS box, and I can mount the directory on by Ubuntu 20.04 desktop PC.
I have also set up autofs to mount the share, which also works. When I start autofs, the mount is ...
1
vote
1
answer
155
views
Mount a LUKS encrypted EXT4 formated image file when mount folder is accessed (using autofs)
Here's what I'd like to do. Use autofs to automount an encrypted luks image file when the target directory is accessed.
I've been playing with both fstab and crypttab, but to no luck.
I do NOT want to ...
0
votes
1
answer
156
views
Can I auto-mount all users in /home (using `*` key) except one?
Starting on a server where /home had just one user, I thought "adding" the home directories of the other users via NFS using automount's * and &.
Also the NFS has a home directory (but ...
0
votes
1
answer
465
views
Using /etc/auto.master.d together with wildcard `*` to mount `/home`
My problem is similar to that described in Need example use of autofs.master.d/:
I wanted to mount individual users' home directories to /home/*user* using both, * wildcard and directory /etc/auto....
0
votes
0
answers
118
views
An error occurred while accessing 'DEVICE' The requested operation has failed: Error creating directory `/run/media/{username}`: Permission denied
I've been loading up USB sticks with data and, while working on this, have been trying new autofs configurations to try and get the sticks to automount in a different way and I think I've borked it.
I'...
0
votes
0
answers
900
views
Unable to Mount an NFS Share with AutoFS
I'm trying to mount an NFS share /data hosted on server_host to a folder also called /data on server_client. I am able to mount it on startup with the fstab file and I am able to mount it on-demand ...
0
votes
1
answer
745
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
1
answer
284
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
4k
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
2
answers
724
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
349
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
372
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
550
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 ...
3
votes
1
answer
2k
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
451
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
1k
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 ...
2
votes
1
answer
2k
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
39
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
992
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 ...
2
votes
1
answer
260
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
251
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
119
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
2k
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
390
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
583
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
245
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
368
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 ...
1
vote
1
answer
2k
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,...
1
vote
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
1
answer
590
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 /...
1
vote
1
answer
401
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
881
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
1
answer
3k
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
7k
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
501
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
6k
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
441
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
2k
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
318
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
3k
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
242
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
734
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
11k
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
619
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 ...