D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] systemd and NFS shares

 

On 28/08/2021 14:43, Julian Hall wrote:
Hi All,

After several months in hospital - having simply turned my PC off when I last used it - I had the expectation that it would work when i powered it back up. After all the PC when off shouldn't care if the next time it is turned on is a minute or a month later. The NAS shares however refuse to mount properly.

The system as it stands is Mint 19.3 running kernel 5.4.0-81-generic and has a static IP 192.168.1.3

The server is a Synology NAS with a static IP 192.168.1.2.

Previously I had the following set-up. It probably sounds a tad convoluted but in behaviour it did what I wanted. Taking one share DEMETER as an example:

A mount point of /media/julian/DEMETER was created. A .mount file - media-julian-DEMETER.mount - pointed at that location and told to share 192.168.1.2:/volume1/DEMETER to that location. Then a .automount file named media-julian-DEMETER.automount triggered the .mount file on first access. Finally I placed a link to the mount point on the desktop. Thus a click on the desktop icon was the first access, that triggered the .automount, then the .mount, that accessed the NAS, and from my POV one click on the desktop icon showed me the share content. The .mount and .automount files are saved in /etc/systemd/system - they're also saved in /etc/systemd as frankly I've been doing this so long I can't remember which is right.

Now it refuses point blank to mount as it used to. The only way it will mount is if I load the File Manager and open the mount point as Root. Then I can see the share content.

I've tried the mount and automount files - unchanged - and they look OK. I also tried autofs and cannot get that to work even though it looks right. Also I tried in the fstab.

If I mount the share in the CLI as root or as my normal user using the -t option it mounts - allegedly at least it says it has - but a click on the mount point shows nothing.

Help please as I am out of ideas.

Kind regards,

Julian

Still not working. The latest is that the fstab has the correct line, Mint appears to know /what/ to mount and /where/ but just won't do it unless I mount the NFS share as Root. Then it complains about me being a different user when trying to access the files.

Is there a file / folder either in / or in /home which identifies the current user to a remote share / server? Could such a file be telling the server I'm someone else, so won't mount? If so could that file be corrupt as I have backups of / and /home before all this began.

Julian

--
“The great tragedy of Science — the slaying of a beautiful hypothesis by an ugly 
fact.”

― Thomas Henry Huxley


--
The Mailing List for the Devon & Cornwall LUG
https://mailman.dcglug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq