• Network mounts in /etc/fstab causing service ordering cycle

    From tuxifan@posteo.de@21:1/5 to All on Fri Apr 25 20:00:01 2025
    Hi!

    I have added a few lines to /ets/fstab like this:

    //u271407.your-storagebox.de/backup /mnt/hetzner cifs iocharset=utf8,rw,user=u271407,pass=******,uid=1000,gid=1000,cache=loose 0 3

    //192.168.0.4/Root /mnt/rp64-root cifs iocharset=utf8,rw,user=nils,pass=******,uid=1000,gid=1000,cache=loose 0 3

    192.168.0.4:/mnt/hdd /mnt/hdd nfs defaults 0 3

    /mnt/hdd/Programme /home/nils/Programs none bind 0 4

    However, this is causing a service ordering cycle between "local-fs.target"
    and "network-online.target" which in turn causes services to be missing after bootup unpredictably. Usually that causes XWayland to fail as well as NetworkManager.

    How do I get out of this situation? What could I be doing wrong?

    Thanks in advance

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to tuxifan@posteo.de on Fri Apr 25 20:10:02 2025
    On Fri, Apr 25, 2025 at 17:58:20 +0000, tuxifan@posteo.de wrote:
    I have added a few lines to /ets/fstab like this:

    //u271407.your-storagebox.de/backup /mnt/hetzner cifs iocharset=utf8,rw,user=u271407,pass=******,uid=1000,gid=1000,cache=loose 0 3

    You're missing the _netdev flag in your options. I'd start with
    that. It's definitely needed for NFS mounts, and I'm guessing you'll
    need it for your CIFS mounts also.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Detlef Vollmann@21:1/5 to tuxifan@posteo.de on Fri Apr 25 21:30:01 2025
    On 4/25/25 19:58, tuxifan@posteo.de wrote:

    192.168.0.4:/mnt/hdd /mnt/hdd nfs defaults 0 3

    /mnt/hdd/Programme /home/nils/Programs none bind 0 4

    This is looking suspicious: mounting a local directory
    on top of a network mount.

    Detlef

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From tuxifan@posteo.de@21:1/5 to Wooledge on Sat Apr 26 00:40:01 2025
    On Friday, April 25, 2025 8:03:50 PM Central European Summer Time Greg Wooledge wrote:
    You're missing the _netdev flag in your options. I'd start with
    that. It's definitely needed for NFS mounts, and I'm guessing you'll
    need it for your CIFS mounts also.

    Hi! Thanks for the idea. I have added _netdev, however this isn't changing the startup behavior :-(

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From tuxifan@posteo.de@21:1/5 to Vollmann on Sat Apr 26 00:40:01 2025
    On Friday, April 25, 2025 9:28:49 PM Central European Summer Time Detlef Vollmann wrote:
    On 4/25/25 19:58, tuxifan@posteo.de wrote:
    192.168.0.4:/mnt/hdd /mnt/hdd nfs defaults 0 3

    /mnt/hdd/Programme /home/nils/Programs none bind 0 4

    This is looking suspicious: mounting a local directory
    on top of a network mount.

    Nope, this simply binds a network location onto a local directory. Which... shouldn't? be a problem?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Detlef Vollmann@21:1/5 to tuxifan@posteo.de on Sat Apr 26 15:50:01 2025
    On 4/26/25 00:35, tuxifan@posteo.de wrote:
    On Friday, April 25, 2025 9:28:49 PM Central European Summer Time Detlef Vollmann wrote:
    On 4/25/25 19:58, tuxifan@posteo.de wrote:
    192.168.0.4:/mnt/hdd /mnt/hdd nfs defaults 0 3

    /mnt/hdd/Programme /home/nils/Programs none bind 0 4

    This is looking suspicious: mounting a local directory
    on top of a network mount.

    Nope, this simply binds a network location onto a local directory.

    You're right.

    Which...
    shouldn't? be a problem?

    If mount considers a 'bind' mount a local mount, it could cause exactly
    the circle you're seeing.

    Detlef

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From tuxifan@posteo.de@21:1/5 to Vollmann on Mon Apr 28 14:10:01 2025
    On Saturday, April 26, 2025 3:40:31 PM Central European Summer Time Detlef Vollmann wrote:
    If mount considers a 'bind' mount a local mount, it could cause exactly
    the circle you're seeing.

    Detlef

    Ohhhhh!! Removing that totally solved the issue!

    Thank you so much!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)