Ubuntu解决Windows共享(SMB、Samba)乱码问题

首先 vi /etc/fstab
在最后加上这一句

//xxx.xxx.xxx.xxx/共享 /media/smb smbfs defaults,username=用户名,password=密码,iocharset=utf8,codepage=cp936,uid=0, dmask=777,fmask=777,gid=46 0 1

关键是 CodePage 的赋值要修改

或者使用下面的方法进行共享的挂载:

$sudo mount -t cifs -o username=共享用户名,password=共享密码,iocharset=utf8 //XP机器的IP地址/共享文件夹名称 /Ubuntu下的挂载目录

示例:
$ sudo mount -t cifs -o username=guest,password=,iocharset=utf8 //192.168.1.3/music /mnt

This entry was posted in Technology and tagged , , , . Bookmark the permalink. 1,585 views

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

login with sina weibo