Establishing persistent NFS mount.

Back in the days before I changed to Tumbleweed I set up a NFS mount to my home directory using Yast and all was well and after a re-boot the mounted drive worked as required.

Since Tumbleweed I have been unable to achieve an NFS mount. When I try I get a pop up :-

These packages need to be installed: nfsidmap

However if I select the Install button I get the following message in a pop up:-

Installing required packages failed. If you continue
without installing required packages,
YaST may not work properly.

If I proceed the mount fails.

I have therefore given up on Yast and use the following command:

sudo mount -t nfs 192.168.169.130:/Multimedia /home/alastair/NFS_multimedia


This mounts the NFS share as wanted but it is not remembered through restarts. What command should I put and where in order to have this mount started on boot please?

Budgie2

For a file system to mount at boot, there should be an entry in /etc/fstab. Operating systems are not clairvoyant, everything must be configured somewhere. So is it in your /etc/fstab or not?

Put this in your /etc/fstab:


192.168.169.130:/Multimedia /home/alastair/NFS_multimedia nfs defaults 0 0

at the bottom of the fstab

Hi and many thanks for the reply. Even though I have run the mount command above there is nothing in my /etc/fstab so that explains why no persistent mount. This is what I have even when mount is working:-

alastair@AJBR-W530:~> cat /etc/fstab
UUID=36192457-612b-452e-a846-745a83774812  /                       btrfs  defaults                      0  0
UUID=36192457-612b-452e-a846-745a83774812  /var                    btrfs  subvol=/@/var                 0  0
UUID=36192457-612b-452e-a846-745a83774812  /usr/local              btrfs  subvol=/@/usr/local           0  0
UUID=36192457-612b-452e-a846-745a83774812  /tmp                    btrfs  subvol=/@/tmp                 0  0
UUID=36192457-612b-452e-a846-745a83774812  /srv                    btrfs  subvol=/@/srv                 0  0
UUID=36192457-612b-452e-a846-745a83774812  /root                   btrfs  subvol=/@/root                0  0
UUID=36192457-612b-452e-a846-745a83774812  /opt                    btrfs  subvol=/@/opt                 0  0
UUID=28c73f4d-624d-478d-8d3f-3efd343b77b8  /home                   xfs    defaults                      0  0
UUID=36192457-612b-452e-a846-745a83774812  /boot/grub2/x86_64-efi  btrfs  subvol=/@/boot/grub2/x86_64-efi  0  0
UUID=36192457-612b-452e-a846-745a83774812  /boot/grub2/i386-pc     btrfs  subvol=/@/boot/grub2/i386-pc  0  0
alastair@AJBR-W530:~> 


I assume that when Yast method worked this did put the required line in /etc/fstab.
I have added the line as advised. Many thanks.

Am I missing something? I have:-

alastair@AJBR-W530:~> cat /etc/fstab
UUID=36192457-612b-452e-a846-745a83774812  /                       btrfs  defaults                      0  0
UUID=36192457-612b-452e-a846-745a83774812  /var                    btrfs  subvol=/@/var                 0  0
UUID=36192457-612b-452e-a846-745a83774812  /usr/local              btrfs  subvol=/@/usr/local           0  0
UUID=36192457-612b-452e-a846-745a83774812  /tmp                    btrfs  subvol=/@/tmp                 0  0
UUID=36192457-612b-452e-a846-745a83774812  /srv                    btrfs  subvol=/@/srv                 0  0
UUID=36192457-612b-452e-a846-745a83774812  /root                   btrfs  subvol=/@/root                0  0
UUID=36192457-612b-452e-a846-745a83774812  /opt                    btrfs  subvol=/@/opt                 0  0
UUID=28c73f4d-624d-478d-8d3f-3efd343b77b8  /home                   xfs    defaults                      0  0
UUID=36192457-612b-452e-a846-745a83774812  /boot/grub2/x86_64-efi  btrfs  subvol=/@/boot/grub2/x86_64-efi  0  0
UUID=36192457-612b-452e-a846-745a83774812  /boot/grub2/i386-pc     btrfs  subvol=/@/boot/grub2/i386-pc  0  0
192.168.169.130:/Multimedia /home/alastair/NFS_multimedia nfs defaults 0 0
alastair@AJBR-W530:~> 


but alas the mount has not worked.

Where did I go wrong please?

Run


sudo mount -a
mount

and post the output here

alastair@AJBR-W530:~> sudo mount -a
[sudo] password for root: 
Created symlink /run/systemd/system/remote-fs.target.wants/rpc-statd.service → /usr/lib/systemd/system/rpc-statd.service.
alastair@AJBR-W530:~> 


And what does


mount

give now?

Is the nfs service active anyway?

Here it is:-

alastair@AJBR-W530:~> mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,size=7964988k,nr_inodes=1991247,mode=755)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
/dev/sda6 on / type btrfs (rw,relatime,space_cache,subvolid=256,subvol=/@)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=27,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=20709)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
/dev/sda6 on /boot/grub2/x86_64-efi type btrfs (rw,relatime,space_cache,subvolid=264,subvol=/@/boot/grub2/x86_64-efi)
/dev/sda6 on /boot/grub2/i386-pc type btrfs (rw,relatime,space_cache,subvolid=265,subvol=/@/boot/grub2/i386-pc)
/dev/sda6 on /opt type btrfs (rw,relatime,space_cache,subvolid=263,subvol=/@/opt)
/dev/sda6 on /root type btrfs (rw,relatime,space_cache,subvolid=262,subvol=/@/root)
/dev/sda6 on /srv type btrfs (rw,relatime,space_cache,subvolid=261,subvol=/@/srv)
/dev/sda6 on /tmp type btrfs (rw,relatime,space_cache,subvolid=260,subvol=/@/tmp)
/dev/sda6 on /usr/local type btrfs (rw,relatime,space_cache,subvolid=259,subvol=/@/usr/local)
/dev/sda6 on /var type btrfs (rw,relatime,space_cache,subvolid=258,subvol=/@/var)
/dev/sda7 on /home type xfs (rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1595164k,mode=700,uid=1000,gid=100)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
/dev/fuse on /run/user/1000/doc type fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
pcloud on /tmp/.mount_pcloudcqStId type fuse.pcloud (ro,nosuid,nodev,relatime,user_id=1000,group_id=100)
pCloud.fs on /home/alastair/pCloudDrive type fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
192.168.169.130:/Multimedia on /home/alastair/NFS_multimedia type nfs (rw,relatime,vers=3,rsize=32768,wsize=32768,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.169.130,mountvers=3,mountport=30000,mountproto=udp,local_lock=none,addr=192.168.169.130)
alastair@AJBR-W530:~> 


No idea what is happening. After following your instructions and out of interest I looked again and I now see the required mount is working. What should I add to have the mount work without your help/instruction each time?

I think that the systemd service that got activated by ‘mount -a’ was missing. But it’s 1:30AM here, I’m off to bed.

Well, now it is in /etc/fstab. Did you test what happens on a reboot?

And when not, what does YaST > Network Services > NFS Client show now?

Hi Henk,
Rebooting failed to give me the persistent mount.
Following your instruction I went to NFS Client and before I could open it Yast told me to install nfsidmap. This is as before and it does not install and I still get the same error messages.
If I ignore these I can see the mount line in Yast but clearly it has not worked.

I checked this thread and you indeed told something like that, but you never presented us anything of the kind. Except when I missed why you want to keep error messages a secret for us, please show them within their context:, E.g.

zypper in nfsidmap

That won’t work. TW has no nfsidmap, it does have libnfsidmap1 though. Looks like Budgie2 hit a bug. Please report at bugzilla.opensuse.org

Well, posting that would have given everybody a hint about it not existing. Just telling “there is an error” does not say much.

I think my original post is clear and I certainly have tried to report what I found. Perhaps something was lost in translation!
What is strange is that others have not found the same problem. I shall try and report a bug.

If you can post the link to the bugreport, I’ll confirm it, I see the same thing happening.

Hi, I am not too familiar with bug reporting but here is my attempt:-

https://bugzilla.opensuse.org/show_bug.cgi?id=1156356