Skip to main content

Questions tagged [autofs]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
20 views

rclone group permissions not working

im using rclone to mount google drive but the permissions are completely broken. im using debian 12 -> sudo namei -l /mnt/cloud/gdrive/gd1/3D f: /mnt/cloud/gdrive/gd1/3D drwxr-xr-x root root / ...
BPplays's user avatar
  • 11
0 votes
0 answers
20 views

AutoFS isn't mounting, but can manually mount

I can'tfigure out why autoFS mount isn't working. I can manually mount it, but can't get it to work with autofs. edgar@Docker:~$ sudo mount 10.100.0.88:/export/Photos /mnt/nfs/Photos [sudo] ...
Krazy's user avatar
  • 1
0 votes
0 answers
12 views

Autofs expiring browseable offset mounts, resulting in the inability to mount

Summary: We define a /mount/path/pathcontd/mountpoint tree in autofs, have historically --ghosted the paths, but have recently attempted to set the offset mounts as browse-able. Our configuration ...
user613003's user avatar
0 votes
0 answers
167 views

Autofs - setautomntent: lookup(sss): setautomountent: entry for map auto_master not found

I am trying to set up my NFS system between my server node and my client node running on rhel9. They are both on different physical servers on the same network. The nfs-server daemon is properly ...
paul runner's user avatar
0 votes
1 answer
23 views

Unable to install autofs on rhel9

When I try sudo dnf install autofs, I get this error: [MIRROR] autofs-5.1.7-58.el9.x86_64.rpm: Status code: 403 for https://cdn.redhat.com/content/dist/rhel9/9/x86_64/baseos/os/Packages/a/autofs-5.1.7-...
paul runner's user avatar
1 vote
0 answers
21 views

autofs shows resources but returns `file not found` when I try to access them

For some time now autofs stopped working properly, I've configure it to mount samba shared exposed on my raspberry running DietPi. My conf is really simple: /etc/auto.master.d/dietpi-rpi1.autofs : /...
Daniele's user avatar
  • 468
0 votes
1 answer
71 views

How to change default automount USB path to /mnt/sdXX?

Default mount path with udisks2, udiskie is /media/XXXXX On some distributions /media/user/XXXXXX How to change automount path for USB drives to a shorter /mnt/sdb1 /mnt/sdc2 etc. With udisks2, ...
YukaMax's user avatar
2 votes
1 answer
119 views

Building redundancy by creating multiple nfs mounts to a single location

I have been managing a small local Linux cluster for my lab, consisting about two dozens of Ubuntu Linux servers - half of those are headless servers (rack/tower), and the other half are used as ...
FangQ's user avatar
  • 123
0 votes
1 answer
1k views

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

I cannot for the world get my usb harddrive mounted via autofs on debian 12 (bookworm) - I found this resource and some similar questions here but nothing seems to work. What is the current way to ...
tkhobbes's user avatar
  • 103
0 votes
0 answers
58 views

Is /etc/auto.net right? Seems like a typo

Like many people I've had trouble with machines hanging when the NFSv3 server was not available (switched off). I saw various suggestions , like soft/hard , intr, bg etc being set... not a lot seems ...
GraemeV's user avatar
  • 178
0 votes
0 answers
298 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 ...
Daniel Castro's user avatar
-4 votes
1 answer
286 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.
user1110629's user avatar
0 votes
0 answers
617 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,...
BumpySiren's user avatar
1 vote
1 answer
361 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 * -...
BumpySiren's user avatar
0 votes
0 answers
579 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 ...
user826955's user avatar
1 vote
1 answer
401 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 ...
JDMcMillian's user avatar
0 votes
1 answer
446 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 ...
U. Windl's user avatar
  • 1,493
0 votes
1 answer
2k 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....
U. Windl's user avatar
  • 1,493
0 votes
0 answers
2k 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 ...
Aaron Siegfried's user avatar
0 votes
1 answer
2k 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 ...
Michiel Bruijn's user avatar
0 votes
1 answer
379 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 /...
user2011659's user avatar
0 votes
1 answer
7k 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 ...
JayK's user avatar
  • 3
1 vote
2 answers
1k 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-...
Sagarmatha's user avatar
1 vote
0 answers
432 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 ...
tompi's user avatar
  • 242
1 vote
0 answers
487 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 ...
quickblueblur's user avatar
0 votes
2 answers
800 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 ...
denebeim's user avatar
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 ...
Nykau's user avatar
  • 31
0 votes
1 answer
616 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 ...
Nykau's user avatar
  • 1
0 votes
0 answers
2k 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 ...
SchroedingerHepcat's user avatar
2 votes
1 answer
3k 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 ...
Kioko Key's user avatar
0 votes
1 answer
42 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 ...
Pulsar07's user avatar
1 vote
1 answer
2k 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 ...
FlexMcMurphy's user avatar
2 votes
1 answer
289 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: ...
Ole Tange's user avatar
  • 35.8k
0 votes
1 answer
349 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 ...
azzid's user avatar
  • 1,000
0 votes
1 answer
148 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:...
Ole Tange's user avatar
  • 35.8k
1 vote
1 answer
3k 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 ...
EldestBizarre's user avatar
0 votes
2 answers
450 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 ...
bigsy's user avatar
  • 1
1 vote
1 answer
640 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: ...
crlshn's user avatar
  • 21
0 votes
0 answers
268 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. ...
Daniel's user avatar
  • 161
0 votes
1 answer
469 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 ...
Daniele Testa's user avatar
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,...
darxmurf's user avatar
  • 1,132
1 vote
1 answer
3k 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 ...
Bastion's user avatar
  • 171
2 votes
1 answer
785 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 /...
Richard's user avatar
  • 121
1 vote
1 answer
455 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 --...
200mg's user avatar
  • 190
1 vote
1 answer
981 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 ...
David G.'s user avatar
  • 197
1 vote
1 answer
4k 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 ...
reyman64's user avatar
  • 163
3 votes
1 answer
8k 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 ...
Green Stone's user avatar
0 votes
1 answer
554 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 ...
Ruchit's user avatar
  • 111
3 votes
0 answers
7k 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-...
patryk.beza's user avatar
  • 1,189
1 vote
1 answer
459 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 ...
michael morgan's user avatar