Skip to content

Instantly share code, notes, and snippets.

@tkfm-yamaguchi
Created April 10, 2014 00:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tkfm-yamaguchi/10334050 to your computer and use it in GitHub Desktop.
Save tkfm-yamaguchi/10334050 to your computer and use it in GitHub Desktop.
sudo mount -t cifs //<SmbServerName>/share TmpSrv -o username=me,iocharset=utf8,defaults
sudo umount TmpSrv
  • cifs-utils が必要
    • smbfs は obsoleted
  • cifs では codepage オプションがなくなっている
    • kernel: [88450.269004] CIFS: Unknown mount option "codepage=cp932" @ syslog
    • codepage を付けなくても文字化けしなかった. 不思議
  • usernameが正しくないとアカン
  • マウントポイントは相対パスでよかった
    • マウントもアンマウントも
    • 無駄に絶対パスを指定してた…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment