
x-systemd.automount 항목이 /etc/fstab에서 수정된 경우 systemd가 항목을 다시 분석하도록 하려면 어떻게 해야 합니까?
답변1
재부팅하지 않고 systemd가 /etc/fstab 자동 마운트를 다시 구문 분석하도록 하는 방법에 대한 명확한 문서를 찾을 수 없습니다.
systemctl daemon-reload
/run/systemd/generator에서 단위 파일을 재생성하지만 새 자동 마운트를 시작하거나 fstab에서 제거된 파일을 중지하지 않습니다.systemctl start newmount.automount
마운트를 시작합니다. 확장이 지정되지 않은 경우 systemd는 .service를 가정하므로 .automount 확장이 필요합니다.systemctl stop oldmount.automount
fstab에서 더 이상 마운트를 제거하지 않습니다.systemctl reset-failed
이전에 실패한 제거 마운트가 상태 메시지에 표시되는 것을 중지합니다.