D&C GLug - Home Page

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

Re: [LUG] Merry Christmas All.. automount problem with kernel 4.13 on Mint 18.3

 

On 29/12/17 17:01, Peter Walker wrote:
>> Mount at boot was the behaviour prior to kernel 4.13 and /is/ the desired 
>> behaviour.
> 
> No worries. I was just confused by the automount terminology and thought you were 
> aiming at something like this 
> https://wiki.archlinux.org/index.php/NFS#Mount_using_.2Fetc.2Ffstab_with_systemd

Well, that's definitely what he _should_ be doing but to be fair Mint
might have broken something subtly somewhere, which is kind of the problem.

Julian, can we try doing this the 'proper' systemd way just to test to
see if something else is going wrong there? Backup your fstab and then
modify it to contain the following:

# systemd mount CASSIOPEIA on NAS
192.168.1.3:/volume1/CASSIOPEIA /media/julian/CASSIOPEIA nfs
auto,x-systemd.automount,x-systemd.device-timeout=10 0 0

We'll just do one NFS mount at a time to start with. This'll specify
automatic mount at boot rather than on-demand, hand control to systemd
and specify a maximum wait of 10 seconds in case something does go wrong
during the mount. systemd should automatically take care of the boot
order now it's aware that it's responsible for handling them so we
shouldn't need to set the wait-online.service (but we will if we have to
later).

Unmount any of your NFS shares first, and make systemd aware of the changes:

sudo systemctl daemon-reload

Check the new systemd managed mount-point:

sudo systemctl status /media/julian/CASSIOPEIA

Restart the unit and check again:

sudo systemctl restart /media/julian/CASSIOPEIA
sudo systemctl status /media/julian/CASSIOPEIA

You should see a successfully loaded unit and have a live filesystem
mounted under /media/julian/CASSIOPEIA - check and see. If there is an
issue the status command will tell you what's wrong. If all is well,
reboot and make sure everything works as expected. If not, report back.

Can I also check to make sure you haven't got anything conflicting
lurking around like autofs for example?

dpkg -i | grep autofs

Purge it if you have it installed - unless you specifically know you
need it for something of course.

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