Quantcast
Viewing all articles
Browse latest Browse all 5199

Troubleshooting • Re: Network mount not surviving reboot

Have a look at making a systemd systemctl mount file.

My /etc/systemd/system/home.mount looks like:

Code:

[Unit]Description=Mount home directoryRequires=rpcbind.service network-online.targetWants=networking.service## Replaces this line in fstab#10.1.1.230:/i-data/3a24d204/nfs/home   /home  nfs defaults,noatime,x-systemd.automount 0 0#[Mount]What=10.1.1.230:/i-data/3a24d204/nfs/homeWhere=/homeType=nfsOptions=defaultsTimeoutSec=30[Install]WantedBy=multi-user.target
It needs a special name if the mount point contains slash characters. You have to swap - for slash /.
Hey, thanks for the reply. what do I do with fstab then?

Statistics: Posted by creature40592 — Tue Dec 17, 2024 8:48 pm



Viewing all articles
Browse latest Browse all 5199

Trending Articles