[ Date Index ]
[ Thread Index ]
[ <= Previous by date /
thread ]
[ Next by date /
thread => ]
Re: [LUG] systemd and NFS shares
- To: list@xxxxxxxxxxxxx
- Subject: Re: [LUG] systemd and NFS shares
- From: comrade meowski <mr.meowski@xxxxxxxx>
- Date: Sat, 28 Aug 2021 16:43:46 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XUAJnqFgXrnOFbTDLdYoQC58a836iSH1xYL7QZqPc20=; b=bkWxPRLvT7YELuhbZ+GczrJIEOALw+FYEae+7ZVfEyQr+dI3UKIorGl4H0ftCnBplv3bOvkwLpjX2TVNC2SbqcvPAsTlyIgoNislbM0hV3ceLRFrZF90sQm04YfEXNKQftrPqpjvnQhs1WAkVYEuUXe7Qbz3vuXN9lnW4lKmBrfvFEXkUsuXhsBkv0YddftIPcmAzqXrA0/F8Qux6m5y2CTreJpJ1OcYFgx+4iD3LkHrJdr29aKQ6/4+Xyj/wOww3Eaacr3fIMtHoBAL5K9jrDjHxKWwsSestUo+7yF3pwxS7iq0gCLZb/0T5Fl4qw6oE2xhxRQWLdGjgvx5o8BmGw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ET9nvnCOnZS3DmxWrD22kYG19gWFvKJfB47WefjioAcSJzFdGCczsKK/F85xy7bizOCtbSXXk3AOvmz8yS41eXA3/np23wPHK+xL1JIi69lUti08gzbx8mfioVmKpUSpk5Q9cy+DtQsPQ9l8rFnmw+lsQEZb24ToI/3QBDYNQzJzEQePIBBDuVMh9526nU0hJKDa++Be3NaER6O2+sgL/omwXJCDNIQlyIAvOsDPBIysO5NjTBaVk+ygWMnCY0QXha2fCveLq9GEkPHidknG7pFWq9zfP+55Et0wjBso9XauKZxDWbq2UQPaf7oFEHIGp/vYKBgE0ZkUQMaSaDrJvQ==
- Content-language: en-GB
- Delivered-to: dclug@xxxxxxxxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dcglug.org.uk; s=1618045561; h=Sender:Content-Type: Content-Transfer-Encoding:Reply-To:List-Subscribe:List-Help:List-Post: List-Unsubscribe:List-Id:Subject:MIME-Version:In-Reply-To:From:References:To: Date:Message-ID:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner:List-Archive; bh=QJccM1KugD6qhltWWGtsuKu8f2H5r7q21j7u11CyY8s=; b=SWC9jzLW6iyeNIzueBMRs+rMI ow5pchDfsQq8S4q+NdkniV0pHV+/WFSLST37IZqvepovFnStXxf/7XNUiwMr8rqtE2wJR6CgxJ4Rt 5GW5AtwvQ7egf7ZKxraLJXx6yBGZ3a4+hF7hhvM2V4kN4TFFlGyTCW/xsRgAdlstwDbNQ=;
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XUAJnqFgXrnOFbTDLdYoQC58a836iSH1xYL7QZqPc20=; b=LeoxhY8EcF+8/zia3s4qXclOKUdKEYSklUNZfR+pYfHU9wj47y9BnKnKT0yZcRVC2IAjQd7NvTCE7E0wfZ/mGNdDCnqpS47S87XBkC6/RNPCfLYW6l6YwXBhlJ0AsJdBaaEMqeU7ms5H4qQljX5+NsrMpDteP7uZaCe64MumVcj1Wn7j61jCpQ9G4f5slGYl9hwh9cUaiUru/YBiRv2exvwSsiT48SirnmTDRh/Q5uAg8Ye7vT9vWkMNa9zwWInYt7PS6J3GK/W+moazhfT0EcaBIUJY8wOYwmPS32AZTAueCHJK+NWP1KRxEjmuovWdHoIRE1BU5Kp1s2D7mPBW/A==
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.
Hope you're feeling better after getting back out of hospital chief.
You and NFS shares between that NAS and your Mint PC have a loooooong
history don't they? We seem to have done this several times before at
this point...
Delete ALL of the old crap - get rid of the weird .mount and .automount
files, clean fstab and check through your systemd units to find and
remove any old references.
Add this as a one-liner for each share you want to add to /etc/fstab:
192.168.1.2:/NFSSHARE /mountpoint/on/client nfs
_netdev,noauto,x-systemd.automount,x-systemd.mount-timeout=10,timeo=14,x-systemd.idle-timeout=1min
0 0
Then either reboot or run:
sudo systemctl daemon-reload
sudo systemctl restart remote-fs.target
That'll sort you out and provide on-access instant mounting of the NFS
share(s). If you insist on having desktop icon shortcuts to the shared
drives then fair enough - get rid of whatever is there now and issue per
share:
ln -s /mountpoint/on/client /home/julian/Desktop/
That will give you an old fashioned symbolic link to the shares and
clicking on them will trigger the automount behaviour through the fstab
entry which seems to be what you want.
It is a bit weird that after just a short period sitting your PC's
existing mount setup had stopped working - did you immediately run a big
fat apt upgrade on it perhaps and update a ton of software once you
started using it again? Maybe in those months of software upgrades there
was a systemd upgrade or something that retired the mount behaviour you
were using... ¯\_(ツ)_/¯
--
The Mailing List for the Devon & Cornwall LUG
https://mailman.dcglug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq