Hi,
Another problem that is baffeling me. I installed manjaro gnome on my laptop a couple of months ago and configured autofs to automount my nfs shares on a nas. Installed the packages from aur etc en copy pasted a few files from a working setup. It al worked within a few minutes. Now I am trying to do the same on my new ryzen based pc and I cannot get it to work. These are the steps that:
- install manjaro and update the system
- install autofs from aur
- check if nfs and tools are installed (nfsutils)
- ran some commands:
showmount -e 192.168.1.100
output:
Export list for 192.168.1.100:
/export 192.168.1.0/24
/export/USB-Clonezilla-backups-omv6 192.168.1.0/24
/export/Configs 192.168.1.0/24
/export/Torrent 192.168.1.0/24
/export/NewPresciousData 192.168.1.0/24
/export/Backup3TB 192.168.1.0/24
sudo mount -t nfs 192.168.1.100:/Torrent /mnt
ls /mnt
ls /mnt shows the correct content of the share.
sudo systemctl enable autofs
Copy working auto.master and auto.shares files to the autofs dir. Files have correct permissions. auto.master file:
#
# Sample auto.master file
# This is a 'master' automounter map and it has the following format:
# mount-point [map-type[,format]:]map [options]
# For details of the format look at auto.master(5).
#
/misc /etc/autofs/auto.misc
#
# NOTE: mounts done from a hosts map will be mounted with the
# "nosuid" and "nodev" options unless the "suid" and "dev"
# options are explicitly given.
#
/net -hosts
#
# Include /etc/autofs/auto.master.d/*.autofs
# To add an extra map using this mechanism you will need to add
# two configuration items - one /etc/autofs/auto.master.d/extra.autofs file
# (using the same line format as the auto.master file)
# and a separate mount map (e.g. /etc/auto.extra or an auto.extra NIS map)
# that is referred to by the extra.autofs file.
#
+dir:/etc/autofs/auto.master.d
#
# If you have fedfs set up and the related binaries, either
# built as part of autofs or installed from another package,
# uncomment this line to use the fedfs program map to access
# your fedfs mounts.
#/nfs4 /usr/sbin/fedfs-map-nfs4 nobind
#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.
#
+auto.master
/mnt /etc/autofs/auto.shares --timeout=600 --ghost
auto.shares file:
NewPresciousData-nfs -fstype=nfs,rw,soft,retry=0 192.168.1.100:/NewPresciousData
Torrent-nfs -fstype=nfs,rw,soft,retry=0 192.168.1.100:/Torrent
Configs-nfs -fstype=nfs,rw,soft,retry=0 192.168.1.100:/Configs
Backup3TB-nfs -fstype=nfs,rw,soft,retry=0 192.168.1.100:/Backup3TB
USB-Clonezilla-backups-omv6-nfs -fstype=nfs,rw,soft,retry=0 192.168.1.100:/USB-Clonezilla-backups-omv6
sudo systemctl start autofs
sudo systemctl status autofs
output:
â autofs.service - Automounts filesystems on demand
Loaded: loaded (/usr/lib/systemd/system/autofs.service; enabled; preset: disabled)
Active: active (running) since Sun 2022-12-18 14:29:47 CET; 21min ago
Main PID: 986 (automount)
Tasks: 6 (limit: 37473)
Memory: 4.7M
CPU: 6ms
CGroup: /system.slice/autofs.service
ââ986 /usr/bin/automount --systemd-service --dont-check-daemon
dec 18 14:29:47 woonkamer-amd-gnome systemd[1]: Starting Automounts filesystems on demand...
dec 18 14:29:47 woonkamer-amd-gnome systemd[1]: Started Automounts filesystems on demand.
~
~
~
~
~
~
~
~
~
~
~
~
lines 1-12/12 (END)
After a reboot no nfs mount can be found in /mnt. Any ideas what is happening??
Thanx