Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: NFS not mounted at boot

  1. #11
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: NFS not mounted at boot

    192.168.1.140:/export/shared/mp3
    shouldn't work. It isn't a valid export.

  2. #12
    Join Date
    Feb 2007
    Beans
    12
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: NFS not mounted at boot

    It shouldn't, but it definitely does.
    Obviously the /mp3 directory exists on a network drive.

    EDIT:
    On my laptop the command sudo mount -a works. I understand it uses all the entries from fstab, but for some reason the same entires on boot don't work.
    Perhaps it's because the network is not ready yet at the time of mounting? But in theory parameter _netdev should solve it (a system waits with mounting until a network is ready).

    EDIT2: Check my boot process and I have services: -.mount, mount-win10.mount, boot-efi.mount and home.mount, then nfs-client.target, then some other services and NetworkManager.service and networkd-dispatcher.service, network.target and network-online.target much later.
    Have a look here: https://svgur.com/s/UVG

    Do you think this may be a problem?


    EDIT3:
    found another similar problem here: https://ubuntuforums.org/showthread.php?t=2450781
    and tried x-systemd.after=network-online.target parameter, but didn't work.
    Also found on other forums that disabling ipv6 may help, but in my case it didn't help too.


    EDIT4: seems like it was a network issue (network not ready). Added a Systemd service with a small delay and mount. 3 sec delay was too short. It was reporting as Network not reachable. Sleep 10 does the job. It mounts NFS share as intended.
    Last edited by kjur; 4 Days Ago at 11:02 PM.

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •