fstab stopped mounting

Post Reply
zemerdon
Site Admin
Posts: 310
Joined: Mon Jan 23, 2023 8:13 pm

fstab stopped mounting

Post by zemerdon »

fstab trying to mount before interface up.

enable the following service.

Code: Select all

systemctl enable systemd-networkd-wait-online
fstab now mounts when network is online and before lxc are up, allowing the lxc to mount their respective mp0 without a reboot.

also append the following to fstab entry...

Code: Select all

x-systemd.automount,x-systemd.mount-timeout=30,_netdev,x-systemd.after=network-online.target

Code: Select all

//192.168.1.10/zm_monitor  /media/monitor  cifs  credentials=/home/zemerdon/cifs_cred2,uid=33,gid=33,file_mode=0755,dir_mode=0755,mfsymlinks,x-systemd.automount,x-systemd.mount-timeout=30,_netdev,x-systemd.after=network-online.target 0
Post Reply