Linux下mount掛載區域網Windows共享檔案出現檔名亂碼
阿新 • • 發佈:2020-12-11
技術標籤:Linux
解決Linux下掛載Windows區域網共享出現檔名亂碼。
對於Linux系統和Windows系統共存的區域網,經常需要通過共享來傳輸檔案等。也經常會碰到資料夾和檔名稱出現中文亂碼的問題,導致檔案或資料夾無法開啟。本文提供一個解決思路。
對於已經mount的磁碟,先umount掉。
sudo umount ./windowshare
然後再mount,即可正常使用中文:
sudo mount -t cifs -o username='Administrator',password='××××',iocharset=utf8 //××.××.××.××/share ./windowshare
命令引數解析:
username:使用者名稱
password:密碼
iocharset:字元轉換
//**.**.**.**/share: 被共享的主機ip和資料夾名稱
./windowshare:掛載至Linux的哪個資料夾