Results 1 to 4 of 4

Thread: mount nfs after wifi connects

Threaded View

  1. #1
    Join Date
    Sep 2008
    Location
    USA - NH
    Beans
    66
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    mount nfs after wifi connects

    Hello,

    Is it possible to mount network shares automatically (/etc/fstab) after the wifi connects? At present it appears that the system attempts to mount prior to wifi connection.

    At present I can open a terminal and enter "sudo mount -a" and then my network shares will be available. The line in /etc/stab is:
    Code:
    192.168.23.10:/volume1/photo    /mnt/photo    nfs    auto,_netdev    0    0
    A look at the /var/log/syslog and it appears that I connect to my wifi (I lookup the ssid which is TDS1704) on line 2250 but the nfs mount failed on line 1984

    Code:
    1984 Dec 22 08:52:02 mojo mount[803]: mount.nfs: Network is unreachable
    1985 Dec 22 08:52:02 mojo systemd[1]: mnt-jesse.mount: Mount process exited, code=exited, status=32/n/a
    1986 Dec 22 08:52:02 mojo mount[798]: mount.nfs: Network is unreachable
    
    2250 Dec 22 08:52:08 mojo NetworkManager[512]: <info>  [1703253128.1894] policy: auto-activating connection 'TDS1704' (636b3713-91d0-45f4-919e-51e5b50fee10)
    I searched for a solution and I came across a number of instructions on how to setup mount a network drive, how to mount a network drive using nfs...

    I found this which looks like it would work... but I wonder if it is the accepted solution or if there is a better solution.
    https://ubuntuforums.org/showthread....=wifi%2C+mount

    Thank you
    Last edited by jessel; December 22nd, 2023 at 05:25 PM. Reason: to fix the link that i referenced

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
  •