
컴퓨터를 시작한 후 빠르게 로그인 화면이 나타나서 로그인할 수 있었습니다. 하지만 네트워크 인식 속도가 느리고, 30초/1분 후에 네트워크가 '연결'됩니다.
부팅 시 마운트할 네트워크 공유(SMB) 2개를 추가했지만 /etc/fstab
네트워크가 연결될 때까지 마운트를 지연할 수 없습니다. 따라서 부팅 시 마운트를 정의한 후에는 네트워크가 "연결"될 때까지(로그인 화면이 표시되지 않을 때까지) 더 이상 로그인할 수 없습니다.
이 옵션은 작동 하지 않는 _netdev
것 같습니다 . x-systemd.after=network-online.target
두 경우 모두 네트워크가 "연결"되어 세션에 로그인할 수 있을 때까지 공유를 마운트할 때까지 기다려야 합니다. 두 경우 모두 주식이 유효합니다.
콘텐츠 fstab
:
//address/smb_share1 /mnt/share1 cifs credentials=/root/.smbcredentials,uid=1000,gid=1000,x-systemd.after=network-online.target 0 0
//address/smb_share2 /mnt/share2 cifs credentials=/root/.smbcredentials,uid=1000,gid=1000,x-systemd.after=network-online.target 0 0
또는 x-systemd.after=network-online.target
로 교체하세요 _netdev
.
내가 놓치고 있는 부분은 무엇이며, 인터넷에 연결될 때까지 내 컴퓨터에 이 두 공유를 마운트하지 않도록 지시하는 올바른 구문은 무엇입니까?
POP_OS 22.04 LTS를 사용합니다.
답변1
시스템을 이용하실 수 있습니다.automount
마운트는 파일 시스템에 액세스할 때만 트리거됩니다.
//address/smb_share1 /mnt/share1 cifs credentials=/root/.smbcredentials,uid=1000,gid=1000,x-systemd.automount,x-systemd.after=network-online.target 0 0