.png)
fstab에서 다음을 사용하여 SAMBA로 마운트했습니다.
//source/files /mnt/files cifs user,_netdev,cache=none,credentials=/usr/src/access.smb 0 0
그리고 다음과 같은 mount --bind 라인이 있습니다:
/mnt/files /var/www/html/data none defaults,bind 0 0
그러나 두 번째 마운트가 작동하지 않습니다. 컴퓨터를 재부팅하면 첫 번째 마운트만 작동합니다. 두 번째 것을 수동으로 마운트해야 합니다(바인드 사용).
제발, 누군가 나를 도와줄 수 있나요? Unix Stack Exchange에서 이 게시물을 보았지만 이해하지 못했습니다.https://unix.stackexchange.com/questions/216287/how-do-i-set-up-bind-mounts-on-startup-corrightly-in-the-systemd-world
미리 감사드립니다.
답변1
이 같은:
/mnt/files /var/www/html/data none x-systemd.requires=/mnt/files,x-systemd.automount,bind 0 0