You are not logged in.

#1 2026-01-16 17:31:36

mt_arch_user
Member
From: Montana, USA
Registered: 2023-01-17
Posts: 105

SOLVED - NFS not working after update

I'm running an freshly updated version of Arch.
After two weeks of doing updates, NFS is not working properly for me.  If just doesn't connect.

I have several files shown in my /etc/fstab

# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
# /dev/nvme0n1p2
UUID=fc161165-94ec-4863-b741-3b5846de6865   /                           ext4       rw,relatime                               0  1

# /dev/nvme0n1p1
UUID=BF89-8B45          /boot           vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro     0 2

# /dev/nvme0n1p3
UUID=06fb589c-7ddd-4544-8124-f6fcd3ecb4b0  /home                        ext4       rw,relatime                               0  2

# These are on the extra internal drive in ASU-X870E
LABEL=Modelrailroad                        /home/bart/Modelrailroad     ext4       rw,noauto,nofail,user,data=ordered      0  0
LABEL=Development                          /home/bart/Development       ext4       rw,noauto,nofail,user,exec,data=ordered 0  0
LABEL=Pictures                             /home/bart/Pictures          ext4       rw,noauto,nofail,user,data=ordered      0  0
LABEL=Videos                               /home/bart/Videos            ext4       rw,noauto,nofail,user,data=ordered      0  0

# This is just in case I need to get to Vi's Computer
MSI-6400:/home/vinetta                     /mnt/vinetta                 nfs        rw,noauto,nofail,user             0  0

# This is the drive on ASU-AIO
ASU-AIO:/home/bart                         /mnt/allinone                nfs        rw,noauto,nofail,user             0  0

# This is the drive on the Dell Server
# DEL-OSS:/home/common                        /mnt/DELL-Server            nfs        rw,noauto,nofail,user                   0  0
DEL-OSS:/                                   /mnt/DELL-Server            nfs        rw,noauto,nofail,user             0  0

# These are the directories on the Synology NAS
SYN-1520:/volume1/Vi                        /mnt/NAS-Vi                 nfs        rw,noauto,nofail,user                     0  0
SYN-1520:/volume1/Common                    /mnt/NAS-Common             nfs        rw,noauto,nofail,user                   0  0
SYN-1520:/volume1/Bart                      /mnt/NAS-Bart               nfs        rw,noauto,nofail,user                   0  0
SYN-1520:/volume1/Backups                   /mnt/NAS-Backup             nfs        rw,noauto,nofail,user                   0  0
SYN-1520:/volume1/Backup/Server             /mnt/NAS-Backup-Server      nfs        rw,noauto,nofail,user                   0  0

I have a bash script that comes up while I'm booting that allows me to see these files. It shows me the the status of them.  It always worked before.
Now, it doesn't!
I have looked at the section of the help page for instructions, but found nothing.

Can someone please help me?
Bart

Last edited by mt_arch_user (2026-01-21 19:00:52)

Offline

#2 2026-01-17 06:46:44

-thc
Member
Registered: 2017-03-15
Posts: 1,086

Re: SOLVED - NFS not working after update

mt_arch_user wrote:

I have a bash script that comes up while I'm booting that allows me to see these files. It shows me the the status of them.

Are you aware that having those fstab entries flagged "noauto" is meant to not mount them at boot time? While booting your bash script has to mount them to show you their status - which is somewhat countering the flag "noauto". Is this intentionally?

Nevertheless we need to look at the error message first. Please disable your bash script temporarily and mount one of the failing mount points manually:

mount -v /mnt/NAS-Common

Offline

#3 2026-01-17 09:11:28

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 72,938

Offline

#4 2026-01-18 19:16:02

mt_arch_user
Member
From: Montana, USA
Registered: 2023-01-17
Posts: 105

Re: SOLVED - NFS not working after update

I'm sorry.  I didn't make myself clear.  I just recently had a stroke and my mind does not work properly.

What my script does is to not make the drives mount at boot, but pops up a window that lets me mount those drives I want by pressing a key and show me whether or not they have been mounted.  This system has worked for me for a couple of years but has partually stopped working.  It no longer wants to mount any drives that are not on my home system!  This problem has occurred after I did sudo pacman -Syu.  I have been unable to determine what is wrong, that's what I'm here.

Here's a copy of the script file:

#! /bin/bash

# ##################################################################################
# DriveMount.sh  by Bart Hollis                                                    #
# A copy of this file should reside in ~/bin                                       #
# A companion file named DriveMount.desktop should reside in ~/.config/autostart   #
# I was experiencing problems with drives not mounting at boot,  So I created      #
# this script to be run after the boot process has been finished and the           #
# panel is up and running.                                                         #
#                                                                                  #
# in /etc/fstab, change the line for each entry that exists on a remote machine    #
# by adding noauto and nofail to the parameters.                                   #
#                                                                                  #
# Near the bottom of this script are the lines that determine which drives         #
# are to be mounted.  This script goes down this list of drives and calls          #
# the MountIt function for each one.                                               #
# ##################################################################################

# Set display colors
red="\033[31m"
yellow="\033[33m"
green="\033[0m"

printf "$red This Process Will Mount Additional Hard Drives$green\n\n"
printf " Press $red<Enter>$green to proceed or $red<Esc>$green to Abort\n\n" 

cntr=0
doit=0
SELECT=""


while [ true ] ; do
    # I just had to add this bit of foolishness
    if [ "$cntr" -gt 5 ] ; then
        printf "\n\n$red It's obvious you either can't read or don't know how to use a keyboard.\n"
        printf "\tI don't feel safe giving you access to the drives.\n"
        printf "\t\tThis process is being aborted!$green\n\n"
        doit=0
        break
    fi

    read -s -t 40 -N 1 SELECT  # After 30 seconds will default to mount drives.

    if [[ $SELECT == $'\x0a' ]] || [[ ${#SELECT} == 0 ]]; then
        doit=1
        break
    elif [[ $SELECT == $'\x1b' ]] ; then
        printf "$red Process Aborted!$green\n\n"
        doit=0
        break
    else
        printf " I Said Press $red<Enter>$green to proceed or $red<Esc>$green to Abort\n"
        (( cntr += 1 ))
        continue
    fi
done

MountIt() {
    len=${#1}
    len="$((25 - len))"
    i=0
    pad=" "
    while [ $i -lt $len ] ; do
        pad=$pad"."
        (( i += 1 ))
    done

    if mountpoint -q $1 ; then
        printf "$yellow$1$pad is already mounted$green\n"
    else
        if mount $1 > NUL 2>%1 ; then
            printf "$1$pad has been mounted\n"
        else
            printf "$red ERROR mounting $1$green\n"
        fi
    fi
}

# This is the list of drives to be mounted by this process.
if [ $doit == 1 ] ; then
    MountIt "/home/bart/Videos"
    MountIt "/home/bart/Pictures"
    MountIt "/home/bart/Development"
    MountIt "/home/bart/Modelrailroad"
    MountIt "/mnt/DELL-Server"
    MountIt "/mnt/NAS-Bart"
    MountIt "/mnt/NAS-Common"
    MountIt "/mnt/NAS-Vi"
fi

printf "\nPress a key to close this window\n"
read -s -n 1 REPLY
exit 0

Last edited by mt_arch_user (2026-01-18 19:31:18)

Offline

#5 2026-01-18 20:44:06

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 72,938

Re: SOLVED - NFS not working after update

You don't have to explain yourself, but I hope you're doing better (the news is btw. real…)

So what happens when you run the script?
MountIt() has some debug output - do you get any of that?
You might also avoid redirecting the mount output to get error messages from it for more details.

Respectively, can you manually "sudo mount /mnt/DELL-Server" ?

(Fyi, there're some questionable stanzas in that script - when this is done and you're ready for some brain jogging we can clean that up in a different thread, but "if mount $1 > NUL 2>%1 ; then" means to be "if mount $1 > /dev/null 2>&1 ; then")

Offline

#6 2026-01-19 17:19:23

mt_arch_user
Member
From: Montana, USA
Registered: 2023-01-17
Posts: 105

Re: SOLVED - NFS not working after update

When I run the script, it get the correct output from it for the first few entries but I don't get it from the last few entries.

When I try to get them from the command line I get an error message that they can't be mounted.

EDIT:
Nope, that's not right.  I get the expected answer form the first few lines, but I get an error message from the last few lines.

Last edited by mt_arch_user (2026-01-19 17:34:37)

Offline

#7 2026-01-19 19:47:14

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 72,938

Re: SOLVED - NFS not working after update

Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855
What exact error message do you get?

Offline

#8 2026-01-19 22:13:54

mt_arch_user
Member
From: Montana, USA
Registered: 2023-01-17
Posts: 105

Re: SOLVED - NFS not working after update

Sorry,  I get a simple

ERROR mounting /mnt/NAS-Bart
ERROR mounting /mnt/NAS-Common
ERROR mounting /mnt/NAS-VI

which is what I put into to script.

If I open a command prompt and type:

 mount /mnt/NAS-Bart

I get

 mount.nfs: access denied by server while mounting SYN-1520:/volume1/Bart

Last edited by mt_arch_user (2026-01-19 22:19:10)

Offline

#9 2026-01-19 22:21:35

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 72,938

Re: SOLVED - NFS not working after update

Missing exports or the wrong protocol version, https://unix.stackexchange.com/question … u-machines

SYN-1520 is a synology NAS?
Did you run updates there as well?
Did you try to reboot it?
https://man.archlinux.org/man/showmount.8

showmount -e SYN-1520
nmap SYN-1520

Offline

#10 2026-01-19 23:58:05

mt_arch_user
Member
From: Montana, USA
Registered: 2023-01-17
Posts: 105

Re: SOLVED - NFS not working after update

SYN-1520 is a synology NAS?

Yes


Did you run updates there as well?

No



Did you try to reboot it?

Yes

Offline

#11 2026-01-20 07:14:56

-thc
Member
Registered: 2017-03-15
Posts: 1,086

Re: SOLVED - NFS not working after update

There is a curious quirk between the NFS components of Arch and DSM 7.x (NAS OS): Arch tries to use NFS version 4.1 (which DSM 7.x supports) and fails - try limiting the NAS to NFS version 4.0.

Offline

#12 2026-01-21 19:03:11

mt_arch_user
Member
From: Montana, USA
Registered: 2023-01-17
Posts: 105

Re: SOLVED - NFS not working after update

I have the problem solved.

I had the network cable plugged into the wrong ip port on this machine!

Thanks to all who helped me with this problem.

Bart

Offline

Board footer

Powered by FluxBB