mount.cifs 오류(2): 접두사 경로를 사용할 때 해당 파일이나 디렉터리가 없습니다.

mount.cifs 오류(2): 접두사 경로를 사용할 때 해당 파일이나 디렉터리가 없습니다.

나는 다음 명령을 시도했습니다.

mount -t cifs //server/share/directory /mnt/directory -o credentials=/path/to/cifs.credentials --verbose

응답은 다음과 같습니다.

mount.cifs kernel mount options: ip=<IP of server>,unc=\\server \share,user=<username>,prefixpath=directory,pass=********
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

그러나 경로 앞에 접두사를 붙이지 않고 동일한 명령을 시도하면 다음과 같습니다.

mount -t cifs //server/share /mnt/directory -o credentials=/path/to/cifs.credentials --verbose

작동하며 /mnt/directory/directory에 액세스할 수 있습니다.

옵션에 접두사 경로를 명시적으로 지정하면 다음과 같은 동일한 오류가 발생합니다.

mount -t cifs //server/share /mnt/directory -o credentials=/path/to/cifs.credentials,prefixpath=directory --verbose

추가 정보:

  • 다음을 사용하여 원하는 경로에 연결할 수 있습니다.smbclient //server/share -U username -W domain -D directory
  • .cifs 버전 설치: 5.5
  • 데비안 커널 3.2.0-4-amd64
  • Debian 커널 2.6.32-5-amd64에서 mount.cifs 버전 4.5를 사용하여 다른 컴퓨터에 연결할 수 있습니다.

접두사 경로가 문제를 일으키는 것 같은 이유에 대한 아이디어가 있습니까? 최근에도 동일한 접근 방식이 작동하고 있습니다. Linux 측의 패키지 업데이트나 Windows 업데이트가 새로운 동작의 원인인 것으로 의심됩니다.

답변1

마침내 NetApp에서 작동하는 이 문제에 대한 해결 방법을 찾았습니다. DFS가 필요하지 않은 경우 nodfs이 옵션으로 설치해 보세요.

mount -t cifs //server/share/directory /mnt/directory -ocredentials=/path/to/cifs.credentials,nodfs

답변2

mount error(2): No such file or directoryNetApp SAN을 설치할 때도 이 오류가 발생했습니다.

nodfs마운트 옵션을 추가하면 작동합니다. 그런데 keyutils패키지를 잃어버렸어요. 설치 후 nodfs 없이 마운트가 예상대로 작동합니다.

우분투에서:

sudo apt install keyutils

관련 정보