D&C GLug - Home Page

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

Re: [LUG] systemd and NFS shares

 

What does
sudo mount -t nfs 192.168.1.2:/volume1/DEMETER /mnt
ls /mnt

give you? If you can't see the data after this then I would blame your NAS :)
Do you have other computers mounting the directories successfully?
Are you getting any error messages in the logs?
Apologies if the formatting is messed up as I am sending this from my mobile.

Cheers
Pete




On 28 Aug 2021 14:43, Julian Hall <linux@xxxxxxxxxxxx> 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

--
“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


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