ubuntu 20.04 nas 연결 - jinwooklim/my-exp GitHub Wiki

유틸 설치

  1. apt install cifs-utils

폴더 만들고 마운트하기

  1. mkdir [마운트할폴더]
  2. sudo mount -t cifs //xxx.xxx.xxx.x/[폴더이름] [마운트할폴더] -o user=[user이름],pass=[PW],rw,
  3. mount error(95) Operation not supported 에러가 난다면, sudo mount -t cifs //xxx.xxx.xxx.x/[폴더이름] [마운트할폴더]-o user=[user이름],pass=[PW],rw,vers=1.0

재부팅 시에도 자동으로 연결하기

  1. vim /etc/fstab

  2. 파일 맨 아래에 적기

    //xxx.xxx.xxx.x/[폴더이름] [마운트할폴더] cifs user=[USER],pass=[PW],rw,vers=1.0 0 0  
    
  3. ubuntu 20.04 에서 뭔가 ... network delay 때문에 안되는 문제가 있는 것 같아서 아래 커맨드로 해결함.

    //xxx.xxx.xxx.x/[폴더이름] [마운트할폴더] cifs vers=1.0,noauto,x-systemd.automount,x-systemd.mount-timeout=30,_netdev,iocharset=utf8,gid=1000,uid=1000,file_mode=0777,dir_mode=0777,user=[USER],pass=[PW] 0 0