NAS mount on new installed LM v21 fails

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
dbyy
Level 2
Level 2
Posts: 76
Joined: Wed Jan 19, 2022 3:26 pm

NAS mount on new installed LM v21 fails

Post by dbyy »

Hello,

(I'm hoping the posting is in right forum)

I just installed Mint v21 (over Mint v20.3, means overwrite the old OS).
As before, I mounting a few NAS shared folders.
Same mounting point, same shared folder on the NAS.
On the NAS, nfs version 2,3 and 4 is enabled.
However, the mount is not successful.
The location where the mount is located is empty, no message during the mount.

I'm wondering, what is different between LM v20.3 and LM v21.0 that's causing the different behavior?
Any suggestions?
Any help is much appreciated.

btw., nfs-common is installed.
Last edited by LockBot on Wed May 03, 2023 10:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
If you wanna fishing, come to Ontario, Canada.
dbyy
Level 2
Level 2
Posts: 76
Joined: Wed Jan 19, 2022 3:26 pm

Re: NAS mount on new installed LM v21 fails

Post by dbyy »

I have to add to my posting.

I also installed a few weeks ago LM v 21.0 on a (DELL) tablet, there the mounting works fine with the standard mounting command
mount -t nfs <IP#>:/<sharedfolder <mount point>

I have no clue what the difference could be.
If you wanna fishing, come to Ontario, Canada.
User avatar
AndyMH
Level 21
Level 21
Posts: 13743
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: NAS mount on new installed LM v21 fails

Post by AndyMH »

What errors do you get with:

Code: Select all

mount -v -t nfs <IP#>:/<sharedfolder <mount point>
note the addition of -v to get verbose output.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
dbyy
Level 2
Level 2
Posts: 76
Joined: Wed Jan 19, 2022 3:26 pm

Re: NAS mount on new installed LM v21 fails

Post by dbyy »

Code: Select all

@Ryzen3-3200:~$ sudo mount -v -t nfs <NAS IP#>:/<shared folder> <mount point>
[sudo] password for guy1:        
mount.nfs: timeout set for Thu Nov  3 19:04:09 2022
mount.nfs: trying text-based options 'vers=4.2,addr=<NAS IP#>,clientaddr=<IP#>'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'vers=4,minorversion=1,addr=<NAS IP#>,clientaddr=<IP#>'
mount.nfs: mount(2): Device or resource busy
That's the output
If you wanna fishing, come to Ontario, Canada.
dbyy
Level 2
Level 2
Posts: 76
Joined: Wed Jan 19, 2022 3:26 pm

Re: NAS mount on new installed LM v21 fails

Post by dbyy »

What I just noticed...
when I'm executing the mount command (with the messages listed before) than I can see at the mount point all NAS shared folder, however they are empty.

Have no explanation for that.
Any ideas?

Thanks
If you wanna fishing, come to Ontario, Canada.
User avatar
AndyMH
Level 21
Level 21
Posts: 13743
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: NAS mount on new installed LM v21 fails

Post by AndyMH »

Try forcing the version with

Code: Select all

sudo mount -v -t nfs <NAS IP#>:/<shared folder> <mount point> -o vers=3
or even vers=2, see if it makes any difference.

Your mount points are empty because nothing is mounted.

Not an expert with nfs, know just enough to get it working with my synology NAS, then reverted back to cifs.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
dbyy
Level 2
Level 2
Posts: 76
Joined: Wed Jan 19, 2022 3:26 pm

Re: NAS mount on new installed LM v21 fails

Post by dbyy »

Another findings..
I created a test installation of LM 20.3 - Una to compare the count commands and behavior compared to LM 21.0 - Vanessa.
The same mounting commands (in fstab) resulting in the proper mount of my NAS shared folders. In LM v21.0 the mounting location(s) is/are empty.
Since the 'mounting' happening through fstab I don't see any messages (are there some/somehere?)

I have to mention, no changes has been made on the NAS between the launch of this two instances.

That let me conclude, something is different in LM 21 compared to LM 20.
Is LM v21 the nfs protocol handling differently than v20.3?

Maybe some can shed some light on this.

TIA
If you wanna fishing, come to Ontario, Canada.
dbyy
Level 2
Level 2
Posts: 76
Joined: Wed Jan 19, 2022 3:26 pm

Re: NAS mount on new installed LM v21 fails

Post by dbyy »

This issue came up again.
I had to re-install LM v 21.1and using the same mount point as in my LM 20.3 partition with the same shared folders from QNAP NAS.

I use the same mount commands from the fstab file of v 20.3 in the new version (LM v 21.1).
However Linux Mint 21.1 will not mount the shared folders from the NAS.
The module nfs-common is installed

Same environment, same commands will not work in LM 21.1 what was working on LM 20.3.
I'm puzzled.
Does anyone perhaps knows the answer why, and what the solution could be?
Any suggestions are much appreciated.
If you wanna fishing, come to Ontario, Canada.
dbyy
Level 2
Level 2
Posts: 76
Joined: Wed Jan 19, 2022 3:26 pm

Re: NAS mount on new installed LM v21 fails

Post by dbyy »

dbyy wrote: Sat Mar 25, 2023 12:22 pm This issue came up again.
I had to re-install LM v 21.1and using the same mount point as in my LM 20.3 partition with the same shared folders from QNAP NAS.

I use the same mount commands from the fstab file of v 20.3 in the new version (LM v 21.1).
However Linux Mint 21.1 will not mount the shared folders from the NAS.
The module nfs-common is installed

Same environment, same commands will not work in LM 21.1 what was working on LM 20.3.
I'm puzzled.
Does anyone perhaps knows the answer why, and what the solution could be?
Any suggestions are much appreciated.
After some additional testing I found out that it works on my QNAP NAS with nfs4 enabled to mount a share with

Code: Select all

sudo mount -v -t nfs <serverIP>:/<sharedfolder> <mountpoint>      -o vers=4
and a mount in fstab with

Code: Select all

<serverIP>:/<sharedfolder>	<mountpoint>    nfs nfsvers=4       0   0
I'm sharing this here so that other folks saving some time.
Cheers
If you wanna fishing, come to Ontario, Canada.
User avatar
AndyMH
Level 21
Level 21
Posts: 13743
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: NAS mount on new installed LM v21 fails

Post by AndyMH »

You might want to add nofail to the options. It will stop mint hanging for 90 seconds on boot if the NAS isn't present.

Purely out of interest, when you browse the share who is the owner? When I got nfs working with my synology NAS there were a limited number of mapping options. With no mapping all the files on the NAS were owned by 1027 (first user created on the NAS), with mapping "squashed" to root, they were showing up as 824 (root user on the NAS). ID's are examples, point was I (in mint) wasn't the owner. That's when I reverted to cifs.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
dbyy
Level 2
Level 2
Posts: 76
Joined: Wed Jan 19, 2022 3:26 pm

Re: NAS mount on new installed LM v21 fails

Post by dbyy »

I created an user group on the NAS which had privilege to access the shared folders on the NAS.
Than the user on the client was in the same group to access the NAS. That worked straight with Linux Mint v20.3 but not with LM v21.
If you wanna fishing, come to Ontario, Canada.
Locked

Return to “Installation & Boot”