You are not logged in.

#1 2017-12-19 14:33:22

jratliff5942
Member
Registered: 2017-12-19
Posts: 2

[solved] NFS share doesn't auto-mount on boot

I have an NFS share which doesn't auto mount on boot. It's in fstab, and it works if I mount it manually after boot, but the systemd process fails every time on boot.


The error messages in dmesg aren't that helpful.

'Failed to mount /mnt/freenas'
'Dependency failed for Remote File System'
'mnt-freenas.mount: Failed with result 'exit-code'

My guess is that the network wasn't up when it tried to mount it.

What can I do to fix this?

Thanks.

Last edited by jratliff5942 (2017-12-19 15:00:32)

Offline

#2 2017-12-19 14:46:07

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: [solved] NFS share doesn't auto-mount on boot

What is in your fstab?  Which of these options have you already tried?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2017-12-19 14:59:54

jratliff5942
Member
Registered: 2017-12-19
Posts: 2

Re: [solved] NFS share doesn't auto-mount on boot

Thanks. I read something about the NetworkManager-wait-online.service before, but it was talking about problems with dismounting NFS on shutdown, and didn't seem relevant. This is the solution, though.

sudo systemctl enable NetworkManager-wait-online.service

Offline

Board footer

Powered by FluxBB